From: Jason Etheridge Date: Mon, 3 Oct 2022 04:12:02 +0000 (-0400) Subject: lp1959010 toward Staff View tab X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=32693f5034812185074b12aae33df57700020aa3;p=working%2FEvergreen.git 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 Signed-off-by: Jason Stephenson --- 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 @@