Subject: [%- user_data.0.subject || 'Bibliographic Records' %]
Auto-Submitted: auto-generated
-[% FOR cbreb IN target;
+[%- FOR cbreb IN target;
flesh_list = '{mra';
IF user_data.0.type == 'full';
item_list = helpers.sort_bucket_unapi_bre(cbreb.items,{flesh => flesh_list, site => user_data.0.context_org, flesh_limit => flimit}, user_data.0.sort_by, user_data.0.sort_dir);
-FOR item IN item_list %]
+FOR item IN item_list -%]
[% loop.count %]/[% loop.size %]. Bib ID# [% item.id %]
[% IF item.isbn %]ISBN: [% item.isbn _ "\n" %][% END -%]
Item Type: [% item.item_type %]
[% IF user_data.0.type == 'full' && item.holdings.size == 0 %]
* No items for this record at the selected location
-[% END %]
+[%- END %]
[% FOR cp IN item.holdings -%]
* Library: [% cp.circ_lib %]
Location: [% cp.location %]
Status: [% cp.status_label %]
Barcode: [% cp.barcode %]
-[% END %]
-
-[% END %]
-[% END %]
+[% END -%]
+[%- END -%]
+[%- END -%]
$$
)
,(
Subject: [%- user_data.0.subject || 'Bibliographic Records' %]
Auto-Submitted: auto-generated
-[% FOR cbreb IN target;
+[%- FOR cbreb IN target;
flesh_list = '{mra';
IF user_data.0.type == 'full';
item_list = helpers.sort_bucket_unapi_bre(cbreb.items,{flesh => flesh_list, site => user_data.0.context_org, flesh_limit => flimit}, user_data.0.sort_by, user_data.0.sort_dir);
-FOR item IN item_list %]
+FOR item IN item_list -%]
[% loop.count %]/[% loop.size %]. Bib ID# [% item.id %]
[% IF item.isbn %]ISBN: [% item.isbn _ "\n" %][% END -%]
Item Type: [% item.item_type %]
[% IF user_data.0.type == 'full' && item.holdings.size == 0 %]
* No items for this record at the selected location
-[% END %]
+[%- END %]
[% FOR cp IN item.holdings -%]
* Library: [% cp.circ_lib %]
Location: [% cp.location %]
Status: [% cp.status_label %]
Barcode: [% cp.barcode %]
-[% END %]
-
-[% END %]
-[% END %]
+[% END -%]
+[%- END -%]
+[%- END -%]
$$ WHERE hook = 'biblio.format.record_entry.email';
UPDATE action_trigger.event_definition SET template = $$