Lines 8-61
return {
Link Here
|
8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
9 |
|
9 |
|
10 |
$dbh->do(q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES |
10 |
$dbh->do(q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES |
11 |
('catalogue','LIST','','Send list',1,'Your list: [% listname | html %]',"Hi, |
11 |
('catalogue','LIST','','Send list',1,'Your list: [% listname | html %]',"[%- USE Branches -%] |
12 |
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]. |
12 |
[%- USE AuthorisedValues -%] |
13 |
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. |
13 |
[%- USE Koha -%] |
14 |
<hr/>[% comment | html %]<hr/> |
14 |
Hi,<br><br> |
15 |
<ol>[% FOREACH biblio IN biblios %]<li> |
15 |
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].<br> |
16 |
[% biblio.title | html %] |
16 |
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.<br> |
17 |
[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %] |
17 |
[% IF ( comment ) %]<hr><br>[% comment | html | html_line_break %]<br><br>[% END %]<hr> |
18 |
[% biblio.part_number | html %] [% biblio.part_name | html %] |
18 |
<ol>[% FOREACH biblio IN biblios %]<li> |
19 |
[% IF ( biblio.author || biblio.get_marc_contributors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_contributors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_contributors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %] |
19 |
[% biblio.title | html %] |
20 |
[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %] |
20 |
[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %] |
21 |
[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %] |
21 |
[% biblio.part_number | html %] [% biblio.part_name | html %]<br> |
22 |
[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %] |
22 |
[% IF ( biblio.author || biblio.get_marc_contributors.size ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_contributors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_contributors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %]<br>[% END %] |
23 |
[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %] |
23 |
[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %]<br>[% END %] |
24 |
[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %] |
24 |
[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %]<br>[% END %] |
25 |
[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %] |
25 |
[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %]<br>[% END %] |
26 |
[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %] |
26 |
[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %]<br>[% END %] |
27 |
[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %] |
27 |
[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %]<br>[% END %] |
28 |
[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %] |
28 |
[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %]<br>[% END %] |
29 |
[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %] |
29 |
[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %]<br>[% END %] |
30 |
[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %] |
30 |
[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %]<br>[% END %] |
31 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
31 |
[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %]<br>[% END %] |
32 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
32 |
<a href='[% Koha.Preference('OpacBaseUrl') %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]'>View in online catalog</a> |
33 |
[% item.barcode | html %]</li>[% END %]</ul>[% END %] |
33 |
[% IF ( biblio.items.count > 0 ) %]<br>Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %] |
34 |
<hr/></li>[% END %]</ol>", 'email','default' ), |
34 |
[% IF ( item.location ) %], [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %][% END %] |
35 |
('catalogue','CART','','Send cart',1,'Your cart',"Hi, |
35 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
36 |
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog. |
36 |
[% item.barcode | html %]</li>[% END %]</ul>[% END %] |
37 |
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. |
37 |
<hr></li>[% END %]</ol>", 'email','default' ), |
38 |
<hr/>[% comment | html %]<hr/> |
38 |
('catalogue','CART','','Send cart',1,'Your cart',"[%- USE Branches -%] |
39 |
<ol>[% FOREACH biblio IN biblios %]<li> |
39 |
[%- USE AuthorisedValues -%] |
40 |
[% biblio.title | html %] |
40 |
[%- USE Koha -%] |
41 |
[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %] |
41 |
Hi,<br><br> |
42 |
[% biblio.part_number | html %] [% biblio.part_name | html %] |
42 |
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.<br> |
43 |
[% IF ( biblio.author || biblio.get_marc_contributors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_contributors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_contributors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %] |
43 |
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.<br> |
44 |
[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %] |
44 |
[% IF ( comment ) %]<hr><br>[% comment | html | html_line_break %]<br><br>[% END %]<hr> |
45 |
[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %] |
45 |
<ol>[% FOREACH biblio IN biblios %]<li> |
46 |
[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %] |
46 |
[% biblio.title | html %] |
47 |
[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %] |
47 |
[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %] |
48 |
[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %] |
48 |
[% biblio.part_number | html %] [% biblio.part_name | html %]<br> |
49 |
[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %] |
49 |
[% IF ( biblio.author || biblio.get_marc_contributors.size ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_contributors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_contributors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %]<br>[% END %] |
50 |
[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %] |
50 |
[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %]<br>[% END %] |
51 |
[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %] |
51 |
[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %]<br>[% END %] |
52 |
[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %] |
52 |
[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %]<br>[% END %] |
53 |
[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %] |
53 |
[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %]<br>[% END %] |
54 |
[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %] |
54 |
[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %]<br>[% END %] |
55 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
55 |
[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %]<br>[% END %] |
56 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
56 |
[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %]<br>[% END %] |
57 |
[% item.barcode | html %]</li>[% END %]</ul>[% END %] |
57 |
[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %]<br>[% END %] |
58 |
<hr/></li>[% END %]</ol>",'email','default') }); |
58 |
[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %]<br>[% END %] |
|
|
59 |
<a href='[% Koha.Preference('OpacBaseUrl') %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]'>View in online catalog</a> |
60 |
[% IF ( biblio.items.count > 0 ) %]<br>Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %] |
61 |
[% IF ( item.location ) %], [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %][% END %] |
62 |
[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %] |
63 |
[% item.barcode | html %]</li>[% END %]</ul>[% END %] |
64 |
<hr></li>[% END %]</ol>",'email','default') }); |
59 |
|
65 |
|
60 |
say $out "Add LIST and CART notices"; |
66 |
say $out "Add LIST and CART notices"; |
61 |
}, |
67 |
}, |