From: erickson Date: Mon, 8 Dec 2008 19:09:13 +0000 (+0000) Subject: let's assume that the default combined XML notice template is primarily used for... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5ff21fda5a00e8d270f772520ba04552018d3af8;p=Evergreen.git let's assume that the default combined XML notice template is primarily used for mailing notices, since emails are already handled by the system. as such, if a user does not have a valid address, do not add them to the notice git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11446 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/templates/overdue_combined_xml.example b/Open-ILS/examples/templates/overdue_combined_xml.example index 024821fffd..74ea16d38a 100644 --- a/Open-ILS/examples/templates/overdue_combined_xml.example +++ b/Open-ILS/examples/templates/overdue_combined_xml.example @@ -2,17 +2,18 @@ [%- FOREACH circ_set = overdues %] - [%- SET user = circ_set.circ_list.0.usr -%] [%- SET lib = circ_set.circ_list.0.circ_lib -%] [%- SET user_addr = user.mailing_address -%] - [%- IF !user_addr -%] + [%- IF !user_addr or user_addr.valid == 'f' -%] [%- SET user_addr = user.billing_address -%] [%- END %] [%- SET lib_addr = lib.mailing_address -%] [%- IF !lib_addr -%] [%- SET lib_addr = lib.billing_address -%] - [%- END %] + [%- END -%] + [%- IF !user_addr or user_addr.valid == 'f'; NEXT; END; %] + [% user.card.barcode %] [% user.first_given_name %]