From 516d88f97681c009cba3e37c10f731bc5bf80f1d Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 3 Oct 2022 00:12:02 -0400 Subject: [PATCH] lp1959010 toward Staff View tab * make our Staff View tab with the new BibStaffView widget * seed our BibStaffView with BibSummary * first attempt at changing some identifiers with our seed code * experimenting with layout and stripping courses functionality * simplifying the layout for now and adding display fields * moar data * layout tweaks and propagate metabib attributes for Formats and Editions * don't cross the streams with metabib related * field names for the record and metabib variants of the catalog_summary call. This would otherwise break some links in search results involving bibs with metarecords. * hyperlinks for the formats and editions in the catalog staff view * fix catalog_summary vs catalog_summary.staff bug * searchOrg depth was being passed where a boolean was expected * This seems like a failure of TypeScript to detect.. type. What was going on here? * layout and css tweaking * fixing toc and relocating it and some other fields to column 1 * label fix Signed-off-by: Jason Etheridge Signed-off-by: Mary Llewellyn Signed-off-by: Galen Charlton --- .../src/app/share/catalog/bib-record.service.ts | 6 + .../app/staff/catalog/record/record.component.html | 9 +- .../app/staff/catalog/record/record.component.ts | 3 +- Open-ILS/src/eg2/src/app/staff/common.module.ts | 3 + .../bib-staff-view/bib-staff-view.component.css | 7 + .../bib-staff-view/bib-staff-view.component.html | 348 +++++++++++++++++++++ .../bib-staff-view/bib-staff-view.component.ts | 89 ++++++ .../lib/OpenILS/Application/Search/Biblio.pm | 51 ++- 8 files changed, 511 insertions(+), 5 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.css create mode 100644 Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.ts diff --git a/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts index a4dd0b0f2e..954906c10f 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts @@ -37,6 +37,9 @@ export class BibRecordSummary { id: number; // == record.id() for convenience metabibId: number; // If present, this is a metabib summary metabibRecords: number[]; // all constituent bib records + staffViewMetabibId: number; // to supplement a record summary + staffViewMetabibRecords: number[]; // to supplement a record summary + staffViewMetabibAttributes: any; // to supplement a record summary orgId: number; orgDepth: number; record: IdlObject; @@ -128,6 +131,9 @@ export class BibRecordService { .pipe(map(bibSummary => { const summary = new BibRecordSummary(bibSummary.record, orgId); summary.net = this.net; // inject + summary.staffViewMetabibId = Number(bibSummary.staff_view_metabib_id); + summary.staffViewMetabibRecords = bibSummary.staff_view_metabib_records; + summary.staffViewMetabibAttributes = bibSummary.staff_view_metabib_attributes; summary.display = bibSummary.display; summary.attributes = bibSummary.attributes; summary.holdCount = bibSummary.hold_count; diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html index f0428fa7f8..c4384a0bae 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html @@ -38,6 +38,13 @@