From: Bill Erickson Date: Fri, 31 Jul 2020 14:00:53 +0000 (-0400) Subject: Revert "LP1889694 copy count batch mode UI (revert)" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9f711f0c76216464373b46d8a254a77c4936ac77;p=working%2FEvergreen.git Revert "LP1889694 copy count batch mode UI (revert)" This reverts commit 8fd8794babcedc2ff2cafcebf57a68ac5438f874. --- 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 d15d2bc2fb..d29c4bdef8 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 @@ -160,8 +160,6 @@ export class BibRecordService { return from([]); } - //return this.getCopyCountsBatch(ids) - return this.pcrud.search('bre', {id: ids}, { flesh: 1, flesh_fields: {bre: ['flat_display_entries', 'mattrs']}, @@ -180,22 +178,6 @@ export class BibRecordService { })); } - getCopyCountsBatch(recordIds: number[], - orgId: number, isStaff?: boolean, isMetarecord?: boolean): Promise { - - let method = 'open-ils.search.biblio.record.copy_count.batch'; - - if (isMetarecord) { - method = method.replace(/record/, 'metarecord/'); - } - - if (isStaff) { method += '.staff'; } - - return this.net.request( - 'open-ils.search', method, orgId, recordIds - ).toPromise(); - } - // A Metabib Summary is a BibRecordSummary with the lead record as // its core bib record plus attributes (e.g. formats) from related // records. @@ -315,23 +297,6 @@ export class BibRecordService { getHoldingsSummary(recordId: number, orgId: number, orgDepth: number, isMetarecord?: boolean): Promise { - let method = 'open-ils.search.biblio.record.copy_count'; - - if (isMetarecord) { - method = method.replace(/record/, 'metarecord/'); - } - - // TODO: isStaff param / replace depth - method += '.staff'; - - return this.net.request( - 'open-ils.search', method, orgId, recordId - ).toPromise(); - } - - getHoldingsSummaryUnapi(recordId: number, - orgId: number, orgDepth: number, isMetarecord?: boolean): Promise { - const holdingsSummary = []; return this.unapi.getAsXmlDocument({