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