LP#1919500 - Tweak to Checkout Staff display
authorMichele Morgan <mmorgan@noblenet.org>
Tue, 29 Mar 2022 17:04:55 +0000 (13:04 -0400)
committerJason Stephenson <jason@sigio.com>
Wed, 30 Mar 2022 13:21:24 +0000 (09:21 -0400)
Displays Checkout Staff's usrname instead of id and adds a link to the
record.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>

Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index f64984e..036f3fe 100644 (file)
       circ.auto_renewal() == 't'
     }}</div>
     <div class="flex-cell">[% l('Check Out Staff') %]</div>
-    <div class="flex-cell well">{{circ.circ_staff()}}</div>
+    <div class="flex-cell well">
+      <a ng-if="circ.circ_staff()" target="_blank"
+        href="./circ/patron/{{circ.circ_staff().id()}}/checkout">
+          {{circ.circ_staff().usrname()}}
+      </a>
+    </div>
     <div class="flex-cell">[% l('Stop Fines Reason') %]</div>
     <div class="flex-cell well">{{circ.stop_fines()}}</div>
     <div class="flex-cell">[% l('Check In Library') %]</div>
index 1338a25..d024917 100644 (file)
@@ -1088,7 +1088,8 @@ console.debug($scope.copy_alert_count);
                             'usr',
                             'workstation',
                             'checkin_workstation',
-                            'recurring_fine_rule'
+                            'recurring_fine_rule',
+                            'circ_staff'
                         ],
                         au : ['card']
                     },