[open-ils-commits] r10305 - trunk/Open-ILS/examples/templates
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 7 13:16:37 EDT 2008
Author: erickson
Date: 2008-08-07 13:16:30 -0400 (Thu, 07 Aug 2008)
New Revision: 10305
Modified:
trunk/Open-ILS/examples/templates/overdue_7day.example
trunk/Open-ILS/examples/templates/predue_1day.example
Log:
displaying title/author and extracted due date. falling back to billing addr if library mailing addr is unset
Modified: trunk/Open-ILS/examples/templates/overdue_7day.example
===================================================================
--- trunk/Open-ILS/examples/templates/overdue_7day.example 2008-08-07 17:13:53 UTC (rev 10304)
+++ trunk/Open-ILS/examples/templates/overdue_7day.example 2008-08-07 17:16:30 UTC (rev 10305)
@@ -10,8 +10,12 @@
Our records indicate these items are 7 days overdue:
[% FOREACH circ = circ_list %]
-Due Date: [% circ.due_date %]
-Barcode: [% circ.target_copy.barcode %]
+ [% get_bib_attr(circ, 'title') %], by [% get_bib_attr(circ, 'author') %]
+ Call Number: [% circ.target_copy.call_number.label %]
+ [%- SET date = parse_due_date(circ) %]
+ Due Date: [% date.year %]-[% date.month %]-[% date.day -%]
+ [%- IF date.hour -%] [% date.hour %]:[% date.minute %] [%- END %]
+ Barcode: [% circ.target_copy.barcode %]
[% END %]
@@ -21,8 +25,9 @@
Contact your library for more information:
[% lib.name %]
-[% lib.mailing_address.street1 %]
-[% lib.mailing_address.street2 %]
+[%- SET addr = lib.mailing_address -%]
+[%- IF !addr -%] [%- SET addr = lib.billing_address -%] [%- END %]
+[% lib.mailing_address.street1 %] [% lib.mailing_address.street2 %]
[% lib.mailing_address.city %], [% lib.mailing_address.state %]
[% lib.mailing_address.post_code %]
[% lib.phone %]
Modified: trunk/Open-ILS/examples/templates/predue_1day.example
===================================================================
--- trunk/Open-ILS/examples/templates/predue_1day.example 2008-08-07 17:13:53 UTC (rev 10304)
+++ trunk/Open-ILS/examples/templates/predue_1day.example 2008-08-07 17:16:30 UTC (rev 10305)
@@ -10,8 +10,12 @@
Our records indicate these items are due tomorrow:
[% FOREACH circ = circ_list %]
-Due Date: [% circ.due_date %]
-Barcode: [% circ.target_copy.barcode %]
+ [% get_bib_attr(circ, 'title') %], by [% get_bib_attr(circ, 'author') %]
+ Call Number: [% circ.target_copy.call_number.label %]
+ [%- SET date = parse_due_date(circ) %]
+ Due Date: [% date.year %]-[% date.month %]-[% date.day -%]
+ [%- IF date.hour -%] [% date.hour %]:[% date.minute %] [%- END %]
+ Barcode: [% circ.target_copy.barcode %]
[% END %]
@@ -21,8 +25,9 @@
Contact your library for more information:
[% lib.name %]
-[% lib.mailing_address.street1 %]
-[% lib.mailing_address.street2 %]
+[%- SET addr = lib.mailing_address -%]
+[%- IF !addr -%] [%- SET addr = lib.billing_address -%] [%- END %]
+[% lib.mailing_address.street1 %] [% lib.mailing_address.street2 %]
[% lib.mailing_address.city %], [% lib.mailing_address.state %]
[% lib.mailing_address.post_code %]
[% lib.phone %]
More information about the open-ils-commits
mailing list