LP1936233 More aged circ handling again
authorBill Erickson <berickxx@gmail.com>
Tue, 3 Aug 2021 18:58:38 +0000 (14:58 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 3 Aug 2021 18:58:54 +0000 (14:58 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/item/recent-history.component.html

index d0c2c58..56ee3e0 100644 (file)
@@ -9,12 +9,17 @@
       <div class="well-row">
         <div class="well-label" i18n>Patron</div>
         <div class="well-value">
-          <a i18n
-            routerLink="/staff/circ/patron/{{circInfo.prevCircUser.id()}}">
-            {{circInfo.prevCircUser.family_name()}}, 
-            {{circInfo.prevCircUser.first_given_name()}}, 
-            {{circInfo.prevCircUser.second_given_name()}}
-          </a>
+          <ng-container *ngIf="circInfo.prevCircUser">
+            <a i18n
+              routerLink="/staff/circ/patron/{{circInfo.prevCircUser.id()}}">
+              {{circInfo.prevCircUser.family_name()}}, 
+              {{circInfo.prevCircUser.first_given_name()}}, 
+              {{circInfo.prevCircUser.second_given_name()}}
+            </a>
+          </ng-container>
+          <ng-container *ngIf="!circInfo.prevCircUser">
+              <span i18n>&lt;Aged Circulation&gt;</span>
+          </ng-container>
         </div>
       </div>