LP2001728 - Don't display circ_staff for opac and autorenewals
authorMichele Morgan <mmorgan@noblenet.org>
Wed, 1 Mar 2023 17:18:09 +0000 (12:18 -0500)
committerJane Sandberg <js7389@princeton.edu>
Tue, 9 May 2023 13:46:24 +0000 (06:46 -0700)
Item Status Circ History List: Displays the placeholder <OPAC Renewal>
or <Auto-renewal> instead of the patron information in the Check Out
Staff field.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Gina Monti <gmonti@biblio.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2

index 036f3fe..bd547c8 100644 (file)
     }}</div>
     <div class="flex-cell">[% l('Check Out Staff') %]</div>
     <div class="flex-cell well">
-      <a ng-if="circ.circ_staff()" target="_blank"
-        href="./circ/patron/{{circ.circ_staff().id()}}/checkout">
+      <div ng-if="circ.parent_circ() == null">
+        <a target="_blank" href="./circ/patron/{{circ.circ_staff().id()}}/checkout">
           {{circ.circ_staff().usrname()}}
-      </a>
+        </a>
+      </div>
+      <div ng-if="circ.desk_renewal() == 't'">
+        <a target="_blank" href="./circ/patron/{{circ.circ_staff().id()}}/checkout">
+          {{circ.circ_staff().usrname()}}
+        </a>
+      </div>
+      <div ng-if="circ.opac_renewal() == 't'">[% l('<OPAC Renewal>') | html %]</div>
+      <div ng-if="circ.auto_renewal() == 't'">[% l('<Auto-Renewal>') | html %]</div>
     </div>
     <div class="flex-cell">[% l('Stop Fines Reason') %]</div>
     <div class="flex-cell well">{{circ.stop_fines()}}</div>