[open-ils-commits] r1263 - conifer/branches/rel_1_6_1/tools (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 14 16:38:02 EDT 2011


Author: dbs
Date: 2011-03-14 16:37:57 -0400 (Mon, 14 Mar 2011)
New Revision: 1263

Modified:
   conifer/branches/rel_1_6_1/tools/email_notices_french.sql
Log:
Address #610 - use the name of the circ_lib for the target_copy, not where the circ happened

Notifications were confusing people because online renewals set circ.circ_lib
to the user's home_ou, and they were being told to return the item to the
wrong library (or interpreting the message as such).


Modified: conifer/branches/rel_1_6_1/tools/email_notices_french.sql
===================================================================
--- conifer/branches/rel_1_6_1/tools/email_notices_french.sql	2011-03-11 23:41:52 UTC (rev 1262)
+++ conifer/branches/rel_1_6_1/tools/email_notices_french.sql	2011-03-14 20:37:57 UTC (rev 1263)
@@ -38,7 +38,7 @@
     Cote : [% circ.target_copy.call_number.label %]
     Date d’échéance : [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]
     Code à barres : [% circ.target_copy.barcode %]
-    Bibliothèque : [% circ.circ_lib.name %]
+    Bibliothèque : [% circ.target_copy.circ_lib.name %]
 [% END -%]
 
 Veuillez renouveler le prêt ou retourner ces articles d’ici demain
@@ -53,7 +53,7 @@
     Title: [% circ.target_copy.call_number.record.simple_record.title %] 
     Barcode: [% circ.target_copy.barcode %] 
     Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]
-    Library: [% circ.circ_lib.name %]
+    Library: [% circ.target_copy.circ_lib.name %]
 [% END %]
 [% END -%]
 $$ WHERE id = 106;
@@ -82,7 +82,7 @@
     Date d’échéance : [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]
     Code à barres : [% circ.target_copy.barcode %]
     Total des amendes : [% circ.billable_transaction.summary.total_owed %]
-    Bibliothèque : [% circ.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]
+    Bibliothèque : [% circ.target_copy.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]
 [% END -%]
 
 Veuillez les retourner dès que possible afin d’éviter des amendes
@@ -103,7 +103,7 @@
     Item Cost: [% helpers.get_copy_price(circ.target_copy) %]
     Total Owed For Transaction: [% circ.billable_transaction.summary.total_owed %]
 [% END -%]
-    Library: [% circ.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]
+    Library: [% circ.target_copy.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]
 [% END %]
 
 [% END %]



More information about the open-ils-commits mailing list