Bug 28198: Correct sample HOLD_REMINDER notice for it,nb,pl,ru
[koha.git] / installer / data / mysql / ru-RU / mandatory / sample_notices.sql
1 INSERT INTO `letter` (module, code, name, title, content, message_transport_type)
2 VALUES ('circulation','ODUE','Overdue notice','Item overdue','Dear <<borrowers.firstname>> <<borrowers.surname>>,\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<<branches.branchname>>\n<<branches.branchaddress1>>\n<<branches.branchaddress2>> <<branches.branchaddress3>>\nPhone: <<branches.branchphone>>\nFax: <<branches.branchfax>>\nEmail: <<branches.branchemail>>\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<item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>\n\nThank-you for your prompt attention to this matter.\n\n<<branches.branchname>> Staff\n', 'email'),
3 ('claimacquisition','ACQCLAIM','Acquisition claim','Item not received','<<aqbooksellers.name>>\r\n<<aqbooksellers.address1>>\r\n<<aqbooksellers.address2>>\r\n<<aqbooksellers.address3>>\r\n<<aqbooksellers.address4>>\r\n<<aqbooksellers.phone>>\r\n\r\n<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered) ($<<aqorders.listprice>> each) has not been received.</order>', 'email'),
4 ('orderacquisition','ACQORDER','Acquisition order','Order','<<aqbooksellers.name>>\r\n<<aqbooksellers.address1>>\r\n<<aqbooksellers.address2>>\r\n<<aqbooksellers.address3>>\r\n<<aqbooksellers.address4>>\r\n<<aqbooksellers.phone>>\r\n\r\nPlease order for the library:\r\n\r\n<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (quantity: <<aqorders.quantity>>) ($<<aqorders.listprice>> each).</order>\r\n\r\nThank you,\n\n<<branches.branchname>>', 'email'),
5 ('serial','SERIAL_ALERT','New serial issue','New serial issue is now available','<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following issue is now available:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)\r\n\r\nPlease pick it up at your convenience.', 'email'),
6 ('members','ACCTDETAILS','Account details template - DEFAULT','Your new Koha account details.','Hello <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>.\r\n\r\nYour new Koha account details are:\r\n\r\nUser:  <<borrowers.userid>>\r\nPassword: <<borrowers.password>>\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'),
7 ('circulation','DUE','Item due reminder','Item due reminder','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following item is now due:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)', 'email'),
8 ('circulation','DUEDGST','Item due reminder (digest)','Item due reminder','You have <<count>> items due', 'email'),
9 ('circulation','PREDUE','Advance notice of item due','Advance notice of item due','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following item will be due soon:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)', 'email'),
10 ('circulation','PREDUEDGST','Advance notice of item due (digest)','Advance notice of item due','You have <<count>> items due soon', 'email'),
11 ('reserves', 'HOLD', 'Hold available for pickup', 'Hold available for pickup at <<branches.branchname>>', 'Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nYou have a hold available for pickup as of <<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor: <<biblio.author>>\r\nCopy: <<items.copynumber>>\r\nLocation: <<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n<<branches.branchaddress3>>\r\n<<branches.branchcity>> <<branches.branchzip>>', 'email'),
12 ('reserves', 'HOLD', 'Hold available for pickup', 'Hold available for pickup (print notice)', '<<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n\r\n\r\nChange service requested\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<<borrowers.firstname>> <<borrowers.surname>>\r\n<<borrowers.address>>\r\n<<borrowers.city>> <<borrowers.zipcode>>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<<borrowers.firstname>> <<borrowers.surname>> <<borrowers.cardnumber>>\r\n\r\nYou have a hold available for pickup as of <<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor: <<biblio.author>>\r\nCopy: <<items.copynumber>>\r\n', 'print'),
13 ('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'),
14 ('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'),
15 ('reserves', 'HOLDPLACED', 'Hold placed on item', 'Hold placed on item','A hold has been placed on the following item : <<biblio.title>> (<<biblio.biblionumber>>) by the user <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>).', 'email'),
16 ('reserves','HOLD_REMINDER','Waiting hold reminder','You have waiting holds.','Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nThe following holds are waiting at [% branch.branchname %]:\r\n\\r\n[% FOREACH hold IN holds %]\r\n    [% hold.biblio.title %] : waiting since [% hold.waitingdate | $KohaDates %]\r\n[% END %]','email'),
17 ('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'),
18 ('suggestions','ACCEPTED','Suggestion accepted', 'Purchase suggestion accepted','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\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 <<branches.branchemail>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
19 ('suggestions','AVAILABLE','Suggestion available', 'Suggested purchase available','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\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 <<branches.branchemail>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
20 ('suggestions','ORDERED','Suggestion ordered', 'Suggested item ordered','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\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 <<branches.branchemail>>\n\nThank you,\n\n<<branches.branchname>>', 'email'),
21 ('suggestions','REJECTED','Suggestion rejected', 'Purchase suggestion declined','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\n\nThe library has reviewed your request today, and has decided not to accept the suggestion at this time.\n\nThe reason given is: <<suggestions.reason>>\n\nIf you have any questions, please email us at <<branches.branchemail>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
22 ('suggestions','TO_PROCESS','Notify fund owner', 'A suggestion is ready to be processed','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nA new suggestion is ready to be processed: <<suggestions.title>> by <<suggestions.author>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
23 ('suggestions', 'NOTIFY_MANAGER', 'Notify manager of a suggestion', "A suggestion has been assigned to you", "Dear [% borrower.firstname %] [% borrower.surname %],\nA suggestion has been assigned to you: [% suggestion.title %].\nThank you,\n[% branch.branchname %]", 'email'),
24 ('members', 'DISCHARGE', 'Discharge', 'Discharge for <<borrowers.firstname>> <<borrowers.surname>>', '<h1>Discharge</h1>\r\n\r\nThe library <<borrowers.branchcode>> certifies that the following borrower :\r\n\r\n    <<borrowers.firstname>> <<borrowers.surname>>\r\n   Cardnumber : <<borrowers.cardnumber>>\r\n\r\nreturned all his documents.', 'email'),
25 ('members', 'PROBLEM_REPORT','OPAC problem report','OPAC problem report','Username: <<problem_reports.username>>\n\nProblem page: <<problem_reports.problempage>>\n\nTitle: <<problem_reports.title>>\n\nMessage: <<problem_reports.content>>','email');
26
27 INSERT INTO `letter` (module, code, name, title, content, is_html, message_transport_type)
28 VALUES ('suggestions','NEW_SUGGESTION','New suggestion','New suggestion','<h3>Suggestion pendin    g approval</h3>
29     <p><h4>Suggested by</h4>
30     <ul>
31     <li><<borrowers.firstname>> <<borrowers.surname>></li>
32     <li><<borrowers.cardnumber>></li>
33     <li><<borrowers.phone>></li>
34     <li><<borrowers.email>></li>
35     </ul>
36     </p>
37     <p><h4>Title suggested</h4>
38     <ul>
39     <li><b>Library:</b> <<branches.branchname>></li>
40     <li><b>Title:</b> <<suggestions.title>></li>
41     <li><b>Author:</b> <<suggestions.author>></li>
42     <li><b>Copyright date:</b> <<suggestions.copyrightdate>></li>
43     <li><b>Standard number (ISBN, ISSN or other):</b> <<suggestions.isbn>></li>
44     <li><b>Publisher:</b> <<suggestions.publishercode>></li>
45     <li><b>Collection title:</b> <<suggestions.collectiontitle>></li>
46     <li><b>Publication place:</b> <<suggestions.place>></li>
47     <li><b>Quantity:</b> <<suggestions.quantity>></li>
48     <li><b>Item type:</b>  <<suggestions.itemtype>></li>
49     <li><b>Reason for suggestion:</b> <<suggestions.patronreason>></li>
50     <li><b>Notes:</b> <<suggestions.note>></li>
51     </ul>
52     </p>',1, 'email'),
53     ('circulation','CHECKINSLIP','Checkin slip','Checkin slip',
54 "<h3>[% branch.branchname %]</h3>
55 Checked in items for [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
56 ([% borrower.cardnumber %]) <br />
57
58 [% today | $KohaDates %]<br />
59
60 <h4>Checked in today</h4>
61 [% FOREACH checkin IN old_checkouts %]
62 [% SET item = checkin.item %]
63 <p>
64 [% item.biblio.title %] <br />
65 Barcode: [% item.barcode %] <br />
66 </p>
67 [% END %]", 1, 'print');
68
69 INSERT INTO `letter` (module, code, name, title, content, is_html)
70 VALUES ('circulation','ISSUESLIP','Issue slip','Issue slip', '<h3><<branches.branchname>></h3>
71 Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
72 (<<borrowers.cardnumber>>) <br />
73
74 <<today>><br />
75
76 <h4>Checked out</h4>
77 <checkedout>
78 <p>
79 <<biblio.title>> <br />
80 Barcode: <<items.barcode>><br />
81 Date due: <<issues.date_due>><br />
82 </p>
83 </checkedout>
84
85 <h4>Overdues</h4>
86 <overdue>
87 <p>
88 <<biblio.title>> <br />
89 Barcode: <<items.barcode>><br />
90 Date due: <<issues.date_due>><br />
91 </p>
92 </overdue>
93
94 <hr>
95
96 <h4 style="text-align: center; font-style:italic;">News</h4>
97 <news>
98 <div class="newsitem">
99 <h5 style="margin-bottom: 1px; margin-top: 1px"><b><<opac_news.title>></b></h5>
100 <p style="margin-bottom: 1px; margin-top: 1px"><<opac_news.content>></p>
101 <p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px">Posted on <<opac_news.tim
102 estamp>></p>
103 <hr />
104 </div>
105 </news>', 1),
106 ('circulation','ISSUEQSLIP','Issue quick slip','Issue quick slip', '<h3><<branches.branchname>></h3>
107 Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
108 (<<borrowers.cardnumber>>) <br />
109
110 <<today>><br />
111
112 <h4>Checked out today</h4>
113 <checkedout>
114 <p>
115 <<biblio.title>> <br />
116 Barcode: <<items.barcode>><br />
117 Date due: <<issues.date_due>><br />
118 </p>
119 </checkedout>', 1),
120 ('circulation','HOLD_SLIP','Hold slip','Hold slip', '<h5>Date: <<today>></h5>
121
122 <h3> Transfer to/Hold in <<branches.branchname>></h3>
123
124 <h3><<borrowers.surname>>, <<borrowers.firstname>></h3>
125
126 <ul>
127     <li><<borrowers.cardnumber>></li>
128     <li><<borrowers.phone>></li>
129     <li> <<borrowers.address>><br />
130          <<borrowers.address2>><br />
131          <<borrowers.city >>  <<borrowers.zipcode>>
132     </li>
133     <li><<borrowers.email>></li>
134 </ul>
135 <br />
136 <h3>ITEM ON HOLD</h3>
137 <h4><<biblio.title>></h4>
138 <h5><<biblio.author>></h5>
139 <ul>
140    <li><<items.barcode>></li>
141    <li><<items.itemcallnumber>></li>
142    <li><<reserves.waitingdate>></li>
143 </ul>
144 <p>Notes:
145 <pre><<reserves.reservenotes>></pre>
146 </p>
147 ', 1),
148 ('circulation','TRANSFERSLIP','Transfer slip','Transfer slip', '<h5>Date: <<today>></h5>
149
150 <h3>Transfer to <<branches.branchname>></h3>
151
152 <h3>ITEM</h3>
153 <h4><<biblio.title>></h4>
154 <h5><<biblio.author>></h5>
155 <ul>
156    <li><<items.barcode>></li>
157    <li><<items.itemcallnumber>></li>
158 </ul>', 1);
159
160 INSERT INTO `letter` (`module`,`code`,`branchcode`,`name`,`is_html`,`title`,`content`)
161 VALUES (
162 'members',  'OPAC_REG_VERIFY',  '',  'OPAC self-registration verification email',  '1',  'Verify your account',  'Hello!
163
164 Your library account has been created. Please verify your email address by clicking this link to complete the signup process:
165
166 <<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>>
167
168 If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly.'
169 );
170
171 INSERT INTO `letter` (module, code, name, title, content) VALUES ('circulation','RENEWAL','Item renewal','Renewals','The following items have been renew:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you for visiting <<branches.branchname>>.');
172
173 INSERT INTO  letter (module, code, branchcode, name, is_html, title, content)
174 VALUES ('members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <<listname>>', 'Dear patron,
175
176 One of our patrons, <<borrowers.firstname>> <<borrowers.surname>>, invites you to share a list <<listname>> in our library catalog.
177
178 To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar.
179
180 <<shareurl>>
181
182 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.
183
184 Thank you.
185
186 Your library.'
187 );
188 INSERT INTO  letter (module, code, branchcode, name, is_html, title, content)
189 VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <<listname>> accepted', 'Dear patron,
190
191 We want to inform you that <<borrowers.firstname>> <<borrowers.surname>> accepted your invitation to share your list <<listname>> in our library catalog.
192
193 Thank you.
194
195 Your library.'
196 );
197
198 INSERT INTO letter(module, code, branchcode, name, title, content, message_transport_type)
199 VALUES ('acquisition', 'ACQ_NOTIF_ON_RECEIV', '', 'Notification on receiving', 'Order received', 'Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\n The order <<aqorders.ordernumber>> (<<biblio.title>>) has been received.\n\nYour library.', 'email'),
200 ('members','MEMBERSHIP_EXPIRY','','Account expiration','Account expiration','Dear <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>,.\r\n\r\nYour library card will expire soon, on:\r\n\r\n<<borrowers.dateexpiry>>\r\n\r\nThank you,\r\n\r\nLibrarian\r\n\r\n<<branches.branchname>>','email');
201
202 INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type )
203 VALUES ( 'circulation', 'OVERDUES_SLIP', '', 'Overdues slip', '0', 'Overdues slip', 'The following item(s) is/are currently overdue:
204
205 <item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>
206 ', 'print' );
207
208 INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type)
209 VALUES ('members','PASSWORD_RESET','','Online password reset',1,'Koha password recovery','<html>\r\n<p>This email has been sent in response to your password recovery request for the account <strong><<user>></strong>.\r\n</p>\r\n<p>\r\nYou can now create your new password using the following link:\r\n<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>\r\n</p>\r\n<p>This link will be valid for 2 days from this email\'s reception, then you must reapply if you do not change your password.</p>\r\n<p>Thank you.</p>\r\n</html>\r\n','email'
210 );
211
212 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
213 ('circulation', 'AR_CANCELED', '', 'Article request - canceled', 0, 'Article request canceled', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nYour request for an article from <<biblio.title>> (<<items.barcode>>) has been canceled for the following reason:\r\n\r\n<<article_requests.notes>>\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\nYour library', 'email'),
214 ('circulation', 'AR_COMPLETED', '', 'Article request - completed', 0, 'Article request completed', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nWe have completed your request for an article from <<biblio.title>> (<<items.barcode>>).\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\nYou may pick your article up at <<branches.branchname>>.\r\n\r\nThank you!', 'email'),
215 ('circulation', 'AR_PENDING', '', 'Article request - pending', 0, 'Article request received', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>)\r\n\r\nWe have received your request for an article from <<biblio.title>> (<<items.barcode>>).\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\n\r\nThank you!', 'email'),
216 ('circulation', 'AR_SLIP', '', 'Article request - print slip', 0, 'Article request', 'Article request:\r\n\r\n<<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nTitle: <<biblio.title>>\r\nBarcode: <<items.barcode>>\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n', 'print'),
217 ('circulation', 'AR_PROCESSING', '', 'Article request - processing', 0, 'Article request processing', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nWe are now processing your request for an article from <<biblio.title>> (<<items.barcode>>).\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\nThank you!', 'email'),
218 ('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<<borrowers.firstname>> <<borrowers.surname>> has added a note to the item <<biblio.title>> - <<biblio.author>> (<<biblio.biblionumber>>).','email');
219
220 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
221 ('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'),
222 ('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');
223
224 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
225 ('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', '<table>
226 [% IF ( LibraryName ) %]
227  <tr>
228     <th colspan="4" class="centerednames">
229         <h3>[% LibraryName | html %]</h3>
230     </th>
231  </tr>
232 [% END %]
233  <tr>
234     <th colspan="4" class="centerednames">
235         <h2><u>Fee receipt</u></h2>
236     </th>
237  </tr>
238  <tr>
239     <th colspan="4" class="centerednames">
240         <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
241     </th>
242  </tr>
243  <tr>
244     <th colspan="4">
245         Received with thanks from  [% patron.firstname | html %] [% patron.surname | html %] <br />
246         Card number: [% patron.cardnumber | html %]<br />
247     </th>
248  </tr>
249   <tr>
250     <th>Date</th>
251     <th>Description of charges</th>
252     <th>Note</th>
253     <th>Amount</th>
254  </tr>
255
256   [% FOREACH account IN accounts %]
257     <tr class="highlight">
258       <td>[% account.date | $KohaDates %]</td>
259       <td>
260         [% PROCESS account_type_description account=account %]
261         [%- IF account.description %], [% account.description | html %][% END %]
262       </td>
263       <td>[% account.note | html %]</td>
264       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
265     </tr>
266
267   [% END %]
268 <tfoot>
269   <tr>
270     <td colspan="3">Total outstanding dues as on date: </td>
271     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
272   </tr>
273 </tfoot>
274 </table>', 'print', 'default');
275
276 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
277 ('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '<table>
278   [% IF ( LibraryName ) %]
279     <tr>
280       <th colspan="5" class="centerednames">
281         <h3>[% LibraryName | html %]</h3>
282       </th>
283     </tr>
284   [% END %]
285
286   <tr>
287     <th colspan="5" class="centerednames">
288       <h2><u>INVOICE</u></h2>
289     </th>
290   </tr>
291   <tr>
292     <th colspan="5" class="centerednames">
293       <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
294     </th>
295   </tr>
296   <tr>
297     <th colspan="5" >
298       Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />
299       Card number: [% patron.cardnumber | html %]<br />
300     </th>
301   </tr>
302   <tr>
303     <th>Date</th>
304     <th>Description of charges</th>
305     <th>Note</th>
306     <th style="text-align:right;">Amount</th>
307     <th style="text-align:right;">Amount outstanding</th>
308   </tr>
309
310   [% FOREACH account IN accounts %]
311     <tr class="highlight">
312       <td>[% account.date | $KohaDates%]</td>
313       <td>
314         [% PROCESS account_type_description account=account %]
315         [%- IF account.description %], [% account.description | html %][% END %]
316       </td>
317       <td>[% account.note | html %]</td>
318       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
319       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
320     </tr>
321   [% END %]
322
323   <tfoot>
324     <tr>
325       <td colspan="4">Total outstanding dues as on date: </td>
326       [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
327     </tr>
328   </tfoot>
329 </table>', 'print', 'default');
330
331 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
332 ('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');
333 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
334 ('pos', 'RECEIPT', '', 'Point of sale receipt', 0, 'Receipt', '[% PROCESS "accounts.inc" %]
335 <table>
336 [% IF ( LibraryName ) %]
337  <tr>
338     <th colspan="2" class="centerednames">
339         <h3>[% LibraryName | html %]</h3>
340     </th>
341  </tr>
342 [% END %]
343  <tr>
344     <th colspan="2" class="centerednames">
345         <h2>[% Branches.GetName( payment.branchcode ) | html %]</h2>
346     </th>
347  </tr>
348 <tr>
349     <th colspan="2" class="centerednames">
350         <h3>[% payment.date | $KohaDates %]</h3>
351 </tr>
352 <tr>
353   <td>Transaction ID: </td>
354   <td>[% payment.accountlines_id %]</td>
355 </tr>
356 <tr>
357   <td>Operator ID: </td>
358   <td>[% payment.manager_id %]</td>
359 </tr>
360 <tr>
361   <td>Payment type: </td>
362   <td>[% payment.payment_type %]</td>
363 </tr>
364  <tr></tr>
365  <tr>
366     <th colspan="2" class="centerednames">
367         <h2><u>Fee receipt</u></h2>
368     </th>
369  </tr>
370  <tr></tr>
371  <tr>
372     <th>Description of charges</th>
373     <th>Amount</th>
374   </tr>
375
376   [% FOREACH offset IN offsets %]
377     <tr>
378         <td>[% PROCESS account_type_description account=offset.debit %]</td>
379         <td>[% offset.amount * -1 | $Price %]</td>
380     </tr>
381   [% END %]
382
383 <tfoot>
384   <tr class="highlight">
385     <td>Total: </td>
386     <td>[% payment.amount * -1| $Price %]</td>
387   </tr>
388   <tr>
389     <td>Tendered: </td>
390     <td>[% collected | $Price %]</td>
391   </tr>
392   <tr>
393     <td>Change: </td>
394     <td>[% change | $Price %]</td>
395     </tr>
396 </tfoot>
397 </table>', 'print', 'default');
398
399 INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
400 "Dear [% borrower.firstname %] [% borrower.surname %],
401 [% IF checkout.auto_renew_error %]
402 The following item, [% biblio.title %], has not been renewed because:
403 [% IF checkout.auto_renew_error == 'too_many' %]
404 You have reached the maximum number of checkouts possible.
405 [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
406 This item is on hold for another patron.
407 [% ELSIF checkout.auto_renew_error == 'restriction' %]
408 You are currently restricted.
409 [% ELSIF checkout.auto_renew_error == 'overdue' %]
410 You have overdue items.
411 [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
412 It\'s too late to renew this item.
413 [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
414 Your total unpaid fines are too high.
415 [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
416 This item must be renewed at the library.
417 [% END %]
418 [% ELSE %]
419 The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]
420 [% END %]", 'email');
421
422 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_PICKUP_READY', '', 'ILL request ready for pickup', 0, "Interlibrary loan request ready for pickup", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nThe Interlibrary loans request number [% illrequest.illrequest_id %] you placed for:\n\n- [% ill_bib_title %] - [% ill_bib_author %]\n\nis ready for pick up from [% branch.branchname %].\n\nKind Regards\n\n[% branch.branchname %]\n[% branch.branchaddress1 %]\n[% branch.branchaddress2 %]\n[% branch.branchaddress3 %]\n[% branch.branchcity %]\n[% branch.branchstate %]\n[% branch.branchzip %]\n[% branch.branchphone %]\n[% branch.branchillemail %]\n[% branch.branchemail %]", 'email', 'default');
423 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_REQUEST_UNAVAIL', '', 'ILL request unavailable', 0, "Interlibrary loan request unavailable", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nThe Interlibrary loans request number [% illrequest.illrequest_id %] you placed for\n\n- [% ill_bib_title %] - [% ill_bib_author %]\n\nis unfortunately unavailable.\n\nKind Regards\n\n[% branch.branchname %]\n[% branch.branchaddress1 %]\n[% branch.branchaddress2 %]\n[% branch.branchaddress3 %]\n[% branch.branchcity %]\n[% branch.branchstate %]\n[% branch.branchzip %]\n[% branch.branchphone %]\n[% branch.branchillemail %]\n[% branch.branchemail %]", 'email', 'default');
424 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_REQUEST_CANCEL', '', 'ILL request cancelled', 0, "Interlibrary loan request cancelled", "The patron for interlibrary loans request [% illrequest.illrequest_id %], with the following details, has requested cancellation of this ILL request:\n\n[% ill_full_metadata %]", 'email', 'default');
425 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_REQUEST_MODIFIED', '', 'ILL request modified', 0, "Interlibrary loan request modified", "The patron for interlibrary loans request [% illrequest.illrequest_id %], with the following details, has modified this ILL request:\n\n[% ill_full_metadata %]", 'email', 'default');
426 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_PARTNER_REQ', '', 'ILL request to partners', 0, "Interlibrary loan request to partners", "Dear Sir/Madam,\n\nWe would like to request an interlibrary loan for a title matching the following description:\n\n[% ill_full_metadata %]\n\nPlease let us know if you are able to supply this to us.\n\nKind Regards\n\n[% branch.branchname %]\n[% branch.branchaddress1 %]\n[% branch.branchaddress2 %]\n[% branch.branchaddress3 %]\n[% branch.branchcity %]\n[% branch.branchstate %]\n[% branch.branchzip %]\n[% branch.branchphone %]\n[% branch.branchillemail %]\n[% branch.branchemail %]", 'email', 'default');
427 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_PICKUP_READY', '', 'ILL request ready for pickup', 0, "Interlibrary loan request ready for pickup", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nThe Interlibrary loans request number [% illrequest.illrequest_id %] you placed for:\n\n- [% ill_bib_title %] - [% ill_bib_author %]\n\nis ready for pick up from [% branch.branchname %].\n\nKind Regards\n\n[% branch.branchname %]\n[% branch.branchaddress1 %]\n[% branch.branchaddress2 %]\n[% branch.branchaddress3 %]\n[% branch.branchcity %]\n[% branch.branchstate %]\n[% branch.branchzip %]\n[% branch.branchphone %]\n[% branch.branchillemail %]\n[% branch.branchemail %]", 'sms', 'default');
428 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_REQUEST_UNAVAIL', '', 'ILL request unavailable', 0, "Interlibrary loan request unavailable", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nThe Interlibrary loans request number [% illrequest.illrequest_id %] you placed for\n\n- [% ill_bib_title %] - [% ill_bib_author %]\n\nis unfortunately unavailable.\n\nKind Regards\n\n[% branch.branchname %]\n[% branch.branchaddress1 %]\n[% branch.branchaddress2 %]\n[% branch.branchaddress3 %]\n[% branch.branchcity %]\n[% branch.branchstate %]\n[% branch.branchzip %]\n[% branch.branchphone %]\n[% branch.branchillemail %]\n[% branch.branchemail %]", 'sms', 'default');
429 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_REQUEST_CANCEL', '', 'ILL request cancelled', 0, "Interlibrary loan request cancelled", "The patron for interlibrary loans request [% illrequest.illrequest_id %], with the following details, has requested cancellation of this ILL request:\n\n[% ill_full_metadata %]", 'sms', 'default');
430 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_REQUEST_MODIFIED', '', 'ILL request modified', 0, "Interlibrary loan request modified", "The patron for interlibrary loans request [% illrequest.illrequest_id %], with the following details, has modified this ILL request:\n\n[% ill_full_metadata %]", 'sms', 'default');
431 INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('ill', 'ILL_PARTNER_REQ', '', 'ILL request to partners', 0, "Interlibrary loan request to partners", "Dear Sir/Madam,\n\nWe would like to request an interlibrary loan for a title matching the following description:\n\n[% ill_full_metadata %]\n\nPlease let us know if you are able to supply this to us.\n\nKind Regards\n\n[% branch.branchname %]\n[% branch.branchaddress1 %]\n[% branch.branchaddress2 %]\n[% branch.branchaddress3 %]\n[% branch.branchcity %]\n[% branch.branchstate %]\n[% branch.branchzip %]\n[% branch.branchphone %]\n[% branch.branchillemail %]\n[% branch.branchemail %]", 'sms', 'default');
432
433 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS_DGST', 'Notification on auto renewals', 'Auto renewals (Digest)',
434 "Dear [% borrower.firstname %] [% borrower.surname %],
435 [% IF error %]
436     There were [% error %] items that were not renewed.
437 [% END %]
438 [% IF success %]
439     There were [% success %] items that were renewed.
440 [% END %]
441 [% FOREACH checkout IN checkouts %]
442     [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
443     [% IF !checkout.auto_renew_error %]
444         was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
445     [% ELSIF checkout.auto_renew_error == 'too_many' %]
446         You have reached the maximum number of checkouts possible.
447     [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
448         This item is on hold for another patron.
449     [% ELSIF checkout.auto_renew_error == 'restriction' %]
450         You are currently restricted.
451     [% ELSIF checkout.auto_renew_error == 'overdue' %]
452         You have overdue items.
453     [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
454         It's too late to renew this item.
455     [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
456         Your total unpaid fines are too high.
457     [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
458         This item must be renewed at the library.
459     [% END %]
460 [% END %]
461 ", 'email');