From 01efbbf8c6cf6b42c2fbcff5eb704b2d63468d76 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Tue, 4 Feb 2020 20:07:43 -0300 Subject: [PATCH] Bug 24583: Rewrite mandatory/sample_notices to YAML YAML version of mandatory sample_notices To test: 1) Same test plan of first patch, only check table letter Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- .../mysql/en/mandatory/sample_notices.sql | 384 ------ .../mysql/en/mandatory/sample_notices.txt | 1 - .../mysql/en/mandatory/sample_notices.yml | 1148 +++++++++++++++++ 3 files changed, 1148 insertions(+), 385 deletions(-) delete mode 100644 installer/data/mysql/en/mandatory/sample_notices.sql delete mode 100644 installer/data/mysql/en/mandatory/sample_notices.txt create mode 100644 installer/data/mysql/en/mandatory/sample_notices.yml diff --git a/installer/data/mysql/en/mandatory/sample_notices.sql b/installer/data/mysql/en/mandatory/sample_notices.sql deleted file mode 100644 index 1fea0039ad..0000000000 --- a/installer/data/mysql/en/mandatory/sample_notices.sql +++ /dev/null @@ -1,384 +0,0 @@ -INSERT INTO `letter` (module, code, name, title, content, message_transport_type) -VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <> <>,\n\nAccording to our current records, you have items that are overdue.Your library does not charge late fines, but please return or renew them at the branch below as soon as possible.\n\n<>\n<>\n<> <>\nPhone: <>\nFax: <>\nEmail: <>\n\nIf you have registered a password with the library, and you have a renewal available, you may renew online. If an item becomes more than 30 days overdue, you will be unable to use your library card until the item is returned.\n\nThe following item(s) is/are currently overdue:\n\n"<>" by <>, <>, Barcode: <> Fine: <>\n\nThank-you for your prompt attention to this matter.\n\n<> Staff\n', 'email'), -('claimacquisition','ACQCLAIM','Acquisition Claim','Item Not Received','<>\r\n<>\r\n<>\r\n<>\r\n<>\r\n<>\r\n\r\nOrdernumber <> (<>) (<> ordered) ($<> each) has not been received.', 'email'), -('orderacquisition','ACQORDER','Acquisition order','Order','<>\r\n<>\r\n<>\r\n<>\r\n<>\r\n<>\r\n\r\nPlease order for the library:\r\n\r\nOrdernumber <> (<>) (quantity: <>) ($<> each).\r\n\r\nThank you,\n\n<>', 'email'), -('serial','SERIAL_ALERT','New serial issue','New serial issue is now available','<> <>,\r\n\r\nThe following issue is now available:\r\n\r\n<>, <> (<>)\r\n\r\nPlease pick it up at your convenience.', 'email'), -('members','ACCTDETAILS','Account Details Template - DEFAULT','Your new Koha account details.','Hello <> <> <>.\r\n\r\nYour new Koha account details are:\r\n\r\nUser: <>\r\nPassword: <>\r\n\r\nIf you have any problems or questions regarding your account, please contact your Koha Administrator.\r\n\r\nThank you,\r\nKoha Administrator\r\nkohaadmin@yoursite.org', 'email'), -('circulation','DUE','Item Due Reminder','Item Due Reminder','Dear <> <>,\r\n\r\nThe following item is now due:\r\n\r\n<>, <> (<>)', 'email'), -('circulation','DUEDGST','Item Due Reminder (Digest)','Item Due Reminder','You have <> items due', 'email'), -('circulation','PREDUE','Advance Notice of Item Due','Advance Notice of Item Due','Dear <> <>,\r\n\r\nThe following item will be due soon:\r\n\r\n<>, <> (<>)', 'email'), -('circulation','PREDUEDGST','Advance Notice of Item Due (Digest)','Advance Notice of Item Due','You have <> items due soon', 'email'), -('circulation','RENEWAL','Item Renewals','Item Renewals','The following items have been renewed:\r\n----\r\n<>\r\n----\r\nThank you for visiting <>.', 'email'), -('reserves', 'HOLD', 'Hold Available for Pickup', 'Hold Available for Pickup at <>', 'Dear <> <>,\r\n\r\nYou have a hold available for pickup as of <>:\r\n\r\nTitle: <>\r\nAuthor: <>\r\nCopy: <>\r\nLocation: <>\r\n<>\r\n<>\r\n<>\r\n<> <>', 'email'), -('reserves', 'HOLD', 'Hold Available for Pickup', 'Hold Available for Pickup (print notice)', '<>\r\n<>\r\n<>\r\n\r\n\r\nChange Service Requested\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<> <>\r\n<>\r\n<> <>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<> <> <>\r\n\r\nYou have a hold available for pickup as of <>:\r\n\r\nTitle: <>\r\nAuthor: <>\r\nCopy: <>\r\n', 'print'), -('circulation','CHECKIN','Item Check-in (Digest)','Check-ins','The following items have been checked in:\r\n----\r\n[% biblio.title %]\r\n----\r\nThank you.', 'email'), -('circulation','CHECKOUT','Item Check-out (Digest)','Checkouts','The following items have been checked out:\r\n----\r\n[% biblio.title %]\r\n----\r\nThank you for visiting [% branch.branchname %].', 'email'), -('reserves', 'HOLDPLACED', 'Hold Placed on Item', 'Hold Placed on Item','A hold has been placed on the following item : <> (<>) by the user <> <> (<>).', 'email'), -('reserves', 'CANCEL_HOLD_ON_LOST', 'Hold has been cancelled', "Hold has been cancelled", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nWe regret to inform you, that the following item can not be provided due to it being missing. Your hold was cancelled.\n\nTitle: [% biblio.title %]\nAuthor: [% biblio.author %]\nCopy: [% item.copynumber %]\nLocation: [% branch.branchname %]", 'email'), -('suggestions','ACCEPTED','Suggestion accepted', 'Purchase suggestion accepted','Dear <> <>,\n\nYou have suggested that the library acquire <> by <>.\n\nThe library has reviewed your suggestion today. The item will be ordered as soon as possible. You will be notified by mail when the order is completed, and again when the item arrives at the library.\n\nIf you have any questions, please email us at <>.\n\nThank you,\n\n<>', 'email'), -('suggestions','AVAILABLE','Suggestion available', 'Suggested purchase available','Dear <> <>,\n\nYou have suggested that the library acquire <> by <>.\n\nWe are pleased to inform you that the item you requested is now part of the collection.\n\nIf you have any questions, please email us at <>.\n\nThank you,\n\n<>', 'email'), -('suggestions','ORDERED','Suggestion ordered', 'Suggested item ordered','Dear <> <>,\n\nYou have suggested that the library acquire <> by <>.\n\nWe are pleased to inform you that the item you requested has now been ordered. It should arrive soon, at which time it will be processed for addition into the collection.\n\nYou will be notified again when the book is available.\n\nIf you have any questions, please email us at <>\n\nThank you,\n\n<>', 'email'), -('suggestions','REJECTED','Suggestion rejected', 'Purchase suggestion declined','Dear <> <>,\n\nYou have suggested that the library acquire <> by <>.\n\nThe library has reviewed your request today, and has decided not to accept the suggestion at this time.\n\nThe reason given is: <>\n\nIf you have any questions, please email us at <>.\n\nThank you,\n\n<>', 'email'), -('suggestions','TO_PROCESS','Notify fund owner', 'A suggestion is ready to be processed','Dear <> <>,\n\nA new suggestion is ready to be processed: <> by <>.\n\nThank you,\n\n<>', 'email'); - -INSERT INTO `letter` (module, code, name, title, content, is_html, message_transport_type) -VALUES ('suggestions','NEW_SUGGESTION','New suggestion','New suggestion','

