2 -- check whether patch can be applied
3 SELECT evergreen.upgrade_deps_block_check('0737', :eg_version);
5 UPDATE action_trigger.event_definition
9 # target is the bookbag itself. The 'items' variable does not need to be in
10 # the environment because a special reactor will take care of filling it in.
13 bibxml = helpers.unapi_bre(item.target_biblio_record_entry, {flesh => '{mra}'});
15 FOR part IN bibxml.findnodes('//*[@tag="245"]/*[@code="a" or @code="b"]');
16 title = title _ part.textContent;
18 author = bibxml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent;
19 item_type = bibxml.findnodes('//*[local-name()="attributes"]/*[local-name()="field"][@name="item_type"]').getAttribute('coded-value');
21 FOR pdatum IN bibxml.findnodes('//*[@tag="260"]/*[@code="c"]');
23 pub_date = pub_date _ ", " _ pdatum.textContent;
25 pub_date = pdatum.textContent;
28 helpers.csv_datum(title) %],[% helpers.csv_datum(author) %],[% helpers.csv_datum(pub_date) %],[% helpers.csv_datum(item_type) %],[% FOR note IN item.notes; helpers.csv_datum(note.note); ","; END; "\n";
31 WHERE name = 'Bookbag CSV';