Bug 16486: Display the timestamp when an accountline is updated
[srvgit] / installer / data / mysql / nb-NO / 1-Obligatorisk / sample_notices.sql
1 --
2 -- Default sample notices for Koha.
3 --
4 -- Copyright (C) 2011 Magnus Enger Libriotech
5 --
6 -- This file is part of Koha.
7 --
8 -- Koha is free software; you can redistribute it and/or modify it
9 -- under the terms of the GNU General Public License as published by
10 -- the Free Software Foundation; either version 3 of the License, or
11 -- (at your option) any later version.
12 --
13 -- Koha is distributed in the hope that it will be useful, but
14 -- WITHOUT ANY WARRANTY; without even the implied warranty of
15 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 -- GNU General Public License for more details.
17 --
18 -- You should have received a copy of the GNU General Public License
19 -- along with Koha; if not, see <http://www.gnu.org/licenses>.
20
21
22 INSERT INTO letter (module, code, name, title, content, message_transport_type)
23 VALUES ('circulation','ODUE','Purring','Purring på dokument','<<borrowers.firstname>> <<borrowers.surname>>,\n\nDu har lån som skulle vært levert. Biblioteket krever ikke inn gebyrer, men vennligst lever eller forny lånet/lånene ved biblioteket.\n\n<<branches.branchname>>\n<<branches.branchaddress1>>\n<<branches.branchaddress2>> <<branches.branchaddress3>>\nTelefon: <<branches.branchphone>>\nFax: <<branches.branchfax>>\nE-post: <<branches.branchemail>>\n\nDersom du har et passord og lånet/lånene kan fornyes kan du gjøre dette på nettet. Dersom du overskrider lånetiden med mer enn 30 dager vil lånekortet bli sperret.\n\nFølgende lån har gått over tiden:\n\n<item>"<<biblio.title>>" av <<biblio.author>>, <<items.itemcallnumber>>, Strekkode: <<items.barcode>> Gebyr: <<items.fine>></item>\n\nPå forhånd takk.\n\n<<branches.branchname>>\n', 'email'),
24 ('claimacquisition','ACQCLAIM','Periodikapurring','Eksemplar ikke mottatt','<<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>Bestillingsnummer <<aqorders.ordernumber>> (<<aqorders.title>>) (<<aqorders.quantity>> ordered) ($<<aqorders.listprice>> each) har ikke blitt mottatt.</order>', 'email'),
25 ('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'),
26 ('serial','SERIAL_ALERT','Sirkulasjon','Et dokument er nå tilgjengelig','<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nDette dokumentet er tilgjengelig:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)\r\n\r\nVennligst kom og hent det når det passer.', 'email'),
27 ('members','ACCTDETAILS','Mal for kontodetaljer - STANDARD','Dine nye kontodetaljer i Koha.','Hei <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>.\r\n\r\nDine nye detaljer er:\r\n\r\nBruker:  <<borrowers.userid>>\r\nPassord: <<borrowers.password>>\r\n\r\nDersom det oppstår problemer, vennligst kontakt biblioteket.\r\n\r\nVennlig hilsen,\r\nBiblioteket\r\nkohaadmin@yoursite.org', 'email'),
28 ('circulation','DUE','Innleveringspåminnelse','Innleveringspåminnelse','<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nDette dokumentet må nå leveres:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)', 'email'),
29 ('circulation','DUEDGST','Innleveringspåminnelse (sammendrag)','Innleveringspåminnelse','Du har <<count>> dokumenter som skulle vært levert.', 'email'),
30 ('circulation','PREDUE','Forhåndspåminnelse','Forhåndspåminnelse','<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nDette dokumentet må snart leveres:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)', 'email'),
31 ('circulation','PREDUEDGST','Forhåndspåminnelse (sammendrag)','Forhåndspåminnelse','Du har lånt <<count>> dokumenter som snart må leveres.', 'email'),
32 ('circulation','RENEWAL','Fornying','Fornyinger','Følgende lån har blitt fornyet:\r\n----\r\n<<biblio.title>>\r\n----\r\n', 'email'),
33 ('reserves', 'HOLD', 'Hentemelding', 'Hentemelding fra <<branches.branchname>>', '<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nEt reservert dokument er klart til henting fra <<reserves.waitingdate>>:\r\n\r\nTittel: <<biblio.title>>\r\nForfatter: <<biblio.author>>\r\nEksemplar: <<items.copynumber>>\r\nHentested: <<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n<<branches.branchaddress3>>\r\n<<branches.branchcity>> <<branches.branchzip>>', 'email'),
34 ('reserves', 'HOLD', 'Hentemelding', 'Hentemelding', '<<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\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>>\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\nDu har et reservert dokument som kan hentes fra  <<reserves.waitingdate>>:\r\n\r\nTittel: <<biblio.title>>\r\nForfatter: <<biblio.author>>\r\nEksemplar: <<items.copynumber>>\r\n', 'print'),
35 ('circulation','CHECKIN','Innlevering','Melding om innlevering','Følgende dokument har blitt innlevert:\r\n----\r\n[% biblio.title %]\r\n----\r\nVennlig hilsen\r\nBiblioteket', 'email'),
36 ('circulation','CHECKOUT','Utlån','Melding om utlån','Følgende dokument har blitt lånt ut:\r\n----\r\n[% biblio.title %]\r\n----\r\nVennlig hilsen\r\nBiblioteket', 'email'),
37 ('reserves', 'HOLDPLACED', 'Melding om reservasjon', 'Melding om reservasjon','Følgende dokument har blitt reservert : <<biblio.title>> (<<biblio.biblionumber>>) av <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>).', 'email'),
38 ('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'),
39 ('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'),
40 ('suggestions','ACCEPTED','Forslag godtatt', 'Innkjøpsforslag godtatt','<<borrowers.firstname>> <<borrowers.surname>>,\n\nDu har foreslått at biblioteket kjøper inn <<suggestions.title>> av <<suggestions.author>>.\n\nBiblioteket har vurdert forslaget i dag. Dokumentet vil bli bestilt så fort det lar seg gjøre. Du vil få en ny melding når bestillingen er gjort, og når dokumentet ankommer biblioteket.\n\nEr det noe du lurer på, vennligst kontakt oss på <<branches.branchemail>>.\n\nVennlig hilsen,\n\n<<branches.branchname>>', 'email'),
41 ('suggestions','AVAILABLE','Foreslått dokument tilgjengelig', 'Foreslått dokument tilgjengelig','<<borrowers.firstname>> <<borrowers.surname>>,\n\nDu har foreslått at biblioteket kjøper inn <<suggestions.title>> av <<suggestions.author>>.\n\nVi har gleden av å informere deg om at dokumentet nå er innlemmet i samlingen.\n\nEr det noe du lurer på, vennligst kontakt oss på <<branches.branchemail>>.\n\nVennlig hilsen,\n\n<<branches.branchname>>', 'email'),
42 ('suggestions','ORDERED','Innkjøpsforslag i bestilling', 'Innkjøpsforslag i bestilling','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nDu har foreslått at biblioteket kjøper inn <<suggestions.title>> av <<suggestions.author>>.\n\nVi har gleden av å informere deg om at dokumentet du foreslo nå er i bestilling.\n\nDu vil få en ny melding når dokumentet er tilgjengelig.\n\nEr det noe du lurer på, vennligst kontakt oss på <<branches.branchemail>>.\n\nVennlig hilsen,\n\n<<branches.branchname>>', 'email'),
43 ('suggestions','REJECTED','Innkjøpsforslag avslått', 'Innkjøpsforslag avslått','<<borrowers.firstname>> <<borrowers.surname>>,\n\nDu har foreslått at biblioteket kjøper inn <<suggestions.title>> av <<suggestions.author>>.\n\nBiblioteket har vurdert innkjøpsforslaget ditt i dag, og bestemt seg for å ikke ta det til følge.\n\nBegrunnelse: <<suggestions.reason>>\n\nEr det noe du lurer på, vennligst kontakt oss på <<branches.branchemail>>.\n\nVennlig hilsen,\n\n<<branches.branchname>>', 'email'),
44 ('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'),
45 ('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'),
46 ('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'),
47 ('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');
48
49 INSERT INTO `letter` (module, code, name, title, content, is_html, message_transport_type)
50 VALUES ('suggestions','NEW_SUGGESTION','New suggestion','New suggestion','<h3>Suggestion pendin    g approval</h3>
51     <p><h4>Suggested by</h4>
52     <ul>
53     <li><<borrowers.firstname>> <<borrowers.surname>></li>
54     <li><<borrowers.cardnumber>></li>
55     <li><<borrowers.phone>></li>
56     <li><<borrowers.email>></li>
57     </ul>
58     </p>
59     <p><h4>Title suggested</h4>
60     <ul>
61     <li><b>Library:</b> <<branches.branchname>></li>
62     <li><b>Title:</b> <<suggestions.title>></li>
63     <li><b>Author:</b> <<suggestions.author>></li>
64     <li><b>Copyright date:</b> <<suggestions.copyrightdate>></li>
65     <li><b>Standard number (ISBN, ISSN or other):</b> <<suggestions.isbn>></li>
66     <li><b>Publisher:</b> <<suggestions.publishercode>></li>
67     <li><b>Collection title:</b> <<suggestions.collectiontitle>></li>
68     <li><b>Publication place:</b> <<suggestions.place>></li>
69     <li><b>Quantity:</b> <<suggestions.quantity>></li>
70     <li><b>Item type:</b>  <<suggestions.itemtype>></li>
71     <li><b>Reason for suggestion:</b> <<suggestions.patronreason>></li>
72     <li><b>Notes:</b> <<suggestions.note>></li>
73     </ul>
74     </p>',1, 'email'),
75     ('circulation','CHECKINSLIP','Checkin slip','Checkin slip',
76 "<h3>[% branch.branchname %]</h3>
77 Checked in items for [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
78 ([% borrower.cardnumber %]) <br />
79
80 [% today | $KohaDates %]<br />
81
82 <h4>Checked in today</h4>
83 [% FOREACH checkin IN old_checkouts %]
84 [% SET item = checkin.item %]
85 <p>
86 [% item.biblio.title %] <br />
87 Barcode: [% item.barcode %] <br />
88 </p>
89 [% END %]", 1, 'print');
90
91 INSERT INTO `letter` (module, code, name, title, content, is_html)
92 VALUES ('circulation','ISSUESLIP','Utlån','Utlån', '<h3><<branches.branchname>></h3>
93 Utlånt til <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
94 (<<borrowers.cardnumber>>) <br />
95
96 <<today>><br />
97
98 <h4>Utlånt</h4>
99 <checkedout>
100 <p>
101 <<biblio.title>> <br />
102 Strekkode: <<items.barcode>><br />
103 Innleveringsfrist: <<issues.date_due>><br />
104 </p>
105 </checkedout>
106
107 <h4>Forfalte lån</h4>
108 <overdue>
109 <p>
110 <<biblio.title>> <br />
111 Strekkode: <<items.barcode>><br />
112 Innleveringsfrist: <<issues.date_due>><br />
113 </p>
114 </overdue>
115
116 <hr>
117
118 <h4 style="text-align: center; font-style:italic;">Nyheter</h4>
119 <news>
120 <div class="newsitem">
121 <h5 style="margin-bottom: 1px; margin-top: 1px"><b><<opac_news.title>></b></h5>
122 <p style="margin-bottom: 1px; margin-top: 1px"><<opac_news.content>></p>
123 <p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px">Publisert <<opac_news.published_on>></p>
124 <hr />
125 </div>
126 </news>', 1),
127 ('circulation','ISSUEQSLIP','Utlån (enkel)','Utlån (enkel)', '<h3><<branches.branchname>></h3>
128 Utlånt til <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
129 (<<borrowers.cardnumber>>) <br />
130
131 <<today>><br />
132
133 <h4>Utlånt i dag</h4>
134 <checkedout>
135 <p>
136 <<biblio.title>> <br />
137 Strekkode: <<items.barcode>><br />
138 Innleveringsfrist: <<issues.date_due>><br />
139 </p>
140 </checkedout>', 1),
141 ('circulation','HOLD_SLIP','Reservasjon','Reservasjon', '<h5>Dato: <<today>></h5>
142
143 <h3> Overfør til/Reservasjon hos <<branches.branchname>></h3>
144
145 <h3><<borrowers.surname>>, <<borrowers.firstname>></h3>
146
147 <ul>
148     <li><<borrowers.cardnumber>></li>
149     <li><<borrowers.phone>></li>
150     <li> <<borrowers.address>><br />
151          <<borrowers.address2>><br />
152          <<borrowers.city >>  <<borrowers.zipcode>>
153     </li>
154     <li><<borrowers.email>></li>
155 </ul>
156 <br />
157 <h3>RESERVERT</h3>
158 <h4><<biblio.title>></h4>
159 <h5><<biblio.author>></h5>
160 <ul>
161    <li><<items.barcode>></li>
162    <li><<items.itemcallnumber>></li>
163    <li><<reserves.waitingdate>></li>
164 </ul>
165 <p>Kommentarer:
166 <pre><<reserves.reservenotes>></pre>
167 </p>
168 ', 1),
169 ('circulation','TRANSFERSLIP','Overføringslapp','Overføringslapp', '<h5>Dato: <<today>></h5>
170
171 <h3>Overføres til <<branches.branchname>></h3>
172
173 <h3>EKSEMPLAR</h3>
174 <h4><<biblio.title>></h4>
175 <h5><<biblio.author>></h5>
176 <ul>
177    <li><<items.barcode>></li>
178    <li><<items.itemcallnumber>></li>
179 </ul>', 1);
180
181 INSERT INTO `letter` (`module`,`code`,`branchcode`,`name`,`is_html`,`title`,`content`)
182 VALUES (
183 'members',  'OPAC_REG_VERIFY',  '',  'Verifikasjon av egenregistrering i publikumskatalogen',  '1',  'Verifiser registreringen din',  'Hei!
184
185 D har blitt registrert som bruker av biblioteket. Verifiser epostadressen din ved å klikke på lenka nedenfor:
186
187 <<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>>
188
189 Dersom du ikke har bedt om å bli registret som bruker av biblioteket kan du se bort fra denne engangsmeldingen. Forespørselen vil snart gå ut på dato.'
190 );
191
192 INSERT INTO  letter (module, code, branchcode, name, is_html, title, content)
193 VALUES ('members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <<listname>>', 'Dear patron,
194
195 One of our patrons, <<borrowers.firstname>> <<borrowers.surname>>, invites you to share a list <<listname>> in our library catalog.
196
197 To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar.
198
199 <<shareurl>>
200
201 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.
202
203 Thank you.
204
205 Your library.'
206 );
207 INSERT INTO  letter (module, code, branchcode, name, is_html, title, content)
208 VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <<listname>> accepted', 'Dear patron,
209
210 We want to inform you that <<borrowers.firstname>> <<borrowers.surname>> accepted your invitation to share your list <<listname>> in our library catalog.
211
212 Thank you.
213
214 Your library.'
215 );
216
217 INSERT INTO letter(module, code, branchcode, name, title, content, message_transport_type)
218 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'),
219 ('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');
220
221 INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type )
222 VALUES ( 'circulation', 'OVERDUES_SLIP', '', 'Overdues slip', '0', 'Overdues slip', 'The following item(s) is/are currently overdue:
223
224 <item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>
225 ', 'print' );
226
227 INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type)
228 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'
229 );
230
231 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
232 ('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'),
233 ('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'),
234 ('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'),
235 ('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'),
236 ('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'),
237 ('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');
238
239 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
240 ('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'),
241 ('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');
242
243 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
244 ('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %]
245 [% PROCESS \"accounts.inc\" %]
246 <table>
247 [% IF ( LibraryName ) %]
248  <tr>
249     <th colspan=\"5\" class=\"centerednames\">
250         <h3>[% LibraryName | html %]</h3>
251     </th>
252  </tr>
253 [% END %]
254  <tr>
255     <th colspan=\"5\" class=\"centerednames\">
256         <h2><u>Fee receipt</u></h2>
257     </th>
258  </tr>
259  <tr>
260     <th colspan=\"5\" class=\"centerednames\">
261         <h2>[% Branches.GetName( credit.patron.branchcode ) | html %]</h2>
262     </th>
263  </tr>
264  <tr>
265     <th colspan=\"5\">
266         Received with thanks from  [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />
267         Card number: [% credit.patron.cardnumber | html %]<br />
268     </th>
269  </tr>
270   <tr>
271     <th>Created</th>
272     <th>Updated</th>
273     <th>Description of charges</th>
274     <th>Note</th>
275     <th>Amount</th>
276  </tr>
277
278  <tr class=\"highlight\">
279     <td>[% credit.date | $KohaDates %]</td>
280     <td>[% credit.timestamp | $KohaDates with_hours = 1 %]</td>
281     <td>
282       [% PROCESS account_type_description account=credit %]
283       [%- IF credit.description %], [% credit.description | html %][% END %]
284     </td>
285     <td>[% credit.note | html %]</td>
286     <td class=\"credit\">[% credit.amount | $Price %]</td>
287  </tr>
288
289 [% IF ( tendered ) %]
290   <tr>
291     <td colspan=\"3\">Amount tendered: </td>
292     <td>[% tendered | $Price %]</td>
293   </tr>
294   <tr>
295     <td colspan=\"3\">Change given: </td>
296     <td>[% change | $Price %]</td>
297   </tr>
298 [% END %]
299
300 <tfoot>
301   <tr>
302     <td colspan=\"4\">Total outstanding dues as on date: </td>
303     [% IF ( credit.patron.account.balance >= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% credit.patron.account.balance | $Price %]</td>
304   </tr>
305 </tfoot>
306 </table>', 'print', 'default');
307
308 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
309 ('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %]
310 [% PROCESS \"accounts.inc\" %]
311 <table>
312   [% IF ( LibraryName ) %]
313     <tr>
314       <th colspan=\"6\" class=\"centerednames\">
315         <h3>[% LibraryName | html %]</h3>
316       </th>
317     </tr>
318   [% END %]
319
320   <tr>
321     <th colspan=\"6\" class=\"centerednames\">
322       <h2><u>INVOICE</u></h2>
323     </th>
324   </tr>
325   <tr>
326     <th colspan=\"6\" class=\"centerednames\">
327       <h2>[% Branches.GetName( debit.patron.branchcode ) | html %]</h2>
328     </th>
329   </tr>
330   <tr>
331     <th colspan=\"6\" >
332       Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />
333       Card number: [% debit.patron.cardnumber | html %]<br />
334     </th>
335   </tr>
336   <tr>
337     <th>Created</th>
338     <th>Updated</th>
339     <th>Description of charges</th>
340     <th>Note</th>
341     <th style=\"text-align:right;\">Amount</th>
342     <th style=\"text-align:right;\">Amount outstanding</th>
343   </tr>
344
345   <tr class=\"highlight\">
346     <td>[% debit.date | $KohaDates%]</td>
347     <td>[% debit.timestamp | $KohaDates with_hours = 1 %]</td>
348     <td>
349       [% PROCESS account_type_description account=debit %]
350       [%- IF debit.description %], [% debit.description | html %][% END %]
351     </td>
352     <td>[% debit.note | html %]</td>
353     <td class=\"debit\">[% debit.amount | $Price %]</td>
354     <td class=\"debit\">[% debit.amountoutstanding | $Price %]</td>
355   </tr>
356
357   <tfoot>
358     <tr>
359       <td colspan=\"5\">Total outstanding dues as on date: </td>
360       [% IF ( debit.patron.account.balance <= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% debit.patron.account.balance | $Price %]</td>
361     </tr>
362   </tfoot>
363 </table>', 'print', 'default');
364
365 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
366 ('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');
367 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
368 ('pos', 'RECEIPT', '', 'Point of sale receipt', 0, 'Receipt', '[% PROCESS "accounts.inc" %]
369 <table>
370 [% IF ( LibraryName ) %]
371  <tr>
372     <th colspan="2" class="centerednames">
373         <h3>[% LibraryName | html %]</h3>
374     </th>
375  </tr>
376 [% END %]
377  <tr>
378     <th colspan="2" class="centerednames">
379         <h2>[% Branches.GetName( payment.branchcode ) | html %]</h2>
380     </th>
381  </tr>
382 <tr>
383     <th colspan="2" class="centerednames">
384         <h3>[% payment.date | $KohaDates %]</h3>
385 </tr>
386 <tr>
387   <td>Transaction ID: </td>
388   <td>[% payment.accountlines_id %]</td>
389 </tr>
390 <tr>
391   <td>Operator ID: </td>
392   <td>[% payment.manager_id %]</td>
393 </tr>
394 <tr>
395   <td>Payment type: </td>
396   <td>[% payment.payment_type %]</td>
397 </tr>
398  <tr></tr>
399  <tr>
400     <th colspan="2" class="centerednames">
401         <h2><u>Fee receipt</u></h2>
402     </th>
403  </tr>
404  <tr></tr>
405  <tr>
406     <th>Description of charges</th>
407     <th>Amount</th>
408   </tr>
409
410   [% FOREACH offset IN offsets %]
411     <tr>
412         <td>[% PROCESS account_type_description account=offset.debit %]</td>
413         <td>[% offset.amount * -1 | $Price %]</td>
414     </tr>
415   [% END %]
416
417 <tfoot>
418   <tr class="highlight">
419     <td>Total: </td>
420     <td>[% payment.amount * -1| $Price %]</td>
421   </tr>
422   <tr>
423     <td>Tendered: </td>
424     <td>[% collected | $Price %]</td>
425   </tr>
426   <tr>
427     <td>Change: </td>
428     <td>[% change | $Price %]</td>
429     </tr>
430 </tfoot>
431 </table>', 'print', 'default');
432
433 INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS', 'Notification of automatic renewal', 'Automatic renewal notice',
434 "Dear [% borrower.firstname %] [% borrower.surname %],
435 [% IF checkout.auto_renew_error %]
436 The following item, [% biblio.title %], has not been renewed because:
437 [% IF checkout.auto_renew_error == 'too_many' %]
438 You have reached the maximum number of checkouts possible.
439 [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
440 This item is on hold for another patron.
441 [% ELSIF checkout.auto_renew_error == 'restriction' %]
442 You are currently restricted.
443 [% ELSIF checkout.auto_renew_error == 'overdue' %]
444 You have overdue items.
445 [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
446 It\'s too late to renew this item.
447 [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
448 Your total unpaid fines are too high.
449 [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
450 This item must be renewed at the library.
451 [% END %]
452 [% ELSE %]
453 The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]
454 [% END %]", 'email');
455
456 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');
457 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');
458 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');
459 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');
460 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');
461 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');
462 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');
463 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');
464 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');
465 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');
466
467 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport_type) VALUES ('circulation', 'AUTO_RENEWALS_DGST', 'Notification on auto renewals', 'Auto renewals (Digest)',
468 "Dear [% borrower.firstname %] [% borrower.surname %],
469 [% IF error %]
470     There were [% error %] items that were not renewed.
471 [% END %]
472 [% IF success %]
473     There were [% success %] items that were renewed.
474 [% END %]
475 [% FOREACH checkout IN checkouts %]
476     [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
477     [% IF !checkout.auto_renew_error %]
478         was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
479     [% ELSIF checkout.auto_renew_error == 'too_many' %]
480         You have reached the maximum number of checkouts possible.
481     [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
482         This item is on hold for another patron.
483     [% ELSIF checkout.auto_renew_error == 'restriction' %]
484         You are currently restricted.
485     [% ELSIF checkout.auto_renew_error == 'overdue' %]
486         You have overdue items.
487     [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
488         It's too late to renew this item.
489     [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
490         Your total unpaid fines are too high.
491     [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
492         This item must be renewed at the library.
493     [% END %]
494 [% END %]
495 ", 'email');