From 8573c478a2eafb7357de925d2ddcf2ff2ea693f5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 2 Dec 2015 17:34:55 +0000 Subject: [PATCH] Bug 15284 - Switch default ISSUESLIP notice to Template Toolkit Test Plan: 1) Apply this patch 2) Replace your ISSUESLIP with the following: [% USE KohaDates %]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
([% borrower.cardnumber %])
[% today | $KohaDates %]

Checked Out

[% FOREACH checkout IN borrower.checkouts %] [% IF ! checkout.is_overdue %]

[% checkout.item.biblio.title %]
Barcode: [% checkout.item.barcode %]
Date due: [% checkout.date_due | $KohaDates %]

[% END %] [% END %]

Overdues

[% FOREACH checkout IN borrower.checkouts %] [% IF checkout.is_overdue %]

[% checkout.item.biblio.title %]
Barcode: [% checkout.item.barcode %]
Date due: [% checkout.date_due | $KohaDates %]

[% END %] [% END %]

News

<>

<>

Posted on <>


3) Print a slip for a patron, note the data is complete --- .../data/mysql/de-DE/mandatory/sample_notices.sql | 63 +++++++++++--------- .../data/mysql/en/mandatory/sample_notices.sql | 44 ++++++++------ .../data/mysql/es-ES/mandatory/sample_notices.sql | 44 ++++++++------ .../mysql/fr-FR/1-Obligatoire/sample_notices.sql | 56 +++++++++-------- installer/data/mysql/it-IT/necessari/notices.sql | 58 ++++++++++-------- .../mysql/nb-NO/1-Obligatorisk/sample_notices.sql | 58 ++++++++++-------- .../data/mysql/pl-PL/mandatory/sample_notices.sql | 44 ++++++++------ .../data/mysql/ru-RU/mandatory/sample_notices.sql | 47 ++++++++------- .../data/mysql/uk-UA/mandatory/sample_notices.sql | 47 ++++++++------- 9 files changed, 257 insertions(+), 204 deletions(-) diff --git a/installer/data/mysql/de-DE/mandatory/sample_notices.sql b/installer/data/mysql/de-DE/mandatory/sample_notices.sql index 560545b..c4e4d3a 100644 --- a/installer/data/mysql/de-DE/mandatory/sample_notices.sql +++ b/installer/data/mysql/de-DE/mandatory/sample_notices.sql @@ -21,40 +21,47 @@ VALUES ('circulation','ODUE','Mahnung','Mahnung','Liebe/r < ('members', 'DISCHARGE', 'Bestätigung', 'Bestätigung <> <>', '

Bestätigung

\r\n\r\nDie Bibliothek <> bestätigt, dass\r\n\r\n <> <>\r\n (Kartennummer <>)\r\n\r\nalle ausgeliehenen Medien zurückgegeben hat.', 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Ausleihquittung (Quittungsdruck)','Ausleihquittung (Quittungsdruck)', '

Ausleihquittung

-Bibliothek: <>
-Ausleihe an: <> <>
-Ausweisnummer: <>
-
-<>
-
-

Ausleihen

- -

-<>
-Signatur: <>
-Barcode: <>
-Fällig am: <>
-

-
-
-

Überfällig

- -

-<>
-Signatur: <>
-Barcode: <>
-Fällig am: <>
-

-
+VALUES ('circulation','ISSUESLIP','Ausleihquittung (Quittungsdruck)','Ausleihquittung (Quittungsdruck)', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
+ +[% today | $KohaDates %]
+ +

Checked Out

+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %] + +

Overdues

+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %] + +
+ +

News

<>

<>

-

<>

+

Posted on <>


