Bug 3150: Move emails for sending cart and list contents to notices
[srvgit] / installer / data / mysql / en / mandatory / sample_notices.yml
index cf98329..765875f 100644 (file)
@@ -52,12 +52,13 @@ tables:
           message_transport_type: email
           lang: default
           content:
-            - "Dear [% INCLUDE 'patron-title.inc' patron => ticket.reporter %],<br>"
+            - "[%- PROCESS 'html_helpers.inc' -%]"
+            - "Dear [%- INCLUDE 'patron-title.inc' patron => ticket.reporter -%],<br>"
             - "<br>"
-            - "Thankyou for your report concerning [% INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 %].<br>"
+            - "Thankyou for your report concerning [%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%].<br>"
             - "<br>"
             - "You reported: <br>"
-            - "[% ticket.body %]<br>"
+            - "[%- ticket.body -%]<br>"
             - "<br>"
             - "Thankyou"
 
@@ -70,12 +71,13 @@ tables:
           message_transport_type: email
           lang: default
           content:
-            - "Dear [% INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter %],<br>"
+            - "[%- PROCESS 'html_helpers.inc' -%]"
+            - "Dear [%- INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter -%],<br>"
             - "<br>"
-            - "The library has now marked your concern with [% INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 %] as resolved.<br>"
+            - "The library has now marked your concern with [%- INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 -%] as resolved.<br>"
             - "<br>"
             - "The following comment was left: <br>"
-            - "[% ticket_update.message %]<br>"
+            - "[%- ticket_update.message -%]<br>"
             - "<br>"
             - "Thankyou"
 
@@ -88,12 +90,13 @@ tables:
           message_transport_type: email
           lang: default
           content:
-            - "Dear [% INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter %],<br>"
+            - "[%- PROCESS 'html_helpers.inc' -%]"
+            - "Dear [%- INCLUDE 'patron-title.inc' patron => ticket_update.ticket.reporter -%],<br>"
             - "<br>"
-            - "The library has added an update to the concern you reported against [% INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 %].<br>"
+            - "The library has added an update to the concern you reported against [%- INCLUDE 'biblio-title.inc' biblio=ticket_update.ticket.biblio link = 0 -%].<br>"
             - "<br>"
             - "The following comment was left: <br>"
-            - "[% ticket_update.message %]<br>"
+            - "[%- ticket_update.message -%]<br>"
             - "<br>"
             - "Thankyou"
 
@@ -106,12 +109,14 @@ tables:
           message_transport_type: email
           lang: default
           content:
+            - "[%- PROCESS 'html_helpers.inc' -%]"
+            - "[%- USE Koha -%]"
             - "Dear cataloger,<br>"
-            - "[% INCLUDE 'patron-title.inc' patron => ticket.reporter %] reported the following concern with [% INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 1 %]<br>"
+            - "[%- INCLUDE 'patron-title.inc' patron => ticket.reporter -%] reported the following concern with [%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 1 -%]<br>"
             - "<br>"
-            - "[% ticket.body %]<br>"
+            - "[%- ticket.body -%]<br>"
             - "<br>"
-            - "You can mark this concern as resolved from the concern management <a href='[% Koha.Preference('IntranetBaseURL') %]/cgi-bin/koha/cataloguing/concerns.pl'>page</a>."
+            - "You can mark this concern as resolved from the concern management <a href='[%- Koha.Preference('IntranetBaseURL') -%]/cgi-bin/koha/cataloguing/concerns.pl'>page</a>."
 
         - module: circulation
           code: ACCOUNT_CREDIT
@@ -549,6 +554,21 @@ tables:
             - "Thank you."
 
         - module: circulation
+          code: CHECKIN
+          branchcode: ""
+          name: "Item check-in (digest)"
+          is_html: 0
+          title: "Check-ins"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "The following items have been checked in:"
+            - "----"
+            - "[% biblio.title %]"
+            - "----"
+            - "Thank you."
+
+        - module: circulation
           code: CHECKOUT
           branchcode: ""
           name: "Item check-out (digest)"
@@ -564,6 +584,21 @@ tables:
             - "Thank you for visiting [% branch.branchname %]."
 
         - module: circulation
+          code: CHECKOUT
+          branchcode: ""
+          name: "Item check-out (digest)"
+          is_html: 0
+          title: "Checkouts"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "The following items have been checked out:"
+            - "----"
+            - "[% biblio.title %]"
+            - "----"
+            - "Thank you for visiting [% branch.branchname %]."
+
+        - module: circulation
           code: CHECKOUT_NOTE
           branchcode: ""
           name: "Checkout note on item set by patron"
