PINES Temporary Workaround for LP1908614
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 30 Dec 2020 16:58:18 +0000 (11:58 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 4 Jan 2021 17:22:12 +0000 (12:22 -0500)
I wasn't able to fix that bug, but this temporary workaround will
do until it gets fixed. This should be reverted when that fix is
available in a future Evergreen version.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html

index 21b8d9f..1ebf0a5 100644 (file)
@@ -4,6 +4,12 @@
   {{copy.call_number_suffix_label}}
 </ng-template>
 
+<!-- Temporary PINES workaround for bug 1908614 - revert after that bug is fixed -->
+<ng-template #ageprotectTemplate let-copy="row">
+    <div *ngIf="copy.age_protect == 1">3month</div>
+    <div *ngIf="copy.age_protect == 2">6month</div>
+</ng-template>
+
 <ng-template #barcodeTemplate let-copy="row">
   <div>{{copy.barcode}}</div>
   <div>
     </eg-grid-column>
     <eg-grid-column i18n-label label="Circulation Modifier" path="circ_modifier">
     </eg-grid-column>
-    <eg-grid-column i18n-label label="Age Hold Protection" path="age_protect">
+
+<!-- Temporary PINES workaround for bug 1908614 - revert after that bug is fixed -->
+<!--    <eg-grid-column i18n-label label="Age Hold Protection" path="age_protect">
+    </eg-grid-column> -->
+    <eg-grid-column i18n-label label="Age Hold Protection" [cellTemplate]="ageprotectTemplate">
     </eg-grid-column>
+
+
     <eg-grid-column i18n-label label="Active/Create Date" 
       path="active_date" datatype="timestamp">
     </eg-grid-column>