-
', 1), + +', 1), ('circulation','ISSUEQSLIP','Kurzquittung','Kurzquittung', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/en/mandatory/sample_notices.sql b/installer/data/mysql/en/mandatory/sample_notices.sql index e886ad8..9c40e90 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.sql +++ b/installer/data/mysql/en/mandatory/sample_notices.sql @@ -28,29 +28,34 @@ VALUES ('members', 'DISCHARGE', 'Discharge confirmation', 'Discharge for <', 1, 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
+VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
-<>
+[% today | $KohaDates %]

Checked Out

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]

Overdues

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
@@ -62,7 +67,8 @@ Date due: <>

Posted on <>


-', 1), + +', 1), ('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/es-ES/mandatory/sample_notices.sql b/installer/data/mysql/es-ES/mandatory/sample_notices.sql index c732077..142b8b8 100644 --- a/installer/data/mysql/es-ES/mandatory/sample_notices.sql +++ b/installer/data/mysql/es-ES/mandatory/sample_notices.sql @@ -20,29 +20,34 @@ VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <> <>', '

Discharge

\r\n\r\nThe library <> certifies that the following borrower :\r\n\r\n <> <>\r\n Cardnumber : <>\r\n\r\nreturned all his documents.', 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
+VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
-<>
+[% today | $KohaDates %]

Checked Out

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]

Overdues

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
@@ -54,7 +59,8 @@ Date due: <>

Posted on <>


