LP1919465 Pull list detail show record summary
authorBill Erickson <berickxx@gmail.com>
Tue, 14 Sep 2021 14:43:47 +0000 (10:43 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 24 Sep 2021 19:21:03 +0000 (15:21 -0400)
Display the bib record summary when displaying the hold detail view from
the holds pull list.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jennifer Weston <jennifer.weston@equinoxOLI.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/detail.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/detail.component.ts
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts

index d60e610..a881abb 100644 (file)
@@ -5,6 +5,7 @@
   persistKey="circ.holds.pull_list"
   printTemplate="hold_pull_list"
   showFields="acpl_name,cn_full_label,p_label,author,title,cp_barcode,pl_shortname,hold_type,potentials,request_time"
+  [showRecordSummary]="true"
   [enablePreFetch]="true"
   [hidePickupLibFilter]="true"
   [pullListOrg]="targetOrg()">
index e80d1ff..10d2f5e 100644 (file)
@@ -1,6 +1,10 @@
 <eg-hold-note-dialog #noteDialog [holdId]="holdId"></eg-hold-note-dialog>
 <eg-hold-notify-dialog #notifyDialog [holdId]="holdId"></eg-hold-notify-dialog>
 
+<div class="mb-3" *ngIf="showRecordSummary">
+  <eg-bib-summary [recordId]="hold.record_id"></eg-bib-summary>
+</div>
+
 <div class="row">
   <div class="col-lg-2">
     <button (click)="showListView()" class="btn btn-info" i18n>List View</button>
index 2f28c24..45b414d 100644 (file)
@@ -43,6 +43,9 @@ export class HoldDetailComponent implements OnInit {
         return this.hold;
     }
 
+    // Display bib record summary along the top of the detail page.
+    @Input() showRecordSummary = false;
+
     initDone: boolean;
     @Output() onShowList: EventEmitter<any>;
 
index 2910573..95c33a1 100644 (file)
@@ -27,8 +27,8 @@
 <div class='eg-holds w-100 mt-3'>
 
   <ng-container *ngIf="mode == 'detail'">
-    <eg-hold-detail [wideHold]="detailHold" (onShowList)="mode='list'">
-    </eg-hold-detail>
+    <eg-hold-detail [wideHold]="detailHold" (onShowList)="mode='list'" 
+      [showRecordSummary]="showRecordSummary"></eg-hold-detail>
   </ng-container>
 
   <ng-container *ngIf="mode == 'list' && initComplete()">
index 521bd9c..3ee5ca4 100644 (file)
@@ -60,6 +60,9 @@ export class HoldsGridComponent implements OnInit {
     // To pass through to the underlying eg-grid
     @Input() showFields: string;
 
+    // Display bib record summary along the top of the detail page.
+    @Input() showRecordSummary = false;
+
     mode: 'list' | 'detail' | 'manage' = 'list';
     initDone = false;
     holdsCount: number;