From ce4ecbca63110b5f7854cf0e68e1e5ac1017ea11 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 20 Aug 2020 11:07:13 -0400 Subject: [PATCH] LP1892077 Staff catalog Holdings grid more columns Adds columns for Parts and Circulate As MARC Type. Additionally, adds columns for Notes, Tags, and Alerts which display the count of each linked to a given item. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- .../src/app/staff/catalog/record/holdings.component.html | 15 +++++++++++++++ .../src/app/staff/catalog/record/holdings.component.ts | 9 +++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) 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 86f35cb9e2..8ba41a8489 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 @@ -281,6 +281,21 @@ + + + + + + + + + + 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 ed31980213..3bde851412 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 @@ -506,8 +506,8 @@ export class HoldingsMaintenanceComponent implements OnInit { }, { flesh: 3, flesh_fields: { - acp: ['status', 'location', 'circ_lib', 'parts', - 'age_protect', 'copy_alerts', 'latest_inventory'], + acp: ['status', 'location', 'circ_lib', 'parts', 'notes', + 'tags', 'age_protect', 'copy_alerts', 'latest_inventory'], acn: ['prefix', 'suffix', 'copies'], acli: ['inventory_workstation'] } @@ -604,6 +604,11 @@ export class HoldingsMaintenanceComponent implements OnInit { copyNode.target = copy; const stat = Number(copy.status().id()); + copy._monograph_parts = ''; + if (copy.parts().length > 0) { + copy._monograph_parts = + copy.parts().map(p => p.label()).join(','); + } if (stat === 1 /* checked out */ || stat === 16 /* long overdue */) { // Avoid looking up circs on items that are not checked out. -- 2.11.0