-', 1), + +', 1), ('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql b/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql index 3d16f07..ba3229a 100644 --- a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql @@ -22,33 +22,38 @@ VALUES ('members', 'DISCHARGE', 'Quitus', 'Quitus pour <> <>', '

Quitus

\r\n\r\nLa librairie <> certifies que lecteur suivant :\r\n\r\n <> <>\r\n Numéro de carte : <>\r\n\r\na bien retourné tous ses documents.', 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Ticket de de prêt','Ticket de prêt', '

<>

-Prêts à <> <> <> <>
-(<>)
- -<>
- -

Emprunts

- -

-<>
-Code à barres : <>
-Retour le : <>
-

-
- -

Retards

- -

-<>
-Codes à barres : <>
-Retour le : <>
-

-
+VALUES ('circulation','ISSUESLIP','Ticket de de prêt','Ticket de prêt', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
+ +[% today | $KohaDates %]
+ +

Checked Out

+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %] + +

Overdues

+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
-

Nouvelles

+

News

<>
@@ -56,7 +61,8 @@ Retour le : <>

Posted on <>


-
', 1), + +', 1), ('circulation','ISSUEQSLIP','Ticket rapide','Ticket rapide', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/it-IT/necessari/notices.sql b/installer/data/mysql/it-IT/necessari/notices.sql index fea8270..baef82f 100644 --- a/installer/data/mysql/it-IT/necessari/notices.sql +++ b/installer/data/mysql/it-IT/necessari/notices.sql @@ -22,41 +22,47 @@ biblio.title>>\r\n----\r\nThank you for visiting <>.', 'ema ('members', 'DISCHARGE', 'Discharge', 'Discharge for <> <>', '

Discharge

\r\n\r\nThe library <> certifies that the following borrower :\r\n\r\n <> <>\r\n Cardnumber : <>\r\n\r\nreturned all his documents.', 'email'); INSERT INTO letter (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Ricevuta di prestito','Ricevuta di prestito', '

<>

-Prestito a <> <> <> <>
-(<>)
- -<>
- -

Prestito

- -

-<>
-Codice a barre: <>
-Data di scadenza: <>
-

-
- -

Ritardi

- -

-<>
-Codice a barre: <>
-Data di scadenza: <>
-

-
+VALUES ('circulation','ISSUESLIP','Ricevuta di prestito','Ricevuta di prestito', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
+ +[% today | $KohaDates %]
+ +

Checked Out

+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %] + +

Overdues

+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
-

Novità

+

News

<>

<>

-

Inserite il <>

+

Posted on <>


-
', 1), + +', 1), ('circulation','ISSUEQSLIP','Ricevuta (sintetica)','Ricevuta (sintetica)', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql b/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql index 7a54bdd..8ef42cb 100644 --- a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql +++ b/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql @@ -43,41 +43,47 @@ VALUES ('circulation','ODUE','Purring','Purring på dokument','<> <>', '

Discharge

\r\n\r\nThe library <> certifies that the following borrower :\r\n\r\n <> <>\r\n Cardnumber : <>\r\n\r\nreturned all his documents.', 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Utlån','Utlån', '

<>

-Utlånt til <> <> <> <>
-(<>)
- -<>
- -

Utlånt

- -

-<>
-Strekkode: <>
-Innleveringsfrist: <>
-

-
- -

Forfalte lån

- -

-<>
-Strekkode: <>
-Innleveringsfrist: <>
-

-
+VALUES ('circulation','ISSUESLIP','Utlån','Utlån', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
+ +[% today | $KohaDates %]
+ +

Checked Out

+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %] + +

Overdues

+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
-

Nyheter

+

News

<>

<>

-

Publisert <>

+

Posted on <>


-
', 1), + +', 1), ('circulation','ISSUEQSLIP','Utlån (enkel)','Utlån (enkel)', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/pl-PL/mandatory/sample_notices.sql b/installer/data/mysql/pl-PL/mandatory/sample_notices.sql index fdf0fb2..fa58e4e 100644 --- a/installer/data/mysql/pl-PL/mandatory/sample_notices.sql +++ b/installer/data/mysql/pl-PL/mandatory/sample_notices.sql @@ -21,29 +21,34 @@ VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <> <>', '

Discharge

\r\n\r\nThe library <> certifies that the following borrower :\r\n\r\n <> <>\r\n Cardnumber : <>\r\n\r\nreturned all his documents.', 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
+VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
-<>
+[% today | $KohaDates %]

Checked Out

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]

Overdues

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
@@ -55,7 +60,8 @@ Date due: <>

Posted on <>


-', 1), + +', 1), ('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/ru-RU/mandatory/sample_notices.sql b/installer/data/mysql/ru-RU/mandatory/sample_notices.sql index d42e2c9..ad52e18 100644 --- a/installer/data/mysql/ru-RU/mandatory/sample_notices.sql +++ b/installer/data/mysql/ru-RU/mandatory/sample_notices.sql @@ -20,29 +20,34 @@ VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <> <>', '

Discharge

\r\n\r\nThe library <> certifies that the following borrower :\r\n\r\n <> <>\r\n Cardnumber : <>\r\n\r\nreturned all his documents.', 'email'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
+VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
-<>
+[% today | $KohaDates %]

Checked Out

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]

Overdues

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
@@ -51,11 +56,11 @@ Date due: <>
<>

<>

-

Posted on <>

+

Posted on <>


-', 1), + +', 1), ('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
diff --git a/installer/data/mysql/uk-UA/mandatory/sample_notices.sql b/installer/data/mysql/uk-UA/mandatory/sample_notices.sql index 0ebd2ec..4c2d7a9 100644 --- a/installer/data/mysql/uk-UA/mandatory/sample_notices.sql +++ b/installer/data/mysql/uk-UA/mandatory/sample_notices.sql @@ -19,29 +19,34 @@ VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <> <>', '

Discharge

\r\n\r\nThe library <> certifies that the following borrower :\r\n\r\n <> <>\r\n Cardnumber : <>\r\n\r\nreturned all his documents.'); INSERT INTO `letter` (module, code, name, title, content, is_html) -VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '

<>

-Checked out to <> <> <> <>
-(<>)
+VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '[% USE KohaDates %] +

[% branch.branchname %]

+Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
+([% borrower.cardnumber %])
-<>
+[% today | $KohaDates %]

Checked Out

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF ! checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]

Overdues

- -

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

-
+[% FOREACH checkout IN borrower.checkouts %] + [% IF checkout.is_overdue %] +

+ [% checkout.item.biblio.title %]
+ Barcode: [% checkout.item.barcode %]
+ Date due: [% checkout.date_due | $KohaDates %]
+

+ [% END %] +[% END %]
@@ -50,11 +55,11 @@ Date due: <>
<>

<>

-

Posted on <>

+

Posted on <>


-', 1), + +', 1), ('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]

[% branch.branchname %]

Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %]
-- 1.7.10.4