Bug 23787: Add sample AUTO_RENEWALS notice to translatd installers
This adds the default auto renewal notice to the translated installers. Translating will be handled by maintainers of the installers, but this way we don't end up with installations having a different set of notices than others. To test: - Verify the sample_notices.sql files load correctly or - Run the web installer for each of those languages and verify sample_notices loads correctly. Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
c9a032a8fc
commit
3aecd0afb0
8 changed files with 168 additions and 0 deletions
|
@ -386,3 +386,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -268,3 +268,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -379,3 +379,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -382,3 +382,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -398,3 +398,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -376,3 +376,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -378,3 +378,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
|
@ -469,3 +469,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`,
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>', 'print', 'default');
|
||||
|
||||
INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
|
||||
"Dear [% borrower.firstname %] [% borrower.surname %],
|
||||
[% IF checkout.auto_renew_error %]
|
||||
The following item, [% biblio.title %], has not been renewed because:
|
||||
[% IF 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.
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due %]
|
||||
[% END %]", 'email');
|
||||
|
|
Loading…
Reference in a new issue