code: ACCOUNT_CREDIT
branchcode: ""
name: "Account payment"
- is_html: 0
+ is_html: 1
title: "Account payment"
message_transport_type: print
lang: default
content:
+ - "[% USE Price %]"
+ - "[% PROCESS 'accounts.inc' %]"
- "<table>"
- "[% IF ( LibraryName ) %]"
- " <tr>"
- - " <th colspan=\"4\" class=\"centerednames\">"
+ - " <th colspan=\"5\" class=\"centerednames\">"
- " <h3>[% LibraryName | html %]</h3>"
- " </th>"
- " </tr>"
- "[% END %]"
- " <tr>"
- - " <th colspan=\"4\" class=\"centerednames\">"
+ - " <th colspan=\"5\" class=\"centerednames\">"
- " <h2><u>Fee receipt</u></h2>"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th colspan=\"4\" class=\"centerednames\">"
- - " <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>"
+ - " <th colspan=\"5\" class=\"centerednames\">"
+ - " <h2>[% Branches.GetName( credit.patron.branchcode ) | html %]</h2>"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th colspan=\"4\">"
- - " Received with thanks from [% patron.firstname | html %] [% patron.surname | html %] <br />"
- - " Card number: [% patron.cardnumber | html %]<br />"
+ - " <th colspan=\"5\">"
+ - " Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />"
+ - " Card number: [% credit.patron.cardnumber | html %]<br />"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th>Date</th>"
+ - " <th>Created</th>"
+ - " <th>Updated</th>"
- " <th>Description of charges</th>"
- " <th>Note</th>"
- " <th>Amount</th>"
- " </tr>"
- ""
- - " [% FOREACH account IN accounts %]"
- - " <tr class=\"highlight\">"
- - " <td>[% account.date | $KohaDates %]</td>"
- - " <td>"
- - " [% PROCESS account_type_description account=account %]"
- - " [%- IF account.description %], [% account.description | html %][% END %]"
- - " </td>"
- - " <td>[% account.note | html %]</td>"
- - " [% IF ( account.amountcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amount | $Price %]</td>"
- - " </tr>"
+ - " <tr class=\"highlight\">"
+ - " <td>[% credit.date | $KohaDates %]</td>"
+ - " <td>[% credit.timestamp | $KohaDates with_hours = 1 %]</td>"
+ - " <td>"
+ - " [% PROCESS account_type_description account=credit %]"
+ - " [%- IF credit.description %], [% credit.description | html %][% END %]"
+ - " </td>"
+ - " <td>[% credit.note | html %]</td>"
+ - " <td class=\"credit\">[% credit.amount | $Price %]</td>"
+ - " </tr>"
+ - ""
+ - "[% IF ( tendered ) %]"
+ - " <tr>"
+ - " <td colspan=\"3\">Amount tendered: </td>"
+ - " <td>[% tendered | $Price %]</td>"
+ - " </tr>"
+ - " <tr>"
+ - " <td colspan=\"3\">Change given: </td>"
+ - " <td>[% change | $Price %]</td>"
+ - " </tr>"
+ - "[% END %]"
- ""
- - " [% END %]"
- "<tfoot>"
- " <tr>"
- - " <td colspan=\"3\">Total outstanding dues as on date: </td>"
- - " [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>"
+ - " <td colspan=\"4\">Total outstanding dues as on date: </td>"
+ - " [% IF ( credit.patron.account.balance >= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% credit.patron.account.balance | $Price %]</td>"
- " </tr>"
- "</tfoot>"
- "</table>"
code: ACCOUNT_DEBIT
branchcode: ""
name: "Account fee"
- is_html: 0
+ is_html: 1
title: "Account fee"
message_transport_type: print
lang: default
content:
+ - "[% USE Price %]"
+ - "[% PROCESS 'accounts.inc' %]"
- "<table>"
- " [% IF ( LibraryName ) %]"
- " <tr>"
- - " <th colspan=\"5\" class=\"centerednames\">"
+ - " <th colspan=\"6\" class=\"centerednames\">"
- " <h3>[% LibraryName | html %]</h3>"
- " </th>"
- " </tr>"
- " [% END %]"
- ""
- " <tr>"
- - " <th colspan=\"5\" class=\"centerednames\">"
+ - " <th colspan=\"6\" class=\"centerednames\">"
- " <h2><u>INVOICE</u></h2>"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th colspan=\"5\" class=\"centerednames\">"
- - " <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>"
+ - " <th colspan=\"6\" class=\"centerednames\">"
+ - " <h2>[% Branches.GetName( debit.patron.branchcode ) | html %]</h2>"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th colspan=\"5\" >"
- - " Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />"
- - " Card number: [% patron.cardnumber | html %]<br />"
+ - " <th colspan=\"6\" >"
+ - " Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />"
+ - " Card number: [% debit.patron.cardnumber | html %]<br />"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th>Date</th>"
+ - " <th>Created</th>"
+ - " <th>Updated</th>"
- " <th>Description of charges</th>"
- " <th>Note</th>"
- " <th style=\"text-align:right;\">Amount</th>"
- " <th style=\"text-align:right;\">Amount outstanding</th>"
- " </tr>"
- ""
- - " [% FOREACH account IN accounts %]"
- - " <tr class=\"highlight\">"
- - " <td>[% account.date | $KohaDates%]</td>"
- - " <td>"
- - " [% PROCESS account_type_description account=account %]"
- - " [%- IF account.description %], [% account.description | html %][% END %]"
- - " </td>"
- - " <td>[% account.note | html %]</td>"
- - " [% IF ( account.amountcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amount | $Price %]</td>"
- - " [% IF ( account.amountoutstandingcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amountoutstanding | $Price %]</td>"
- - " </tr>"
- - " [% END %]"
+ - " <tr class=\"highlight\">"
+ - " <td>[% debit.date | $KohaDates%]</td>"
+ - " <td>[% debit.timestamp | $KohaDates with_hours = 1 %]</td>"
+ - " <td>"
+ - " [% PROCESS account_type_description account=debit %]"
+ - " [%- IF debit.description %], [% debit.description | html %][% END %]"
+ - " </td>"
+ - " <td>[% debit.note | html %]</td>"
+ - " <td class=\"debit\">[% debit.amount | $Price %]</td>"
+ - " <td class=\"debit\">[% debit.amountoutstanding | $Price %]</td>"
+ - " </tr>"
- ""
- " <tfoot>"
- " <tr>"
- - " <td colspan=\"4\">Total outstanding dues as on date: </td>"
+ - " <td colspan=\"5\">Total outstanding dues as on date: </td>"
- " [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>"
- " </tr>"
- " </tfoot>"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- "Your library"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- - "You may pick your article up at <<branches.branchname>>."
+ - "[% IF article_request.format == 'PHOTOCOPY' %]You may pick up your article at [% branch.branchname %].[% ELSIF article_request.format == 'SCAN' %]You can download the scanned materials via the following url(s): [% article_request.urls %].[% END %]"
- ""
- "Thank you!"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
- - ""
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- "Thank you!"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- "Thank you!"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- module: circulation
message_transport_type: email
lang: default
content:
- - "You have <<count>> items due"
+ - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+ - ""
+ - "The following item(s) are now due:"
+ - ""
+ - "<<items.content>>"
+ - ""
+ - "Thank you."
- module: circulation
code: HOLD_SLIP
message_transport_type: email
lang: default
content:
- - "You have <<count>> items due soon"
+ - "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
+ - ""
+ - "The following item(s) will be due soon:"
+ - ""
+ - "<<items.content>>"
+ - ""
+ - "Thank you."
- module: circulation
code: RENEWAL
- "[% ELSE %]No items to be processed for this branch"
- "[% END %][% FOREACH item IN branch.items %][% IF item.reason != 'in-demand' %]Title: [% item.title %]"
- "Author: [% item.author %]"
- - "Callnumber: [% item.callnumber %]"
+ - "Call number: [% item.callnumber %]"
- "Location: [% item.location %]"
- "Barcode: [% item.barcode %]"
- "On loan?: [% item.onloan %]"
content:
- "A hold has been placed on the following item : <<biblio.title>> (<<biblio.biblionumber>>) by the user <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>)."
+ - module: reserves
+ code: HOLD_REMINDER
+ branchcode: ""
+ name: "Waiting hold reminder"
+ is_html: 0
+ title: "You have waiting holds."
+ message_transport_type: email
+ lang: default
+ content:
+ - "Dear [% borrower.firstname %] [% borrower.surname %],\n\nThe following holds are waiting at [% branch.branchname %]:\n\n[% FOREACH hold IN holds %]\n [% hold.biblio.title %] : waiting since [% hold.waitingdate | $KohaDates %]\n[% END %]"
+
- module: serial
code: SERIAL_ALERT
branchcode: ""
- "[% ELSE %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"
- "[% END %]"
+
+ - module: circulation
+ code: CHECKINSLIP
+ branchcode: ""
+ name: "Checkin slip"
+ is_html: 1
+ title: "Checkin slip"
+ message_transport_type: print
+ lang: default
+ content:
+ - "<h3>[% branch.branchname %]</h3>"
+ - "Checked in items for [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />"
+ - "([% borrower.cardnumber %]) <br />"
+ - ""
+ - "[% today | $KohaDates %]<br />"
+ - ""
+ - "<h4>Checked in today</h4>"
+ - "[% FOREACH checkin IN old_checkouts %]"
+ - "[% SET item = checkin.item %]"
+ - "<p>"
+ - "[% item.biblio.title %] <br />"
+ - "Barcode: [% item.barcode %] <br />"
+ - "</p>"
+ - "[% END %]"
+
+ - module: circulation
+ code: AUTO_RENEWALS_DGST
+ branchcode: ""
+ name: "Notification on auto renewals"
+ is_html: 0
+ title: "Auto renewals (Digest)"
+ message_transport_type: email
+ lang: default
+ content:
+ - "Dear [% borrower.firstname %] [% borrower.surname %],"
+ - "[% IF error %]"
+ - "There were [% error %] items that were not renewed."
+ - "[% END %]"
+ - "[% IF success %]"
+ - "There were [% success %] items that were renewed."
+ - "[% END %]"
+ - "[% FOREACH checkout IN checkouts %]"
+ - "[% checkout.item.biblio.title %] : [% checkout.item.barcode %]"
+ - "[% IF !checkout.auto_renew_error %]"
+ - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
+ - "[% ELSIF checkout.auto_renew_error == 'too_many' %]"
+ - "You have reached the maximum number of checkouts possible."
+ - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
+ - "This item is on hold for another patron."
+ - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
+ - "You are currently restricted."
+ - "[% ELSIF checkout.auto_renew_error == 'overdue' %]"
+ - "You have overdue items."
+ - "[% ELSIF checkout.auto_renew_error == 'auto_too_late' %]"
+ - "It's too late to renew this item."
+ - "[% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]"
+ - "Your total unpaid fines are too high."
+ - "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]"
+ - "This item must be renewed at the library."
+ - "[% END %]"
+ - "[% END %]"