From: Chris Sharp Date: Fri, 24 Sep 2021 19:24:23 +0000 (-0400) Subject: LP1919465: stamp upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f685c2a69c95f505a1b3964f8e34a63459d819c8;p=Evergreen.git LP1919465: stamp upgrade script Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/sql/Pg/upgrade/1300.data.pull-list-print-template.sql b/Open-ILS/src/sql/Pg/upgrade/1300.data.pull-list-print-template.sql new file mode 100644 index 0000000000..6b1c71c0d9 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1300.data.pull-list-print-template.sql @@ -0,0 +1,77 @@ + +BEGIN; + +-- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); + +-- NOTE: If the template ID requires changing, beware it appears in +-- 3 places below. + +INSERT INTO config.print_template + (id, name, locale, active, owner, label, template) +VALUES ( + 4, 'hold_pull_list', 'en-US', TRUE, + (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL), + oils_i18n_gettext(4, 'Hold Pull List ', 'cpt', 'label'), + '' +); + +UPDATE config.print_template SET template = +$TEMPLATE$ +[%- + USE date; + SET holds = template_data; + # template_data is an arry of wide_hold hashes. +-%] +
+ + + + + + + + + + + + + + [% FOR hold IN holds %] + + + + + + + + + [% END %] + +
TypeTitleAuthorShelf LocationCall NumberBarcode/Part
[% hold.hold_type %][% hold.title %][% hold.author %][% hold.acpl_name %][% hold.cn_full_label %][% hold.cp_barcode %][% IF hold.p_label %]/[% hold.p_label %][% END %]
+
+$TEMPLATE$ WHERE id = 4; + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.circ.holds.pull_list', 'gui', 'object', + oils_i18n_gettext( + 'circ.holds.pull_list', + 'Hold Pull List Grid Settings', + 'cwst', 'label' + ) +), ( + 'circ.holds.pull_list.prefetch', 'gui', 'bool', + oils_i18n_gettext( + 'circ.holds.pull_list.prefetch', + 'Hold Pull List Prefetch Preference', + 'cwst', 'label' + ) +); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.pull-list-print-template.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.pull-list-print-template.sql deleted file mode 100644 index 6b1c71c0d9..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.pull-list-print-template.sql +++ /dev/null @@ -1,77 +0,0 @@ - -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); - --- NOTE: If the template ID requires changing, beware it appears in --- 3 places below. - -INSERT INTO config.print_template - (id, name, locale, active, owner, label, template) -VALUES ( - 4, 'hold_pull_list', 'en-US', TRUE, - (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL), - oils_i18n_gettext(4, 'Hold Pull List ', 'cpt', 'label'), - '' -); - -UPDATE config.print_template SET template = -$TEMPLATE$ -[%- - USE date; - SET holds = template_data; - # template_data is an arry of wide_hold hashes. --%] -
- - - - - - - - - - - - - - [% FOR hold IN holds %] - - - - - - - - - [% END %] - -
TypeTitleAuthorShelf LocationCall NumberBarcode/Part
[% hold.hold_type %][% hold.title %][% hold.author %][% hold.acpl_name %][% hold.cn_full_label %][% hold.cp_barcode %][% IF hold.p_label %]/[% hold.p_label %][% END %]
-
-$TEMPLATE$ WHERE id = 4; - -INSERT INTO config.workstation_setting_type (name, grp, datatype, label) -VALUES ( - 'eg.grid.circ.holds.pull_list', 'gui', 'object', - oils_i18n_gettext( - 'circ.holds.pull_list', - 'Hold Pull List Grid Settings', - 'cwst', 'label' - ) -), ( - 'circ.holds.pull_list.prefetch', 'gui', 'bool', - oils_i18n_gettext( - 'circ.holds.pull_list.prefetch', - 'Hold Pull List Prefetch Preference', - 'cwst', 'label' - ) -); - -COMMIT; -