Lines 314-316
INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
Link Here
|
314 |
|
314 |
|
315 |
INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES |
315 |
INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES |
316 |
('circulation', 'SR_SLIP', '', 'Stock Rotation Slip', 0, 'Stockrotation Report', 'Stockrotation 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'); |
316 |
('circulation', 'SR_SLIP', '', 'Stock Rotation Slip', 0, 'Stockrotation Report', 'Stockrotation 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'); |
317 |
- |
317 |
|
|
|
318 |
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'notification on auto renewing', 'Auto renewals', |
319 |
"Dear [% borrower.firstname %] [% borrower.surname %], |
320 |
[% IF checkout.auto_renew_error %] |
321 |
The following item [% biblio.title %] has not been correctly renewed |
322 |
[% IF checkout.auto_renew_error == 'too_many' %] |
323 |
You have reach the maximum of checkouts possible. |
324 |
[% ELSIF checkout.auto_renew_error == 'on_reserve' %] |
325 |
This item is on hold for another patron. |
326 |
[% ELSIF checkout.auto_renew_error == 'restriction' %] |
327 |
You are currently restricted. |
328 |
[% ELSIF checkout.auto_renew_error == 'overdue' %] |
329 |
You have overdues. |
330 |
[% ELSIF checkout.auto_renew_error == 'auto_too_late' %] |
331 |
It\'s too late to renew this checkout. |
332 |
[% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %] |
333 |
You have too much unpaid fines. |
334 |
[% END %] |
335 |
[% ELSE %] |
336 |
The following item [% biblio.title %] has correctly been renewed and is now due [% checkout.date_due %] |
337 |
[% END %]", 'email'); |