@@ -590,6 +625,21 @@ tables:
             - "<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)"
 
         - module: circulation
+          code: DUE
+          branchcode: ""
+          name: "Item due reminder"
+          is_html: 0
+          title: "Item due reminder"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+            - ""
+            - "The following item is now due:"
+            - ""
+            - "<<biblio.title>>"
+
+        - module: circulation
           code: DUEDGST
           branchcode: ""
           name: "Item due reminder (digest)"
@@ -607,6 +657,21 @@ tables:
             - "Thank you."
 
         - module: circulation
+          code: DUEDGST
+          branchcode: ""
+          name: "Item due reminder (digest)"
+          is_html: 0
+          title: "Item due reminder"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+            - ""
+            - "You have <<count>> item(s) that are now due"
+            - ""
+            - "Thank you."
+
+        - module: circulation
           code: HOLD_SLIP
           branchcode: ""
           name: "Hold slip"
@@ -774,6 +839,21 @@ tables:
             - "<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)"
 
         - module: circulation
+          code: PREDUE
+          branchcode: ""
+          name: "Advance notice of item due"
+          is_html: 0
+          title: "Advance notice of item due"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+            - ""
+            - "The following item will be due soon:"
+            - ""
+            - "<<biblio.title>>"
+
+        - module: circulation
           code: PREDUEDGST
           branchcode: ""
           name: "Advance notice of item due (digest)"
@@ -791,6 +871,21 @@ tables:
             - "Thank you."
 
         - module: circulation
+          code: PREDUEDGST
+          branchcode: ""
+          name: "Advance notice of item due (digest)"
+          is_html: 0
+          title: "Advance notice of item due"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+            - ""
+            - "You have <<count>> item(s) that will be due soon."
+            - ""
+            - "Thank you."
+
+        - module: circulation
           code: RENEWAL
           branchcode: ""
           name: "Item renewals"
@@ -1681,6 +1776,19 @@ tables:
           branchcode: ""
           name: "Hold available for pickup"
           is_html: 0
+          title: "Hold available for pickup at <<branches.branchname>>"
+          message_transport_type: sms
+          lang: default
+          content:
+            - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+            - ""
+            - "Your hold for <<biblio.title>> is available for pickup."
+
+        - module: reserves
+          code: HOLD
+          branchcode: ""
+          name: "Hold available for pickup"
+          is_html: 0
           title: "Hold available for pickup (print notice)"
           message_transport_type: print
           lang: default
@@ -2181,3 +2289,64 @@ tables:
             - "[% IF borrower.categorycode %]<li>Temporary patron category: [% borrower.categorycode %]</li>[% END %]"
             - "</ul>"
             - "</p>"
+
+        - module: catalogue
+          code: LIST
+          branchcode: ""
+          name: "Send list"
+          is_html: 1
+          title: "Your list: [% listname | html %]"
+          message_transport_type: email
+          lang: default
+          content:
+            - "Hi,"
+            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]."
+            - "Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite."
+            - "<hr/>[% comment | html %]<hr/>"
+            - "<ol>[% FOREACH biblio IN biblios %]<li>"
+            - "[% biblio.title | html %]"
+            - "[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% biblio.part_number | html %] [% biblio.part_name | html %]"
+            - "[% IF ( biblio.author || biblio.get_marc_contributors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_contributors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_contributors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]"
+            - "[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]"
+            - "[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]"
+            - "[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]"
+            - "[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]"
+            - "[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]"
+            - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]"
+            - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]"
+            - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]"
+            - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]"
+            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]"
+            - "[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %][% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %][% item.barcode | html %]</li>[% END %]</ul>[% END %]"
+            - "<hr/></li>[% END %]</ol>"
+
+        - module: catalogue
+          code: CART
+          branchcode: ""
+          name: "Send cart"
+          is_html: 1
+          title: "Your cart"
+          message_transport_type: email
+          lang: default
+          content:
+            - "Hi,"
+            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog."
+            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]."
+            - "Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite."
+            - "<hr/>[% comment | html %]<hr/>"
+            - "<ol>[% FOREACH biblio IN biblios %]<li>"
+            - "[% biblio.title | html %]"
+            - "[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% biblio.part_number | html %] [% biblio.part_name | html %]"
+            - "[% IF ( biblio.author || biblio.get_marc_contributors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_contributors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_contributors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]"
+            - "[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]"
+            - "[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]"
+            - "[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]"
+            - "[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]"
+            - "[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]"
+            - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]"
+            - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]"
+            - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]"
+            - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]"
+            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]"
+            - "[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %][% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %][% item.barcode | html %]</li>[% END %]</ul>[% END %]"
+            - "<hr/></li>[% END %]</ol>"