@@ -, +, @@
notices
---
basket/sendbasket.pl | 135 ++++--------
.../bug_3150_-_add_LIST_and_CART_notices.perl | 224 +++++++++++++++++++
.../data/mysql/en/mandatory/sample_notices.yml | 238 +++++++++++++++++++++
.../mysql/fr-CA/obligatoire/sample_notices.sql | 219 +++++++++++++++++++
.../mysql/fr-FR/1-Obligatoire/sample_notices.sql | 219 +++++++++++++++++++
.../mysql/nb-NO/1-Obligatorisk/sample_notices.sql | 219 +++++++++++++++++++
opac/opac-sendbasket.pl | 153 ++++---------
opac/opac-sendshelf.pl | 135 ++++--------
virtualshelves/sendshelf.pl | 124 ++++-------
9 files changed, 1299 insertions(+), 367 deletions(-)
create mode 100644 installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.perl
--- a/basket/sendbasket.pl
+++ a/basket/sendbasket.pl
@@ -56,112 +56,65 @@ if ( $email_add ) {
session_id => scalar $query->cookie('CGISESSID'),
token => scalar $query->param('csrf_token'),
});
- my $comment = $query->param('comment');
- # Since we are already logged in, no need to check credentials again
- # when loading a second template.
- my $template2 = C4::Templates::gettemplate(
- 'basket/sendbasket.tt', 'intranet', $query,
- );
+ my $patron = Koha::Patrons->find( $borrowernumber );
+
+ my $comment = $query->param('comment');
my @bibs = split( /\//, $bib_list );
- my @results;
my $iso2709;
- my $marcflavour = C4::Context->preference('marcflavour');
- foreach my $biblionumber (@bibs) {
- $template2->param( biblionumber => $biblionumber );
-
- my $dat = GetBiblioData($biblionumber);
- next unless $dat;
- my $biblio = Koha::Biblios->find( $biblionumber );
- my $record = GetMarcBiblio({
- biblionumber => $biblionumber,
- embed_items => 1 });
- my $marcauthorsarray = $biblio->get_marc_authors;
- my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
-
- my @items = GetItemsInfo( $biblionumber );
-
- my $hasauthors = 0;
- if($dat->{'author'} || @$marcauthorsarray) {
- $hasauthors = 1;
- }
-
-
- $dat->{MARCSUBJCTS} = $marcsubjctsarray;
- $dat->{MARCAUTHORS} = $marcauthorsarray;
- $dat->{HASAUTHORS} = $hasauthors;
- $dat->{'biblionumber'} = $biblionumber;
- $dat->{ITEM_RESULTS} = \@items;
-
- $iso2709 .= $record->as_usmarc();
-
- push( @results, $dat );
- }
-
- my $resultsarray = \@results;
- $template2->param(
- BIBLIO_RESULTS => $resultsarray,
- comment => $comment
- );
-
- # Getting template result
- my $template_res = $template2->output();
- my $body;
-
- my $subject;
- # Analysing information and getting mail properties
- if ( $template_res =~ / Hi, [% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a list from our online catalog called: [% listname | $raw %]. 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. [% comment | $raw %]
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+ In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %] Items:
+
+
+
+[% FOREACH biblio IN biblios %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
+ [% FOREACH item IN biblio.items %]
+
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a cart from our online catalog.
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +
Hi,
" + - "[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a list from our online catalog called: [% listname | $raw %].
" + - "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.
" + - "[% comment | $raw %]
" + - ""
+ - "[% IF ( biblio.author || biblio.get_authors_from_MARC ) %]"
+ - "Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]"
+ - "[% IF ( biblio.get_authors_from_MARC ) %]"
+ - "[% IF ( biblio.author ) %]; [% END %]"
+ - "[% FOREACH author IN biblio.get_authors_from_MARC %]"
+ - "[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]"
+ - "[% subfield.separator | $raw %][% subfield.value | $raw %]"
+ - "[% END %]"
+ - "[% UNLESS ( loop.last ) %];[% END %]"
+ - "[% END %]"
+ - "[% END %]"
+ - "
"
+ - "[% END %]"
+ - "[% SET biblioitem = biblio.biblioitem %]"
+ - "[% IF ( biblioitem.isbn ) %]"
+ - ""
+ - "ISBN: [% FOREACH isbn IN biblioitem.isbn %]"
+ - "[% isbn | $raw %]"
+ - "[% UNLESS ( loop.last ) %]; [% END %]"
+ - "[% END %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblioitem.publishercode ) %]"
+ - ""
+ - "Published by: [% biblioitem.publishercode | $raw %]"
+ - "[% IF ( biblioitem.publicationyear ) %]"
+ - "in [% biblioitem.publicationyear | $raw %]"
+ - "[% END %]"
+ - "[% IF ( biblioitem.pages ) %]"
+ - ", [% biblioitem.pages | $raw %]"
+ - "[% END %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.seriestitle ) %]"
+ - ""
+ - "Collection: [% biblio.seriestitle | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.copyrightdate ) %]"
+ - ""
+ - "Copyright year: [% biblio.copyrightdate | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.notes ) %]"
+ - ""
+ - "Notes: [% biblio.notes | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.unititle ) %]"
+ - ""
+ - "Unified title: [% biblio.unititle | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.serial ) %]"
+ - ""
+ - "Serial: [% biblio.serial | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblioitem.lccn ) %]"
+ - ""
+ - "LCCN: [% biblioitem.lccn | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblioitem.url ) %]"
+ - ""
+ - "URL: [% biblioitem.url | html %]"
+ - ""
+ - "[% END %]"
+ - "
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
" + - "[% END %]" + - "[% IF ( biblio.items.count > 0 ) %]" + - "Items:" + - "
Hi,
" + - "[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a cart from our online catalog.
" + - "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.
" + - "[% comment | $raw %]
" + - ""
+ - "[% IF ( biblio.author || biblio.get_authors_from_MARC ) %]"
+ - "Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]"
+ - "[% IF ( biblio.get_authors_from_MARC ) %]"
+ - "[% IF ( biblio.author ) %]; [% END %]"
+ - "[% FOREACH author IN biblio.get_authors_from_MARC %]"
+ - "[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]"
+ - "[% subfield.separator | $raw %][% subfield.value | $raw %]"
+ - "[% END %]"
+ - "[% UNLESS ( loop.last ) %];[% END %]"
+ - "[% END %]"
+ - "[% END %]"
+ - "
"
+ - "[% END %]"
+ - "[% SET biblioitem = biblio.biblioitem %]"
+ - "[% IF ( biblioitem.isbn ) %]"
+ - ""
+ - "ISBN: [% FOREACH isbn IN biblioitem.isbn %]"
+ - "[% isbn | $raw %]"
+ - "[% UNLESS ( loop.last ) %]; [% END %]"
+ - "[% END %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblioitem.publishercode ) %]"
+ - ""
+ - "Published by: [% biblioitem.publishercode | $raw %]"
+ - "[% IF ( biblioitem.publicationyear ) %]"
+ - "in [% biblioitem.publicationyear | $raw %]"
+ - "[% END %]"
+ - "[% IF ( biblioitem.pages ) %]"
+ - ", [% biblioitem.pages | $raw %]"
+ - "[% END %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.seriestitle ) %]"
+ - ""
+ - "Collection: [% biblio.seriestitle | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.copyrightdate ) %]"
+ - ""
+ - "Copyright year: [% biblio.copyrightdate | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.notes ) %]"
+ - ""
+ - "Notes: [% biblio.notes | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.unititle ) %]"
+ - ""
+ - "Unified title: [% biblio.unititle | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblio.serial ) %]"
+ - ""
+ - "Serial: [% biblio.serial | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblioitem.lccn ) %]"
+ - ""
+ - "LCCN: [% biblioitem.lccn | $raw %]"
+ - "
"
+ - "[% END %]"
+ - "[% IF ( biblioitem.url ) %]"
+ - ""
+ - "URL: [% biblioitem.url | html %]"
+ - ""
+ - "[% END %]"
+ - "
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
" + - "[% END %]" + - "[% IF ( biblio.items.count > 0 ) %]" + - "Items:" + - "
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a list from our online catalog called: [% listname | $raw %].
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a cart from our online catalog.
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a list from our online catalog called: [% listname | $raw %].
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a cart from our online catalog.
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a list from our online catalog called: [% listname | $raw %].
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +
Hi,
+[% borrower.firstname | $raw %] [% borrower.surname | $raw %] sent you a cart from our online catalog.
+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.
+[% comment | $raw %]
+
+ [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% IF ( biblio.get_authors_from_MARC ) %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% FOREACH author IN biblio.get_authors_from_MARC %]
+ [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% subfield.separator | $raw %][% subfield.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+ [% SET biblioitem = biblio.biblioitem %]
+ [% IF ( biblioitem.isbn ) %]
+
+ ISBN: [% FOREACH isbn IN biblioitem.isbn %]
+ [% isbn | $raw %]
+ [% UNLESS ( loop.last ) %]; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblioitem.publishercode ) %]
+
+ Published by: [% biblioitem.publishercode | $raw %]
+ [% IF ( biblioitem.publicationyear ) %]
+ in [% biblioitem.publicationyear | $raw %]
+ [% END %]
+ [% IF ( biblioitem.pages ) %]
+ , [% biblioitem.pages | $raw %]
+ [% END %]
+
+ [% END %]
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+ [% IF ( biblio.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
+
+ [% END %]
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.lccn ) %]
+
+ LCCN: [% biblioitem.lccn | $raw %]
+
+ [% END %]
+ [% IF ( biblioitem.url ) %]
+
+ URL: [% biblioitem.url | html %]
+
+ [% END %]
+
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]
+ [% END %] + [% IF ( biblio.items.count > 0 ) %] +Items: +