Suggestion pendin g approval

-

Suggested by

-
    -
  • <> <>
  • -
  • <>
  • -
  • <>
  • -
  • <>
  • -
-

-

Title suggested

-
    -
  • Library: <>
  • -
  • Title: <>
  • -
  • Author: <>
  • -
  • Copyright date: <>
  • -
  • Standard number (ISBN, ISSN or other): <>
  • -
  • Publisher: <>
  • -
  • Collection title: <>
  • -
  • Publication place: <>
  • -
  • Quantity: <>
  • -
  • Item type: <>
  • -
  • Reason for suggestion: <>
  • -
  • Notes: <>
  • -
-

',1, 'email'); -INSERT INTO `letter` (module, code, name, title, content, is_html, message_transport_type) -VALUES ('members', 'DISCHARGE', 'Discharge confirmation', 'Discharge for <> <>', ' -<> -

Discharge confirmation

-

<> certifies that the following borrower:
-<> <> (cardnumber: <>)
-has returned all items.

', 1, 'email'); - -INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
- -<>
- -

Checked Out

- -

-<>
-Barcode: <>
-Date due: <>
-

-
- -

Overdues

- -

-<>
-Barcode: <>
-Date due: <>
-

-
- -
- -

News

- -
-
<>
-

<>

-

Posted on <>

-
-
-
', 1), -('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
- -<>
- -

Checked Out Today

- -

-<>
-Barcode: <>
-Date due: <>
-

-
', 1), -('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '
Date: <>
- -

Transfer to/Hold in <>

- -

<>, <>

- -
    -
  • <>
  • -
  • <>
  • -
  • <>
    - <>
    - <> <> -
  • -
  • <>
  • -
-
-

ITEM ON HOLD

-

<>

-
<>
-
    -
  • <>
  • -
  • <>
  • -
  • <>
  • -
-

Notes: -

<>
-

-', 1), -('circulation','TRANSFERSLIP','Transfer Slip','Transfer Slip', '
Date: <>
- -

Transfer to <>

- -

ITEM

-

<>

-
<>
-
    -
  • <>
  • -
  • <>
  • -
