Revert "LP1889694 copy count batch mode UI (revert)"
authorBill Erickson <berickxx@gmail.com>
Fri, 31 Jul 2020 14:00:53 +0000 (10:00 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 31 Jul 2020 14:00:53 +0000 (10:00 -0400)
This reverts commit 8fd8794babcedc2ff2cafcebf57a68ac5438f874.

Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts

index d15d2bc..d29c4bd 100644 (file)
@@ -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<any> {
-
-        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<any> {
 
-        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<any> {
-
         const holdingsSummary = [];
 
         return this.unapi.getAsXmlDocument({