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