From: Bill Erickson Date: Fri, 16 Apr 2021 15:06:29 +0000 (-0400) Subject: LP1904036 Grid persist keys; misc fixes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ffec613f0fa2e82cbbf30295c150ea95c38d06fb;p=Evergreen.git LP1904036 Grid persist keys; misc fixes Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts index af8ef2e5f7..68f2a9f9df 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts @@ -45,7 +45,7 @@ const CHECKIN_MODIFIERS = [ const SETTINGS = [ 'circ.checkin.strict_barcode' -] +]; @Component({ templateUrl: 'checkin.component.html', @@ -271,7 +271,7 @@ export class CheckinComponent implements OnInit, AfterViewInit { if (copyIds.length === 0) { return; } this.copyAlertsDialog.copyIds = copyIds; - this.copyAlertsDialog.mode = 'create' + this.copyAlertsDialog.mode = 'create'; this.copyAlertsDialog.open({size: 'lg'}).subscribe(); } diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/bill-statement.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/bill-statement.component.html index 9d92f3b557..f2fc980034 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/bill-statement.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/bill-statement.component.html @@ -142,6 +142,7 @@
@@ -153,6 +154,7 @@
diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html index 0087916528..9b4b07dd89 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html @@ -174,7 +174,8 @@
diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/group.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/group.component.html index 9c3678026c..93afb83ef2 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/group.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/group.component.html @@ -31,10 +31,8 @@ diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html index ecccbacf0d..bd3f24568d 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html @@ -22,7 +22,7 @@ - + @@ -27,7 +28,8 @@ - + @@ -45,7 +47,7 @@ - diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.ts index a97e5c34d1..41f43feab1 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.ts @@ -42,7 +42,6 @@ export class ItemsComponent implements OnInit, AfterViewInit { displayClaimsReturned: number = null; fetchCheckedIn = true; displayAltList = true; - persistKey: string; @ViewChild('checkoutsGrid') private checkoutsGrid: CircGridComponent; @ViewChild('otherGrid') private otherGrid: CircGridComponent; @@ -96,8 +95,6 @@ export class ItemsComponent implements OnInit, AfterViewInit { promise = this.loadNonCatGrid(); } - this.persistKey = `circ.patron.items.${name}`; - return promise.then(_ => this.loading = false); } diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html index 4ba910d087..508eba7888 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/messages.component.html @@ -9,7 +9,7 @@
+ hideFields="id,usr,stop_date" persistKey="circ.patron.staff_messages"> + hideFields="id,usr,stop_date" persistKey="circ.patron.archived_messages"> diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts index ae558ef137..da1706cc25 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts @@ -938,7 +938,7 @@ export class CircService { handleOverridableCheckinEvents(result: CheckinResult): Promise { const params = result.params; const events = result.allEvents; - const firstEvent = result.firstEvent + const firstEvent = result.firstEvent; if (params._override) { // Should never get here. Just being safe. diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alert-manager.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alert-manager.component.ts index f6a4740d68..528875336e 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alert-manager.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alert-manager.component.ts @@ -92,7 +92,7 @@ export class CopyAlertManagerDialogComponent nextStatuses.forEach(statId => { const wanted = statMap[statId]; if (wanted) { this.nextStatuses.push(wanted); } - }) + }); if (this.nextStatuses.length > 0) { this.nextStatus = this.nextStatuses[0].id(); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql index af05cdc58b..04ff243de4 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql @@ -4,22 +4,6 @@ BEGIN; -- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); /* -INSERT INTO config.workstation_setting_type (name, grp, datatype, label) -VALUES ( - 'eg.catalog.results.count', 'gui', 'integer', - oils_i18n_gettext( - 'eg.catalog.results.count', - 'Catalog Results Page Size', - 'cwst', 'label' - ) -); - -eg.circ.patron.holds.prefetch - -eg.grid.circ.patron.holds - -holds_for_patron print template - -- insert then update for easier iterative development tweaks INSERT INTO config.print_template @@ -444,8 +428,6 @@ INSERT INTO config.print_template (name, label, owner, active, locale, content_type, template) VALUES ('checkin', 'Checkin', 1, TRUE, 'en-US', 'text/html', ''); -*/ - UPDATE config.print_template SET template = $TEMPLATE$ [% USE date; @@ -482,6 +464,37 @@ UPDATE config.print_template SET template = $TEMPLATE$ $TEMPLATE$ WHERE name = 'checkin'; +INSERT INTO config.print_template + (name, label, owner, active, locale, content_type, template) +VALUES ('holds_for_patron', 'Holds For Patron', 1, TRUE, 'en-US', 'text/html', ''); + +*/ + +UPDATE config.print_template SET template = $TEMPLATE$ +[% + USE date; + USE money = format('$%.2f'); + SET holds = template_data; +%] + +
+
Welcome to [% staff_org.name %]
+
You have the following items on hold:
+
+
    + [% FOR hold IN holds %] +
  1. +
    [% hold.title %]
    +
  2. + [% END %] +
+
+
Slip Date: [% date.format(date.now, '%x %r') %]
+
Printed by [% staff.first_given_name %] at [% staff_org.shortname %]
+
+ +$TEMPLATE$ WHERE name = 'holds_for_patron'; + COMMIT;