NULL,
'00:00:00',
$$
-[% SET user = target.0.owner;
+[%- SET user = target.0.owner;
SET print_limit = 500; #this is to limit the no. of copies, set to 0 for unlimited
- SET tpac_host = ''; # tpac_host can be specfied directly %]
+ SET tpac_host = 'http://www.concat.ca'; # tpac_host can be specfied directly -%]
To: [%- params.recipient_email || user.email %]
From: [%- params.sender_email || default_sender %]
Subject: Bibliographic Records
[% FOR cbreb IN target %]
-[% FOR item IN cbreb.items;
+[%- FOR item IN cbreb.items;
bre_id = item.target_biblio_record_entry;
bibxml = helpers.unapi_bre(bre_id, {flesh => '{mra}'});
END;
END;
-%]
+-%]
[% loop.count %]/[% loop.size %]. Bib ID# [% bre_id %]
-[% IF tpac_host.length != 0 %]URL: [% tpac_host %]/eg/opac/record/[% bre_id _ "\n" %][% END %]
-[% IF isbn %]ISBN: [% isbn _ "\n" %][% END %]
-[% IF issn %]ISSN: [% issn _ "\n" %][% END %]
-[% IF upc %]UPC: [% upc _ "\n" %] [% END %]
+[%- IF tpac_host.length != 0 %]URL: [% tpac_host %]/eg/opac/record/[% bre_id _ "\n" %][% END %]
+[%- IF isbn %]ISBN: [% isbn %][% END %]
+[%- IF issn %]ISSN: [% issn %][% END %]
+[%- IF upc %]UPC: [% upc %] [% END %]
Title: [% title %]
Author: [% author %]
Publication Info: [% publisher %] [% pubdate %]
Item Type: [% item_type %]
-[% IF holdings.size > 0 %]
- [% IF holdings.size > print_limit AND print_limit > 0 %]
+[%- IF holdings.size > 0 %]
+ [%- IF holdings.size > print_limit AND print_limit > 0 %]
Showing [% print_limit %] of [% holdings.size %], use URL for full list of copies...
- [% END %]
- [% FOR holding IN holdings %]
- Location: [% holding.library %] - [% holding.location _ "\n" %]
- Call Number: [% holding.label _ "\n" %][% IF holding.part_label %][% holding.part_label _ "\n" %][% END %]
- Status: [% holding.status _ "\n" %]
- [% END %]
-[% END %]
-[% IF uris.size > 0 %]
- [% FOR uri IN uris %]
- URL: [% uri.href _ "\n" %]
- [% END %]
- [% IF uri.link.length > 0 %]
- Label: [% uri.link _ "\n" %]
- [% END %]
- [% IF uri.note.length > 0 %]
- Note: [% uri.note _ "\n" %]
+ [%- END %]
+ [%- FOR holding IN holdings %]
+ Location: [% holding.library %] - [% holding.location %]
+ Call Number: [% holding.label %][% IF holding.part_label %][% holding.part_label %][% END %]
+ Status: [% holding.status %]
[% END %]
[% END %]
-
-[% END %]
-[% END %]
+[%- IF uris.size > 0 %]
+ [%- FOR uri IN uris %]
+ URL: [% uri.href %]
+ [%- END %]
+ [%- IF uri.link.length > 0 %]
+ Label: [% uri.link %]
+ [%- END %]
+ [%- IF uri.note.length > 0 %]
+ Note: [% uri.note %]
+ [%- END %]
+[%- END %]
+[%- END %]
+[%- END %]
$$
)
,(