', 1); - -INSERT INTO `letter` (`module`,`code`,`branchcode`,`name`,`is_html`,`title`,`content`) -VALUES ( -'members', 'OPAC_REG_VERIFY', '', 'Opac Self-Registration Verification Email', '1', 'Verify Your Account', 'Hello! - -Your library account has been created. Please verify your email address by clicking this link to complete the signup process: - -<>/cgi-bin/koha/opac-registration-verify.pl?token=<> - -If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly.' -); - -INSERT INTO letter (module, code, branchcode, name, is_html, title, content) -VALUES ('members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <>', 'Dear patron, - -One of our patrons, <> <>, invites you to share a list <> in our library catalog. - -To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar. - -<> - -In case you are not a patron in our library or do not want to accept this invitation, please ignore this mail. Note also that this invitation expires within two weeks. - -Thank you. - -Your library.' -); -INSERT INTO letter (module, code, branchcode, name, is_html, title, content) -VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <> accepted', 'Dear patron, - -We want to inform you that <> <> accepted your invitation to share your list <> in our library catalog. - -Thank you. - -Your library.' -); - -INSERT INTO letter(module, code, branchcode, name, title, content, message_transport_type) -VALUES ('acquisition', 'ACQ_NOTIF_ON_RECEIV', '', 'Notification on receiving', 'Order received', 'Dear <> <>,\n\n The order <> (<>) has been received.\n\nYour library.', 'email'), -('members','MEMBERSHIP_EXPIRY','','Account expiration','Account expiration','Dear <> <> <>,\r\n\r\nYour library card will expire soon, on:\r\n\r\n<>\r\n\r\nThank you,\r\n\r\nLibrarian\r\n\r\n<>','email'); - -INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type ) -VALUES ( 'circulation', 'OVERDUES_SLIP', '', 'Overdues Slip', '0', 'OVERDUES_SLIP', 'The following item(s) is/are currently overdue: - -"<>" by <>, <>, Barcode: <> Fine: <> -', 'print' ); - -INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type) -VALUES ('members','PASSWORD_RESET','','Online password reset',1,'Koha password recovery','\r\n

This email has been sent in response to your password recovery request for the account <>.\r\n

\r\n

\r\nYou can now create your new password using the following link:\r\n
>\"><>\r\n

\r\n

This link will be valid for 2 days from this email\'s reception, then you must reapply if you do not change your password.

\r\n

Thank you.

\r\n\r\n','email' -); - -INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES -('circulation', 'AR_CANCELED', '', 'Article request - canceled', 0, 'Article request canceled', 'Dear <> <> (<>),\r\n\r\nYour request for an article from <> (<>) has been canceled for the following reason:\r\n\r\n<>\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n\r\nYour library', 'email'), -('circulation', 'AR_COMPLETED', '', 'Article request - completed', 0, 'Article request completed', 'Dear <> <> (<>),\r\n\r\nWe have completed your request for an article from <> (<>).\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n\r\nYou may pick your article up at <>.\r\n\r\nThank you!', 'email'), -('circulation', 'AR_PENDING', '', 'Article request - open', 0, 'Article request received', 'Dear <> <> (<>)\r\n\r\nWe have received your request for an article from <> (<>).\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n\r\n\r\nThank you!', 'email'), -('circulation', 'AR_SLIP', '', 'Article request - print slip', 0, 'Article request', 'Article request:\r\n\r\n<> <> (<>),\r\n\r\nTitle: <>\r\nBarcode: <>\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n', 'print'), -('circulation', 'AR_PROCESSING', '', 'Article request - processing', 0, 'Article request processing', 'Dear <> <> (<>),\r\n\r\nWe are now processing your request for an article from <> (<>).\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n\r\nThank you!', 'email'), -('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<> <> has added a note to the item <> - <> (<>).','email'); - -INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_PAYMENT', '', 'Account payment', 0, 'Account payment', '[%- USE Price -%]\r\nA payment of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis payment affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'), -('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); - -INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' -[% IF ( LibraryName ) %] - - - -[% END %] - - - - - - - - - - - - - - - - - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - - - [% END %] - - - - [% IF ( totalcredit ) %] - - -
-

[% LibraryName | html %]

-
-

Fee receipt

-
-

[% Branches.GetName( patron.branchcode ) | html %]

-
- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
-
DateDescription of chargesNoteAmount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]
', 'print', 'default'); - -INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' - [% IF ( LibraryName ) %] - - - - [% END %] - - - - - - - - - - - - - - - - - - - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] - - - - - [% IF ( totalcredit ) %] - - -
-

[% LibraryName | html %]

-
-

INVOICE

-
-

[% Branches.GetName( patron.branchcode ) | html %]

