From 0212ebd2f0ee1178038222687dafeb30d31c9c1e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Mar 2019 09:14:30 -0700 Subject: [PATCH] lpxxx Angular holdings maintenance wip Signed-off-by: Bill Erickson --- .../src/app/share/combobox/combobox.component.ts | 2 +- .../staff/catalog/record/holdings.component.html | 9 +- .../app/staff/catalog/record/holdings.component.ts | 8 +- .../holdings/copy-alerts-dialog.component.html | 92 ++++++++++++++++++--- .../share/holdings/copy-alerts-dialog.component.ts | 95 ++++++++++++++++++++-- 5 files changed, 182 insertions(+), 24 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts index 323623c3a0..02c54c1c54 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts @@ -79,7 +79,7 @@ export class ComboboxComponent implements OnInit { // Useful for massaging the match string prior to comparison // and display. Default version trims leading/trailing spaces. - formatDisplayString: (ComboboxEntry) => string; + formatDisplayString: (e: ComboboxEntry) => string; constructor( private elm: ElementRef, diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.html index 808f24706d..b7cfc57c92 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.html @@ -96,9 +96,16 @@ + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts index c47d7a67fd..707944d1d8 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts @@ -192,7 +192,11 @@ export class HoldingsMaintenanceComponent implements OnInit { 'cat.holdings_show_vols' ]); - this.volsCheckbox.checked(settings['cat.holdings_show_vols']); + // Show volumes by default when no preference is set. + let showVols = settings['cat.holdings_show_vols']; + if (showVols === null) { showVols = true; } + + this.volsCheckbox.checked(showVols); this.copiesCheckbox.checked(settings['cat.holdings_show_copies']); this.emptyVolsCheckbox.checked(settings['cat.holdings_show_empty']); this.emptyLibsCheckbox.checked(settings['cat.holdings_show_empty_org']); @@ -733,7 +737,7 @@ export class HoldingsMaintenanceComponent implements OnInit { this.copyAlertsDialog.copyIds = copyIds; this.copyAlertsDialog.mode = mode; - this.copyAlertsDialog.open({}).then( + this.copyAlertsDialog.open({size: 'lg'}).then( modified => { if (modified) { this.hardRefresh(); diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.html index f76e9fd20c..837565262b 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.html @@ -1,28 +1,98 @@ + -