From ed092491a043b66c2aed9c66d28c297dca8935be Mon Sep 17 00:00:00 2001
From: Aleisha Amohia Hi, [% borrower.firstname %] [% borrower.surname %] sent you a list from our online catalog called: [% listname %]. 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. <
+ [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
+ Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author | $raw %][% END %]
+
+ [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
+ [% IF ( BIBLIO_RESULT.author ) %]; [% END %]
+ [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
+ [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% MARCAUTHOR_SUBFIELDS_LOO.separator | $raw %][% MARCAUTHOR_SUBFIELDS_LOO.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 record = biblio.metadata.record %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% FOREACH field IN record.fields('7..') %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% UNLESS ( field.tag < 700 || field.tag > 720 ) %]
+ [% SET separator = Koha.Preference('AuthoritySeparator') %]
+ [% IF ( separator ) %][% separator | $raw %][% ELSE %] [% END %][% field.as_string | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% 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 %]
+ [% IF BIBLIO_RESULT.item('size') %]
+ , [% BIBLIO_RESULT.item('size') | html %]
+ [% END %]
+
+ [% END %]
+
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+
+ [% IF ( BIBLIO_RESULT.subject ) %]
+
+ Subject: [% BIBLIO_RESULT.subject | $raw %]
+
+ [% END %]
+
+ Subject:
+ [% IF ( Koha.Preference('marcflavour') eq 'UNIMARC' ) %]
+ [% SET maxtag = 611 %]
+ [% ELSE %]
+ [% SET maxtag = 699 %]
+ [% END %]
+ [% FOREACH field IN record.fields('6..') %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% UNLESS ( field.tag < 600 || field.tag >= maxtag ) %]
+ [% SET separator = Koha.Preference('AuthoritySeparator') %]
+ [% IF ( separator ) %][% separator | $raw %][% ELSE %] [% END %][% field.as_string | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+
+
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+
+ [% IF ( biblio.notes || biblioitem.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
[% biblioitem.notes | $raw %]
+
+ [% END %]
+
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+
+ [% IF ( record.field('082') ) %]
+
+ Dewey: [% record.field('082').as_string | $raw %]
+
+ [% END %]
+
+ [% IF ( biblioitem.cn_source ) %]
+
+ Classification: [% biblioitem.cn_source | $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.
+<
+ [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
+ Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author | $raw %][% END %]
+
+ [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
+ [% IF ( BIBLIO_RESULT.author ) %]; [% END %]
+ [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
+ [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
+ [% MARCAUTHOR_SUBFIELDS_LOO.separator | $raw %][% MARCAUTHOR_SUBFIELDS_LOO.value | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+ [% END %]
+
+ [% END %]
+
+ [% SET record = biblio.metadata.record %]
+ Author(s): [% IF ( biblio.author ) %][% biblio.author | $raw %][% END %]
+ [% FOREACH field IN record.fields('7..') %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% UNLESS ( field.tag < 700 || field.tag > 720 ) %]
+ [% SET separator = Koha.Preference('AuthoritySeparator') %]
+ [% IF ( separator ) %][% separator | $raw %][% ELSE %] [% END %][% field.as_string | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% 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 %]
+ [% IF BIBLIO_RESULT.item('size') %]
+ , [% BIBLIO_RESULT.item('size') | html %]
+ [% END %]
+
+ [% END %]
+
+ [% IF ( biblio.seriestitle ) %]
+
+ Collection: [% biblio.seriestitle | $raw %]
+
+ [% END %]
+
+ [% IF ( BIBLIO_RESULT.subject ) %]
+
+ Subject: [% BIBLIO_RESULT.subject | $raw %]
+
+ [% END %]
+
+ Subject:
+ [% IF ( Koha.Preference('marcflavour') eq 'UNIMARC' ) %]
+ [% SET maxtag = 611 %]
+ [% ELSE %]
+ [% SET maxtag = 699 %]
+ [% END %]
+ [% FOREACH field IN record.fields('6..') %]
+ [% IF ( biblio.author ) %]; [% END %]
+ [% UNLESS ( field.tag < 600 || field.tag >= maxtag ) %]
+ [% SET separator = Koha.Preference('AuthoritySeparator') %]
+ [% IF ( separator ) %][% separator | $raw %][% ELSE %] [% END %][% field.as_string | $raw %]
+ [% END %]
+ [% UNLESS ( loop.last ) %];[% END %]
+ [% END %]
+
+
+ [% IF ( biblio.copyrightdate ) %]
+
+ Copyright year: [% biblio.copyrightdate | $raw %]
+
+ [% END %]
+
+ [% IF ( biblio.notes || biblioitem.notes ) %]
+
+ Notes: [% biblio.notes | $raw %]
[% biblioitem.notes | $raw %]
+
+ [% END %]
+
+ [% IF ( biblio.unititle ) %]
+
+ Unified title: [% biblio.unititle | $raw %]
+
+ [% END %]
+
+ [% IF ( biblio.serial ) %]
+
+ Serial: [% biblio.serial | $raw %]
+
+ [% END %]
+
+ [% IF ( record.field('082') ) %]
+
+ Dewey: [% record.field('082').as_string | $raw %]
+
+ [% END %]
+
+ [% IF ( biblioitem.cn_source ) %]
+
+ Classification: [% biblioitem.cn_source | $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.size ) %] +Items: +