-
- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
-
DateDescription of chargesNoteAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]
', 'print', 'default'); - -INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES -('circulation', 'SR_SLIP', '', 'Stock rotation slip', 0, 'Stock rotation report', 'Stock rotation report for [% branch.name %]:\r\n\r\n[% IF branch.items.size %][% branch.items.size %] items to be processed for this branch.\r\n[% ELSE %]No items to be processed for this branch\r\n[% END %][% FOREACH item IN branch.items %][% IF item.reason != \'in-demand\' %]Title: [% item.title %]\r\nAuthor: [% item.author %]\r\nCallnumber: [% item.callnumber %]\r\nLocation: [% item.location %]\r\nBarcode: [% item.barcode %]\r\nOn loan?: [% item.onloan %]\r\nStatus: [% item.reason %]\r\nCurrent library: [% item.branch.branchname %] [% item.branch.branchcode %]\r\n\r\n[% END %][% END %]', 'email'); - -INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('pos', 'RECEIPT', '', 'Point of sale receipt', 0, 'Receipt', '[% PROCESS "accounts.inc" %] - -[% IF ( LibraryName ) %] - - - -[% END %] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [% FOREACH offset IN offsets %] - - - - - [% END %] - - - - - - - - - - - - - - - -
-

[% LibraryName | html %]

-
-

[% Branches.GetName( payment.branchcode ) | html %]

-
-

[% payment.date | $KohaDates %]

-
Transaction ID: [% payment.accountlines_id %]
Operator ID: [% payment.manager_id %]
Payment type: [% payment.payment_type %]
-

Fee receipt

-
Description of chargesAmount
[% PROCESS account_type_description account=offset.debit %][% offset.amount * -1 | $Price %]
Total: [% payment.amount * -1| $Price %]
Tendered: [% collected | $Price %]
Change: [% change | $Price %]
', 'print', 'default'); diff --git a/installer/data/mysql/en/mandatory/sample_notices.txt b/installer/data/mysql/en/mandatory/sample_notices.txt deleted file mode 100644 index c195b10dc4..0000000000 --- a/installer/data/mysql/en/mandatory/sample_notices.txt +++ /dev/null @@ -1 +0,0 @@ -Sample notices diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml new file mode 100644 index 0000000000..ef74222431 --- /dev/null +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -0,0 +1,1148 @@ +--- +# +# Copyright 2019 Koha Development Team +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# ************************************************************* +# SAMPLE NOTICES +# ************************************************************* + +description: + - "Sample notices" + +tables: + - letter: + translatable: [ name, title, content ] + multiline: [ content ] + rows: + - module: acquisition + code: ACQ_NOTIF_ON_RECEIV + branchcode: "" + name: "Notification on receiving" + is_html: 0 + title: "Order received" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - " The order <> (<>) has been received." + - "" + - "Your library." + + - module: circulation + code: ACCOUNT_CREDIT + branchcode: "" + name: "Account payment" + is_html: 0 + title: "Account payment" + message_transport_type: print + lang: default + content: + - "" + - "[% IF ( LibraryName ) %]" + - " " + - " " + - " " + - "[% END %]" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "" + - " [% FOREACH account IN accounts %]" + - " " + - " " + - " " + - " " + - " [% IF ( account.amountcredit ) %]" + - " " + - "" + - " [% END %]" + - "" + - " " + - " " + - " [% IF ( totalcredit ) %]" + - " " + - "" + - "
" + - "

[% LibraryName | html %]

" + - "
" + - "

Fee receipt

" + - "
" + - "

[% Branches.GetName( patron.branchcode ) | html %]

" + - "
" + - " Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
" + - " Card number: [% patron.cardnumber | html %]
" + - "
DateDescription of chargesNoteAmount
[% account.date | $KohaDates %]" + - " [% PROCESS account_type_description account=account %]" + - " [%- IF account.description %], [% account.description | html %][% END %]" + - " [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]
" + + - module: circulation + code: ACCOUNT_DEBIT + branchcode: "" + name: "Account fee" + is_html: 0 + title: "Account fee" + message_transport_type: print + lang: default + content: + - "" + - " [% IF ( LibraryName ) %]" + - " " + - " " + - " " + - " [% END %]" + - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "" + - " [% FOREACH account IN accounts %]" + - " " + - " " + - " " + - " " + - " [% IF ( account.amountcredit ) %]" + - " [% IF ( account.amountoutstandingcredit ) %]" + - " " + - " [% END %]" + - "" + - " " + - " " + - " " + - " [% IF ( totalcredit ) %]" + - " " + - " " + - "
" + - "

[% LibraryName | html %]

" + - "
" + - "

INVOICE

" + - "
" + - "

[% Branches.GetName( patron.branchcode ) | html %]

" + - "
" + - " Bill to: [% patron.firstname | html %] [% patron.surname | html %]
" + - " Card number: [% patron.cardnumber | html %]
" + - "
DateDescription of chargesNoteAmountAmount outstanding
[% account.date | $KohaDates%]" + - " [% PROCESS account_type_description account=account %]" + - " [%- IF account.description %], [% account.description | html %][% END %]" + - " [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]
" + + - module: circulation + code: ACCOUNT_PAYMENT + branchcode: "" + name: "Account payment" + is_html: 0 + title: "Account payment" + message_transport_type: email + lang: default + content: + - "[%- USE Price -%]" + - "A payment of [% credit.amount * -1 | $Price %] has been applied to your account." + - "" + - "This payment affected the following fees:" + - "[%- FOREACH o IN offsets %]" + - "Description: [% o.debit.description %]" + - "Amount paid: [% o.amount * -1 | $Price %]" + - "Amount remaining: [% o.debit.amountoutstanding | $Price %]" + - "[% END %]" + + - module: circulation + code: ACCOUNT_WRITEOFF + branchcode: "" + name: "Account writeoff" + is_html: 0 + title: "Account writeoff" + message_transport_type: email + lang: default + content: + - "[%- USE Price -%]" + - "An account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account." + - "" + - "This writeoff affected the following fees:" + - "[%- FOREACH o IN offsets %]" + - "Description: [% o.debit.description %]" + - "Amount paid: [% o.amount * -1 | $Price %]" + - "Amount remaining: [% o.debit.amountoutstanding | $Price %]" + - "[% END %]" + + - module: circulation + code: AR_CANCELED + branchcode: "" + name: "Article request - canceled" + is_html: 0 + title: "Article request canceled" + message_transport_type: email + lang: default + content: + - "Dear <> <> (<>)," + - "" + - "Your request for an article from <> (<>) has been canceled for the following reason:" + - "" + - "<>" + - "" + - "Article requested:" + - "Title: <>" + - "Author: <>" + - "Volume: <>" + - "Issue: <>" + - "Date: <>" + - "Pages: <>" + - "Chapters: <>" + - "Notes: <>" + - "" + - "Your library" + + - module: circulation + code: AR_COMPLETED + branchcode: "" + name: "Article request - completed" + is_html: 0 + title: "Article request completed" + message_transport_type: email + lang: default + content: + - "Dear <> <> (<>)," + - "" + - "We have completed your request for an article from <> (<>)." + - "" + - "Article requested:" + - "Title: <>" + - "Author: <>" + - "Volume: <>" + - "Issue: <>" + - "Date: <>" + - "Pages: <>" + - "Chapters: <>" + - "Notes: <>" + - "" + - "You may pick your article up at <>." + - "" + - "Thank you!" + + - module: circulation + code: AR_PENDING + branchcode: "" + name: "Article request - open" + is_html: 0 + title: "Article request received" + message_transport_type: email + lang: default + content: + - "Dear <> <> (<>)" + - "" + - "We have received your request for an article from <> (<>)." + - "" + - "Article requested:" + - "Title: <>" + - "Author: <>" + - "Volume: <>" + - "Issue: <>" + - "Date: <>" + - "Pages: <>" + - "Chapters: <>" + - "Notes: <>" + - "" + - "" + - "Thank you!" + + - module: circulation + code: AR_PROCESSING + branchcode: "" + name: "Article request - processing" + is_html: 0 + title: "Article request processing" + message_transport_type: email + lang: default + content: + - "Dear <> <> (<>)," + - "" + - "We are now processing your request for an article from <> (<>)." + - "" + - "Article requested:" + - "Title: <>" + - "Author: <>" + - "Volume: <>" + - "Issue: <>" + - "Date: <>" + - "Pages: <>" + - "Chapters: <>" + - "Notes: <>" + - "" + - "Thank you!" + + - module: circulation + code: AR_SLIP + branchcode: "" + name: "Article request - print slip" + is_html: 0 + title: "Article request" + message_transport_type: print + lang: default + content: + - "Article request:" + - "" + - "<> <> (<>)," + - "" + - "Title: <>" + - "Barcode: <>" + - "" + - "Article requested:" + - "Title: <>" + - "Author: <>" + - "Volume: <>" + - "Issue: <>" + - "Date: <>" + - "Pages: <>" + - "Chapters: <>" + - "Notes: <>" + - "" + + - module: circulation + code: CHECKIN + branchcode: "" + name: "Item Check-in (Digest)" + is_html: 0 + title: "Check-ins" + message_transport_type: email + lang: default + content: + - "The following items have been checked in:" + - "----" + - "[% biblio.title %]" + - "----" + - "Thank you." + + - module: circulation + code: CHECKOUT + branchcode: "" + name: "Item Check-out (Digest)" + is_html: 0 + title: "Checkouts" + message_transport_type: email + 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" + is_html: 0 + title: "Checkout note" + message_transport_type: email + lang: default + content: + - "<> <> has added a note to the item <> - <> (<>)." + + - module: circulation + code: DUE + branchcode: "" + name: "Item Due Reminder" + is_html: 0 + title: "Item Due Reminder" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "The following item is now due:" + - "" + - "<>, <> (<>)" + + - module: circulation + code: DUEDGST + branchcode: "" + name: "Item Due Reminder (Digest)" + is_html: 0 + title: "Item Due Reminder" + message_transport_type: email + lang: default + content: + - "You have <> items due" + + - module: circulation + code: HOLD_SLIP + branchcode: "" + name: "Hold Slip" + is_html: 1 + title: "Hold Slip" + message_transport_type: email + lang: default + content: + - "
Date: <>
" + - "" + - "

Transfer to/Hold in <>

" + - "" + - "

<>, <>

" + - "" + - "
    " + - "
  • <>
  • " + - "
  • <>
  • " + - "
  • <>
    " + - " <>
    " + - " <> <>" + - "
  • " + - "
  • <>
  • " + - "
" + - "
" + - "

ITEM ON HOLD

" + - "

<>

" + - "
<>
" + - "
    " + - "
  • <>
  • " + - "
  • <>
  • " + - "
  • <>
  • " + - "
" + - "

Notes:" + - "

<>
" + - "

" + - "" + + - module: circulation + code: ISSUEQSLIP + branchcode: "" + name: "Issue Quick Slip" + is_html: 1 + title: "Issue Quick Slip" + message_transport_type: email + lang: default + content: + - "

<>

" + - "Checked out to <> <> <> <>
" + - "(<>)
" + - "" + - "<>
" + - "" + - "

Checked Out Today

" + - "" + - "

" + - "<>
" + - "Barcode: <>
" + - "Date due: <>
" + - "

" + - "
" + + - module: circulation + code: ISSUESLIP + branchcode: "" + name: "Issue Slip" + is_html: 1 + title: "Issue Slip" + message_transport_type: email + lang: default + content: + - "

<>

" + - "Checked out to <> <> <> <>
" + - "(<>)
" + - "" + - "<>
" + - "" + - "

Checked Out

" + - "" + - "

" + - "<>
" + - "Barcode: <>
" + - "Date due: <>
" + - "

" + - "
" + - "" + - "

Overdues

" + - "" + - "

" + - "<>
" + - "Barcode: <>
" + - "Date due: <>
" + - "

" + - "
" + - "" + - "
" + - "" + - "

News

" + - "" + - "
" + - "
<>
" + - "

<>

" + - "

Posted on <>

" + - "
" + - "
" + - "
" + + - module: circulation + code: ODUE + branchcode: "" + name: "Overdue Notice" + is_html: 0 + title: "Item Overdue" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "According to our current records, you have items that are overdue.Your library does not charge late fines, but please return or renew them at the branch below as soon as possible." + - "" + - "<>" + - "<>" + - "<> <>" + - "Phone: <>" + - "Fax: <>" + - "Email: <>" + - "" + - "If you have registered a password with the library, and you have a renewal available, you may renew online. If an item becomes more than 30 days overdue, you will be unable to use your library card until the item is returned." + - "" + - "The following item(s) is/are currently overdue:" + - "" + - "\"<>\" by <>, <>, Barcode: <> Fine: <>" + - "" + - "Thank-you for your prompt attention to this matter." + - "" + - "<> Staff" + - "" + + - module: circulation + code: OVERDUES_SLIP + branchcode: "" + name: "Overdues Slip" + is_html: 0 + title: "OVERDUES_SLIP" + message_transport_type: print + lang: default + content: + - "The following item(s) is/are currently overdue:" + - "" + - "\"<>\" by <>, <>, Barcode: <> Fine: <>" + - "" + + - module: circulation + code: PREDUE + branchcode: "" + name: "Advance Notice of Item Due" + is_html: 0 + title: "Advance Notice of Item Due" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "The following item will be due soon:" + - "" + - "<>, <> (<>)" + + - module: circulation + code: PREDUEDGST + branchcode: "" + name: "Advance Notice of Item Due (Digest)" + is_html: 0 + title: "Advance Notice of Item Due" + message_transport_type: email + lang: default + content: + - "You have <> items due soon" + + - module: circulation + code: RENEWAL + branchcode: "" + name: "Item Renewals" + is_html: 0 + title: "Item Renewals" + message_transport_type: email + lang: default + content: + - "The following items have been renewed:" + - "----" + - "<>" + - "----" + - "Thank you for visiting <>." + + - module: circulation + code: SR_SLIP + branchcode: "" + name: "Stock rotation slip" + is_html: 0 + title: "Stock rotation report" + message_transport_type: email + lang: default + content: + - "Stock rotation report for [% branch.name %]:" + - "" + - "[% IF branch.items.size %][% branch.items.size %] items to be processed for this branch." + - "[% 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 %]" + - "Location: [% item.location %]" + - "Barcode: [% item.barcode %]" + - "On loan?: [% item.onloan %]" + - "Status: [% item.reason %]" + - "Current library: [% item.branch.branchname %] [% item.branch.branchcode %]" + - "" + - "[% END %][% END %]" + + - module: circulation + code: TRANSFERSLIP + branchcode: "" + name: "Transfer Slip" + is_html: 1 + title: "Transfer Slip" + message_transport_type: email + lang: default + content: + - "
Date: <>
" + - "" + - "

Transfer to <>

" + - "" + - "

ITEM

" + - "

<>

" + - "
<>
" + - "
    " + - "
  • <>
  • " + - "
  • <>
  • " + - "
" + + - module: claimacquisition + code: ACQCLAIM + branchcode: "" + name: "Acquisition Claim" + is_html: 0 + title: "Item Not Received" + message_transport_type: email + lang: default + content: + - "<>" + - "<>" + - "<>" + - "<>" + - "<>" + - "<>" + - "" + - "Ordernumber <> (<>) (<> ordered) ($<> each) has not been received." + + - module: members + code: ACCTDETAILS + branchcode: "" + name: "Account Details Template - DEFAULT" + is_html: 0 + title: "Your new Koha account details." + message_transport_type: email + lang: default + content: + - "Hello <> <> <>." + - "" + - "Your new Koha account details are:" + - "" + - "User: <>" + - "Password: <>" + - "" + - "If you have any problems or questions regarding your account, please contact your Koha Administrator." + - "" + - "Thank you," + - "Koha Administrator" + - "kohaadmin@yoursite.org" + + - module: members + code: DISCHARGE + branchcode: "" + name: "Discharge confirmation" + is_html: 1 + title: "Discharge for <> <>" + message_transport_type: email + lang: default + content: + - "" + - "<>" + - "

Discharge confirmation

" + - "

<> certifies that the following borrower:
" + - "<> <> (cardnumber: <>)
" + - "has returned all items.

" + + - module: members + code: MEMBERSHIP_EXPIRY + branchcode: "" + name: "Account expiration" + is_html: 0 + title: "Account expiration" + message_transport_type: email + lang: default + content: + - "Dear <> <> <>," + - "" + - "Your library card will expire soon, on:" + - "" + - "<>" + - "" + - "Thank you," + - "" + - "Librarian" + - "" + - "<>" + + - module: members + code: OPAC_REG_VERIFY + branchcode: "" + name: "Opac Self-Registration Verification Email" + is_html: 1 + title: "Verify Your Account" + message_transport_type: email + lang: default + content: + - "Hello!" + - "" + - "Your library account has been created. Please verify your email address by clicking this link to complete the signup process:" + - "" + - "<>/cgi-bin/koha/opac-registration-verify.pl?token=<>" + - "" + - "If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly." + + - module: members + code: PASSWORD_RESET + branchcode: "" + name: "Online password reset" + is_html: 1 + title: "Koha password recovery" + message_transport_type: email + lang: default + content: + - "" + - "

This email has been sent in response to your password recovery request for the account <>." + - "

" + - "

" + - "You can now create your new password using the following link:" + - "
>\"><>" + - "

" + - "

This link will be valid for 2 days from this email's reception, then you must reapply if you do not change your password.

" + - "

Thank you.

" + - "" + - "" + + - module: members + code: SHARE_ACCEPT + branchcode: "" + name: "Notification about an accepted share" + is_html: 0 + title: "Share on list <> accepted" + message_transport_type: email + lang: default + content: + - "Dear patron," + - "" + - "We want to inform you that <> <> accepted your invitation to share your list <> in our library catalog." + - "" + - "Thank you." + - "" + - "Your library." + + - module: members + code: SHARE_INVITE + branchcode: "" + name: "Invitation for sharing a list" + is_html: 0 + title: "Share list <>" + message_transport_type: email + lang: default + content: + - "Dear patron," + - "" + - "One of our patrons, <> <>, invites you to share a list <> in our library catalog." + - "" + - "To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar." + - "" + - "<>" + - "" + - "In case you are not a patron in our library or do not want to accept this invitation, please ignore this mail. Note also that this invitation expires within two weeks." + - "" + - "Thank you." + - "" + - "Your library." + + - module: orderacquisition + code: ACQORDER + branchcode: "" + name: "Acquisition order" + is_html: 0 + title: "Order" + message_transport_type: email + lang: default + content: + - "<>" + - "<>" + - "<>" + - "<>" + - "<>" + - "<>" + - "" + - "Please order for the library:" + - "" + - "Ordernumber <> (<>) (quantity: <>) ($<> each)." + - "" + - "Thank you," + - "" + - "<>" + + - module: pos + code: RECEIPT + branchcode: "" + name: "Point of sale receipt" + is_html: 0 + title: "Receipt" + message_transport_type: print + lang: default + content: + - "[% PROCESS \"accounts.inc\" %]" + - "" + - "[% IF ( LibraryName ) %]" + - " " + - " " + - " " + - "[% END %]" + - " " + - " " + - " " + - "" + - " " + - "" + - " " + - " " + - "" + - "" + - " " + - " " + - "" + - "" + - " " + - " " + - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "" + - " [% FOREACH offset IN offsets %]" + - " " + - " " + - " " + - " " + - " [% END %]" + - "" + - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "" + - "
" + - "

[% LibraryName | html %]

" + - "
" + - "

[% Branches.GetName( payment.branchcode ) | html %]

" + - "
" + - "

[% payment.date | $KohaDates %]

" + - "
Transaction ID: [% payment.accountlines_id %]
Operator ID: [% payment.manager_id %]
Payment type: [% payment.payment_type %]
" + - "

Fee receipt

" + - "
Description of chargesAmount
[% PROCESS account_type_description account=offset.debit %][% offset.amount * -1 | $Price %]
Total: [% payment.amount * -1| $Price %]
Tendered: [% collected | $Price %]
Change: [% change | $Price %]
" + + - module: reserves + code: CANCEL_HOLD_ON_LOST + branchcode: "" + name: "Hold has been cancelled" + is_html: 0 + title: "Hold has been cancelled" + message_transport_type: email + lang: default + content: + - "Dear [% borrower.firstname %] [% borrower.surname %]," + - "" + - "We regret to inform you, that the following item can not be provided due to it being missing. Your hold was cancelled." + - "" + - "Title: [% biblio.title %]" + - "Author: [% biblio.author %]" + - "Copy: [% item.copynumber %]" + - "Location: [% branch.branchname %]" + + - module: reserves + code: HOLD + branchcode: "" + name: "Hold Available for Pickup" + is_html: 0 + title: "Hold Available for Pickup at <>" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "You have a hold available for pickup as of <>:" + - "" + - "Title: <>" + - "Author: <>" + - "Copy: <>" + - "Location: <>" + - "<>" + - "<>" + - "<>" + - "<> <>" + + - 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 + content: + - "<>" + - "<>" + - "<>" + - "" + - "" + - "Change Service Requested" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "<> <>" + - "<>" + - "<> <>" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "<> <> <>" + - "" + - "You have a hold available for pickup as of <>:" + - "" + - "Title: <>" + - "Author: <>" + - "Copy: <>" + - "" + + - module: reserves + code: HOLDPLACED + branchcode: "" + name: "Hold Placed on Item" + is_html: 0 + title: "Hold Placed on Item" + message_transport_type: email + lang: default + content: + - "A hold has been placed on the following item : <> (<>) by the user <> <> (<>)." + + - module: serial + code: SERIAL_ALERT + branchcode: "" + name: "New serial issue" + is_html: 0 + title: "New serial issue is now available" + message_transport_type: email + lang: default + content: + - "<> <>," + - "" + - "The following issue is now available:" + - "" + - "<>, <> (<>)" + - "" + - "Please pick it up at your convenience." + + - module: suggestions + code: ACCEPTED + branchcode: "" + name: "Suggestion accepted" + is_html: 0 + title: "Purchase suggestion accepted" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "You have suggested that the library acquire <> by <>." + - "" + - "The library has reviewed your suggestion today. The item will be ordered as soon as possible. You will be notified by mail when the order is completed, and again when the item arrives at the library." + - "" + - "If you have any questions, please email us at <>." + - "" + - "Thank you," + - "" + - "<>" + + - module: suggestions + code: AVAILABLE + branchcode: "" + name: "Suggestion available" + is_html: 0 + title: "Suggested purchase available" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "You have suggested that the library acquire <> by <>." + - "" + - "We are pleased to inform you that the item you requested is now part of the collection." + - "" + - "If you have any questions, please email us at <>." + - "" + - "Thank you," + - "" + - "<>" + + - module: suggestions + code: NEW_SUGGESTION + branchcode: "" + name: "New suggestion" + is_html: 1 + title: "New suggestion" + message_transport_type: email + lang: default + content: + - "

Suggestion pendin g approval

" + - "

Suggested by

" + - "
    " + - "
  • <> <>
  • " + - "
  • <>
  • " + - "
  • <>
  • " + - "
  • <>
  • " + - "
" + - "

" + - "

Title suggested

" + - "
    " + - "
  • Library: <>
  • " + - "
  • Title: <>
  • " + - "
  • Author: <>
  • " + - "
  • Copyright date: <>
  • " + - "
  • Standard number (ISBN, ISSN or other): <>
  • " + - "
  • Publisher: <>
  • " + - "
  • Collection title: <>
  • " + - "
  • Publication place: <>
  • " + - "
  • Quantity: <>
  • " + - "
  • Item type: <>
  • " + - "
  • Reason for suggestion: <>
  • " + - "
  • Notes: <>
  • " + - "
" + - "

" + + - module: suggestions + code: ORDERED + branchcode: "" + name: "Suggestion ordered" + is_html: 0 + title: "Suggested item ordered" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "You have suggested that the library acquire <> by <>." + - "" + - "We are pleased to inform you that the item you requested has now been ordered. It should arrive soon, at which time it will be processed for addition into the collection." + - "" + - "You will be notified again when the book is available." + - "" + - "If you have any questions, please email us at <>" + - "" + - "Thank you," + - "" + - "<>" + + - module: suggestions + code: REJECTED + branchcode: "" + name: "Suggestion rejected" + is_html: 0 + title: "Purchase suggestion declined" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "You have suggested that the library acquire <> by <>." + - "" + - "The library has reviewed your request today, and has decided not to accept the suggestion at this time." + - "" + - "The reason given is: <>" + - "" + - "If you have any questions, please email us at <>." + - "" + - "Thank you," + - "" + - "<>" + + - module: suggestions + code: TO_PROCESS + branchcode: "" + name: "Notify fund owner" + is_html: 0 + title: "A suggestion is ready to be processed" + message_transport_type: email + lang: default + content: + - "Dear <> <>," + - "" + - "A new suggestion is ready to be processed: <> by <>." + - "" + - "Thank you," + - "" + - "<>"