From faac38be1cbfad79cd4062cd567aa78959057578 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 17 Jun 2020 15:21:49 -0400 Subject: [PATCH] LPXXX Angular Volcopy Signed-off-by: Bill Erickson --- .../staff/cat/volcopy/copy-attrs.component.html | 137 +++++++++++++++++++-- .../app/staff/cat/volcopy/copy-attrs.component.ts | 14 ++- .../share/holdings/batch-item-attr.component.html | 13 +- 3 files changed, 148 insertions(+), 16 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.html b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.html index 483a99e455..9b0bc012f8 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.html @@ -4,21 +4,12 @@
- - -
-

Identification

-

Location

-

Circulation

-

Miscellaneous

-

Statistics

-
-
+

Identification

+

Location

@@ -131,6 +123,7 @@
+

Circulation

@@ -289,10 +282,134 @@
+ +

Miscellaneous

+ +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + + +
+
+

Statistics

diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts index 6053e7b72b..ccfe284ff1 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts @@ -47,6 +47,10 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit { @ViewChild('fineLevelHigh', {static: false}) fineLevelHigh: StringComponent; + @ViewChild('mintConditionYes', {static: false}) + mintConditionYes: StringComponent; + @ViewChild('mintConditionNo', {static: false}) + mintConditionNo: StringComponent; constructor( private router: Router, @@ -107,8 +111,6 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit { this.circModifiers = this.circModifiers.sort( (a, b) => a.name() < b.name() ? -1 : 1); - console.log('MODS', this.circModifiers); - }).then(_ => { return this.pcrud.retrieveAll('citm') @@ -155,7 +157,8 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit { return this.volcopy.copyStatuses[value].name(); case 'location': - return value.name(); + return value.name() + + ' (' + this.org.get(value.owning_lib()).shortname() + ')'; case 'edit_date': case 'create_date': @@ -195,6 +198,11 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit { const mod = this.circModifiers.filter( m => m.code() === value)[0]; return mod ? mod.name() : ''; + + case 'mint_condition': + if (!this.mintConditionYes) { return ''; } + return value === 't' ? + this.mintConditionYes.text : this.mintConditionNo.text; } return value; diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html b/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html index 3927094296..8597d91332 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html @@ -1,6 +1,8 @@
-
{{label}}
+
+ {{label}} * +
No - {{count.key | currency}} + + <Unset> + + {{count.key | currency}} - + <Unset> {{count.key}} -- 2.11.0