LP#2001728: Don't display circ_staff for opac and autorenewals
authorGina Monti <gmonti@biblio.org>
Sun, 30 Apr 2023 20:58:34 +0000 (16:58 -0400)
committerGina Monti <gmonti@biblio.org>
Sun, 30 Apr 2023 20:58:34 +0000 (16:58 -0400)
Sign-off-by: Gina Monti <gmonti@biblio.org>
Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2

index 036f3fe..3cd0f80 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>
     </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>
     <div class="flex-cell">[% l('Check In Library') %]</div>