Lines 1-222
Link Here
|
1 |
$DBversion = 'XXX'; |
1 |
$DBversion = 'XXX'; |
2 |
if( CheckVersion( $DBversion ) ) { |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
$dbh->do(q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES |
3 |
$dbh->do(q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES |
4 |
('catalog','LIST','','Send list',1,'Your list: [% listname | html %]',"<p>Hi,</p> |
4 |
('catalog','LIST','','Send list',0,'Your list: [% listname | html %]',"Hi, |
5 |
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p> |
5 |
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]. |
6 |
<p>Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite.</p> |
6 |
Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite. |
7 |
<hr/> |
7 |
<hr/>[% comment | html %]<hr/> |
8 |
<p>[% comment | html %]</p> |
8 |
<ol>[% FOREACH biblio IN biblios %]<li> |
9 |
<hr/> |
9 |
[% biblio.title | html %] |
10 |
<ol> |
10 |
[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %] |
11 |
[% FOREACH biblio IN biblios %] |
11 |
[% biblio.part_number | html %] [% biblio.part_name | html %] |
12 |
<li> |
12 |
[% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %] |
13 |
<span> |
13 |
[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %] |
14 |
[% biblio.title | html %] |
14 |
[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %] |
15 |
[% IF ( biblio.subtitle ) %] |
15 |
[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %] |
16 |
[% FOREACH subtitle IN biblio.subtitle.split(' | ') %] |
16 |
[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %] |
17 |
[% subtitle | html %] |
17 |
[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %] |
18 |
[% END %] |
18 |
[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %] |
19 |
[% END %] |
19 |
[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %] |
20 |
[% biblio.part_number | html %] [% biblio.part_name | html %] |
20 |
[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %] |
21 |
</span> |
21 |
[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %] |
22 |
<p> |
22 |
[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %] |
23 |
[% IF ( biblio.author || biblio.get_authors_from_MARC ) %] |
23 |
[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %] |
24 |
<span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %] |
24 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
25 |
[% IF ( biblio.get_authors_from_MARC ) %] |
25 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
26 |
[% IF ( biblio.author ) %]; [% END %] |
26 |
[% item.barcode | html %]</li>[% END %]</ul>[% END %] |
27 |
[% FOREACH author IN biblio.get_authors_from_MARC %] |
27 |
<hr/></li>[% END %]</ol>", 'email','default' ), |
28 |
[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %] |
28 |
('catalog','CART','','Send cart',0,'Your cart',"Hi, |
29 |
[% subfield.separator | html %][% subfield.value | html %] |
29 |
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog. |
30 |
[% END %] |
30 |
Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite. |
31 |
[% UNLESS ( loop.last ) %];[% END %] |
31 |
<hr/>[% comment | html %]<hr/> |
32 |
[% END %] |
32 |
<ol>[% FOREACH biblio IN biblios %]<li> |
33 |
[% END %] |
33 |
[% biblio.title | html %] |
34 |
</span><br/> |
34 |
[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %] |
35 |
[% END %] |
35 |
[% biblio.part_number | html %] [% biblio.part_name | html %] |
36 |
[% SET biblioitem = biblio.biblioitem %] |
36 |
[% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %] |
37 |
[% IF ( biblioitem.isbn ) %] |
37 |
[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %] |
38 |
<span> |
38 |
[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %] |
39 |
ISBN: [% FOREACH isbn IN biblioitem.isbn %] |
39 |
[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %] |
40 |
[% isbn | html %] |
40 |
[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %] |
41 |
[% UNLESS ( loop.last ) %]; [% END %] |
41 |
[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %] |
42 |
[% END %] |
42 |
[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %] |
43 |
</span><br/> |
43 |
[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %] |
44 |
[% END %] |
44 |
[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %] |
45 |
[% IF ( biblioitem.publishercode ) %] |
45 |
[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %] |
46 |
<span> |
46 |
[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %] |
47 |
Published by: [% biblioitem.publishercode | html %] |
47 |
[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %] |
48 |
[% IF ( biblioitem.publicationyear ) %] |
48 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
49 |
in [% biblioitem.publicationyear | html %] |
49 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
50 |
[% END %] |
50 |
[% item.barcode | html %]</li>[% END %]</ul>[% END %] |
51 |
[% IF ( biblioitem.pages ) %] |
51 |
<hr/></li>[% END %]</ol>",'email','default') }); |
52 |
, [% biblioitem.pages | html %] |
|
|
53 |
[% END %] |
54 |
</span><br/> |
55 |
[% END %] |
56 |
[% IF ( biblio.seriestitle ) %] |
57 |
<span> |
58 |
Collection: [% biblio.seriestitle | html %] |
59 |
</span><br/> |
60 |
[% END %] |
61 |
[% IF ( biblio.copyrightdate ) %] |
62 |
<span> |
63 |
Copyright year: [% biblio.copyrightdate | html %] |
64 |
</span><br/> |
65 |
[% END %] |
66 |
[% IF ( biblio.notes ) %] |
67 |
<span> |
68 |
Notes: [% biblio.notes | html %] |
69 |
</span><br/> |
70 |
[% END %] |
71 |
[% IF ( biblio.unititle ) %] |
72 |
<span> |
73 |
Unified title: [% biblio.unititle | html %] |
74 |
</span><br/> |
75 |
[% END %] |
76 |
[% IF ( biblio.serial ) %] |
77 |
<span> |
78 |
Serial: [% biblio.serial | html %] |
79 |
</span><br/> |
80 |
[% END %] |
81 |
[% IF ( biblioitem.lccn ) %] |
82 |
<span> |
83 |
LCCN: [% biblioitem.lccn | html %] |
84 |
</span><br/> |
85 |
[% END %] |
86 |
[% IF ( biblioitem.url ) %] |
87 |
<span> |
88 |
URL: [% biblioitem.url | html %] |
89 |
</span> |
90 |
[% END %] |
91 |
</p> |
92 |
[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %] |
93 |
[% IF ( OPACBaseURL ) %] |
94 |
<p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p> |
95 |
[% END %] |
96 |
[% IF ( biblio.items.count > 0 ) %] |
97 |
<p>Items: |
98 |
<ul> |
99 |
[% FOREACH item IN biblio.items %]<li> |
100 |
[% Branches.GetName( item.holdingbranch ) | html %] |
101 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
102 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
103 |
[% item.barcode | html %] |
104 |
</li>[% END %] |
105 |
</ul> |
106 |
</p> |
107 |
[% END %] |
108 |
<hr/> |
109 |
</li> |
110 |
[% END %] |
111 |
</ol>", 'email','default' ), |
112 |
('catalog','CART','','Send cart',1,'Your cart',"<p>Hi,</p> |
113 |
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p> |
114 |
<p>Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite.</p> |
115 |
<hr/> |
116 |
<p>[% comment | html %]</p> |
117 |
<hr/> |
118 |
<ol> |
119 |
[% FOREACH biblio IN biblios %] |
120 |
<li> |
121 |
<span> |
122 |
[% biblio.title | html %] |
123 |
[% IF ( biblio.subtitle ) %] |
124 |
[% FOREACH subtitle IN biblio.subtitle.split(' | ') %] |
125 |
[% subtitle | html %] |
126 |
[% END %] |
127 |
[% END %] |
128 |
[% biblio.part_number | html %] [% biblio.part_name | html %] |
129 |
</span> |
130 |
<p> |
131 |
[% IF ( biblio.author || biblio.get_authors_from_MARC ) %] |
132 |
<span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %] |
133 |
[% IF ( biblio.get_authors_from_MARC ) %] |
134 |
[% IF ( biblio.author ) %]; [% END %] |
135 |
[% FOREACH author IN biblio.get_authors_from_MARC %] |
136 |
[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %] |
137 |
[% subfield.separator | html %][% subfield.value | html %] |
138 |
[% END %] |
139 |
[% UNLESS ( loop.last ) %];[% END %] |
140 |
[% END %] |
141 |
[% END %] |
142 |
</span><br/> |
143 |
[% END %] |
144 |
[% SET biblioitem = biblio.biblioitem %] |
145 |
[% IF ( biblioitem.isbn ) %] |
146 |
<span> |
147 |
ISBN: [% FOREACH isbn IN biblioitem.isbn %] |
148 |
[% isbn | html %] |
149 |
[% UNLESS ( loop.last ) %]; [% END %] |
150 |
[% END %] |
151 |
</span><br/> |
152 |
[% END %] |
153 |
[% IF ( biblioitem.publishercode ) %] |
154 |
<span> |
155 |
Published by: [% biblioitem.publishercode | html %] |
156 |
[% IF ( biblioitem.publicationyear ) %] |
157 |
in [% biblioitem.publicationyear | html %] |
158 |
[% END %] |
159 |
[% IF ( biblioitem.pages ) %] |
160 |
, [% biblioitem.pages | html %] |
161 |
[% END %] |
162 |
</span><br/> |
163 |
[% END %] |
164 |
[% IF ( biblio.seriestitle ) %] |
165 |
<span> |
166 |
Collection: [% biblio.seriestitle | html %] |
167 |
</span><br/> |
168 |
[% END %] |
169 |
[% IF ( biblio.copyrightdate ) %] |
170 |
<span> |
171 |
Copyright year: [% biblio.copyrightdate | html %] |
172 |
</span><br/> |
173 |
[% END %] |
174 |
[% IF ( biblio.notes ) %] |
175 |
<span> |
176 |
Notes: [% biblio.notes | html %] |
177 |
</span><br/> |
178 |
[% END %] |
179 |
[% IF ( biblio.unititle ) %] |
180 |
<span> |
181 |
Unified title: [% biblio.unititle | html %] |
182 |
</span><br/> |
183 |
[% END %] |
184 |
[% IF ( biblio.serial ) %] |
185 |
<span> |
186 |
Serial: [% biblio.serial | html %] |
187 |
</span><br/> |
188 |
[% END %] |
189 |
[% IF ( biblioitem.lccn ) %] |
190 |
<span> |
191 |
LCCN: [% biblioitem.lccn | html %] |
192 |
</span><br/> |
193 |
[% END %] |
194 |
[% IF ( biblioitem.url ) %] |
195 |
<span> |
196 |
URL: [% biblioitem.url | html %] |
197 |
</span> |
198 |
[% END %] |
199 |
</p> |
200 |
[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %] |
201 |
[% IF ( OPACBaseURL ) %] |
202 |
<p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p> |
203 |
[% END %] |
204 |
[% IF ( biblio.items.count > 0 ) %] |
205 |
<p>Items: |
206 |
<ul> |
207 |
[% FOREACH item IN biblio.items %]<li> |
208 |
[% Branches.GetName( item.holdingbranch ) | html %] |
209 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
210 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
211 |
[% item.barcode | html %] |
212 |
</li>[% END %] |
213 |
</ul> |
214 |
</p> |
215 |
[% END %] |
216 |
<hr/> |
217 |
</li> |
218 |
[% END %] |
219 |
</ol>",'email','default') }); |
220 |
|
52 |
|
221 |
NewVersion( $DBversion, 3150, 'Add LIST and CART notices' ); |
53 |
NewVersion( $DBversion, 3150, 'Add LIST and CART notices' ); |
222 |
} |
54 |
} |