From: Bill Erickson Date: Mon, 15 Mar 2021 14:48:54 +0000 (-0400) Subject: LPXXX Holds pull list Angular port X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fb5be5124770b59eabcbbe7f7ef0dfe8f91a0e79;p=working%2FEvergreen.git LPXXX Holds pull list Angular port Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html b/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html index 048e8cd48f..6bec9bf224 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html @@ -4,6 +4,8 @@ diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 7215c628bc..e2d0ad7ba7 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -61,7 +61,7 @@ Capture Holds - + Pull List for Hold Requests diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html index 5d8c3beb6c..8bf7e7c65f 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html @@ -52,8 +52,12 @@ [multiSortable]="true" [persistKey]="persistKey" (onRowActivate)="showDetail($event)"> + + + diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts index a725629abb..ab355a3206 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts @@ -298,6 +298,7 @@ export class HoldsGridComponent implements OnInit { } else if (this.pullListOrg) { orderBy.push( {copy_location_order_position: {dir: 'asc', nulls: 'last'}}, + {acpl_name: {dir: 'asc', nulls: 'last'}}, {cn_label_sortkey: {dir: 'asc'}} ); } 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 new file mode 100644 index 0000000000..6b1c71c0d9 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.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/templates/staff/navbar.tt2 b/Open-ILS/src/templates/staff/navbar.tt2 index 5daf52d401..bb0409a524 100644 --- a/Open-ILS/src/templates/staff/navbar.tt2 +++ b/Open-ILS/src/templates/staff/navbar.tt2 @@ -110,7 +110,7 @@
  • - + [% l('Pull List for Hold Requests') %]