Add bilingual notices to SQL directory
authorDan Scott <dscott@laurentian.ca>
Fri, 23 Mar 2012 16:44:35 +0000 (12:44 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 23 Mar 2012 16:44:35 +0000 (12:44 -0400)
Couldn't find these anywhere in our branches, so I just dumped the
pertinent ones so we have them _somewhere_.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/current_notices.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/current_notices.sql b/Open-ILS/src/sql/Pg/current_notices.sql
new file mode 100644 (file)
index 0000000..4485841
--- /dev/null
@@ -0,0 +1,6 @@
+-- The following notices are what we use for Conifer to support bilingual
+-- Populate action_trigger.event_definition using id, template as follows:
+110    \n[%- USE date -%]\n[%- user = target.usr -%]\n[%- IF user.home_ou == 127 or user.home_ou == 128 or user.home_ou == 129 or user.home_ou == 136 -%]\n    [%- francais = 'true' -%]\n[%- END -%]\n[%- FOR entry IN target.usr.stat_cat_entries -%]\n  [%- IF entry.stat_cat == 2 and entry.stat_cat_entry == 'français' -%]\n    [%- francais = 'true' -%]\n  [%- END -%]\n[%- END -%]\nTo: [%- helpers.escape_email_header(params.recipient_email || user.email) %]\nFrom: [%- helpers.escape_email_header(params.sender_email || user.home_ou.email || default_sender) %]\n[% IF francais -%]\nSubject: [% helpers.escape_email_header("$user.home_ou.name : votre mot de passe du système de la Bibliothèque") %]\n\nVous avez reçu ce message parce vous, ou une autre personne, avez demandé de\nréinitialiser votre mot de passe du système de la Bibliothèque. Si vous n’avez\npas envoyé cette demande, ne tenez pas compte de ce message et votre mot de\npasse actuel continuera de fonctionner.\n\nSi vous avez demandé la réinitialisation de votre mot de passe du système de la\nBibliothèque, suivez ces étapes pour continuer le processus de réinitialisation :\n\n1. Cliquez sur le lien suivant https://www.concat.ca/opac/password/[% params.locale || 'fr-CA' %]/[% target.uuid %]\nou copiez-le dans la ligne d’adresse de votre navigateur.\n\nLe formulaire de réinitialisation de votre mot de passe s’affichera.\n\n2. Entrez votre nouveau mot de passe dans le formulaire. Vous devez l’entrer\ndeux fois afin de confirmer qu’il ne comportait pas d’erreurs la première fois.\nSi les mots de passe concordent, vous pourrez ensuite ouvrir une session dans\nle système de la Bibliothèque avec le nouveau mot de passe.\n[% ELSE -%]\nSubject: [% user.home_ou.name %]: library account password reset request\n\nYou have received this message because you, or somebody else, requested a reset\nof your library system password. If you did not request a reset of your library\nsystem password, just ignore this message and your current password will\ncontinue to work.\n\nIf you did request a reset of your library system password, please perform\nthe following steps to continue the process of resetting your password:\n\n1. Open the following link in a web browser: https://www.concat.ca/opac/password/[% params.locale || 'en-US' %]/[% target.uuid %]\nThe browser displays a password reset form.\n\n2. Enter your new password in the password reset form in the browser. You must\nenter the password twice to ensure that you do not make a mistake. If the\npasswords match, you will then be able to log in to your library system account\nwith the new password.\n[% END -%]\n
+1      [%- USE date -%]\n[%- user = target.0.usr -%]\n[%- IF user.home_ou == 127 or user.home_ou == 128 or user.home_ou == 129 or user.home_ou == 136 -%]\n    [%- francais = 'true' -%]\n[%- END -%]\n[%- FOR entry IN target.0.usr.stat_cat_entries -%]\n  [%- IF entry.stat_cat == 2 and entry.stat_cat_entry == 'français' -%]\n    [%- francais = 'true' -%]\n  [%- END -%]\n[%- END -%]\nTo: [%- helpers.escape_email_header(params.recipient_email || user.email) %]\nFrom: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.email || params.sender_email || default_sender) %]\n[% IF francais -%]\nSubject: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.name) %] : Avis de retard (message automatique)\n\nMadame, (Monsieur,)\n\nNos dossiers indiquent que ces articles auraient dû être retournés :\n\n[% FOR circ IN target -%]\n    [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]\n    Titre : [% copy_details.title %]\n    Auteur : [% copy_details.author %]\n    Cote : [% circ.target_copy.call_number.label %]\n    Date d’échéance : [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]\n    Code à barres : [% circ.target_copy.barcode %]\n    Total des amendes : [% circ.billable_transaction.summary.total_owed %]\n    Bibliothèque : [% circ.target_copy.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]\n\n[% END -%]\nVeuillez les retourner dès que possible afin d’éviter des amendes\nsupplémentaires.\n[% ELSE -%]\nSubject: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.name) %]: Overdue Notification\n\nDear [% user.first_given_name %] [% user.family_name %]:\n\nOur records indicate the following items are overdue.\n\n[% FOR circ IN target -%]\n    [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]\n    Title: [% copy_details.title %]\n    Author: [% copy_details.author %]\n    Call Number: [% circ.target_copy.call_number.label %]\n    Barcode: [% circ.target_copy.barcode %]\n    Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]\n[% IF circ.circ_lib.shortname != 'SJCG' -%]\n    Item Cost: [% helpers.get_copy_price(circ.target_copy) %]\n    Total Owed For Transaction: [% circ.billable_transaction.summary.total_owed %]\n[% END -%]\n    Library: [% circ.target_copy.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]\n\n[% END %]\n[% END %]
+105    [%- USE date -%]\n[%- user = target.0.usr -%]\n[%- IF user.home_ou == 127 or user.home_ou == 128 or user.home_ou == 129 or user.home_ou == 136 -%]\n    [%- francais = 'true' -%]\n[%- END -%]\n[%- FOR entry IN target.0.usr.stat_cat_entries -%]\n  [%- IF entry.stat_cat == 2 and entry.stat_cat_entry == 'français' -%]\n    [%- francais = 'true' -%]\n  [%- END -%]\n[%- END -%]\nTo: [%- helpers.escape_email_header(params.recipient_email || user.email) %]\nFrom: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.email || params.sender_email || default_sender) %]\n[% IF francais -%]\nSubject: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.name) %] : Avis de retard (message automatique)\n\nMadame, (Monsieur,)\n\nNos dossiers indiquent que ces articles auraient dû être retournés :\n\n[% FOR circ IN target -%]\n    [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]\n    Titre : [% copy_details.title %]\n    Auteur : [% copy_details.author %]\n    Cote : [% circ.target_copy.call_number.label %]\n    Date d’échéance : [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]\n    Code à barres : [% circ.target_copy.barcode %]\n    Total des amendes : [% circ.billable_transaction.summary.total_owed %]\n    Bibliothèque : [% circ.target_copy.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]\n\n[% END -%]\nVeuillez les retourner dès que possible afin d’éviter des amendes\nsupplémentaires.\n[% ELSE -%]\nSubject: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.name) %]: Overdue Notification\n\nDear [% user.first_given_name %] [% user.family_name %]:\n\nOur records indicate the following items are overdue.\n\n[% FOR circ IN target -%]\n    [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]\n    Title: [% copy_details.title %]\n    Author: [% copy_details.author %]\n    Call number : [% circ.target_copy.call_number.label %]\n    Barcode: [% circ.target_copy.barcode %]\n    Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]\n[% IF circ.circ_lib.shortname != 'SJCG' -%]\n    Item Cost: [% helpers.get_copy_price(circ.target_copy) %]\n    Total Owed For Transaction: [% circ.billable_transaction.summary.total_owed %]\n[% END -%]\n    Library: [% circ.target_copy.circ_lib.name %] [% IF circ.circ_lib.shortname == 'SJCG' %]/ [% circ.target_copy.location.name %] [% END %]\n\n[% END %]\n[% END %]
+106    [%- USE date -%]\n[%- user = target.0.usr -%]\n[%- IF user.home_ou == 127 or user.home_ou == 128 or user.home_ou == 129 or user.home_ou == 136 -%]\n    [%- francais = 'true' -%]\n[%- END -%]\n[%- FOR entry IN target.0.usr.stat_cat_entries -%]\n  [%- IF entry.stat_cat == 2 and entry.stat_cat_entry == 'français' -%]\n    [%- francais = 'true' -%]\n  [%- END -%]\n[%- END -%]\nTo: [%- helpers.escape_email_header(params.recipient_email || user.email) %]\nFrom: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.email || params.sender_email || default_sender) %]\n[% IF francais -%]\nSubject: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.name) %] : Rappel (message automatique)\n\nMadame, (Monsieur,)\n\nNos dossiers indiquent que la date de remise de ces articles est demain :\n\n[% FOR circ IN target -%]\n    [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]\n    Titre : [% copy_details.title %]\n    Auteur : [% copy_details.author %]\n    Cote : [% circ.target_copy.call_number.label %]\n    Date d’échéance : [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]\n    Code à barres : [% circ.target_copy.barcode %]\n    Bibliothèque : [% circ.target_copy.circ_lib.name %]\n\n[% END -%]\nVeuillez renouveler le prêt ou retourner ces articles d’ici demain\nafin d’éviter les amendes.\n[% ELSE -%]\nSubject: [%- helpers.escape_email_header(target.0.target_copy.circ_lib.name) %]: Courtesy Notification\n\nDear [% user.first_given_name %] [% user.family_name %]:\nOur records indicate the following items will be due shortly:\n\n[% FOR circ IN target -%]\n    [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]\n    Title: [% copy_details.title %]\n    Author: [% copy_details.author %]\n    Call number: [% circ.target_copy.call_number.label %]\n    Barcode: [% circ.target_copy.barcode %]\n    Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]\n    Library: [% circ.target_copy.circ_lib.name %]\n\n[% END %]\n[% END -%]