LP#1879983: egCurbsideHoldsList now displays warning about new-arrived holds
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 15 Jun 2020 15:45:19 +0000 (11:45 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 15 Jun 2020 15:45:19 +0000 (11:45 -0400)
The directive now displays a warning if a hold's shelf time occurs
*after* the time that the appointment was staged. Note that this
does not take the Hold Shelf Status Delay library setting into
account.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/curbside/t_holds_list.tt2
Open-ILS/web/js/ui/default/staff/circ/curbside/services/core.js

index f7b9484..2a334e9 100644 (file)
@@ -5,5 +5,8 @@
       {{hold.current_copy().barcode()}}
       <span class="glyphicon glyphicon-new-window"></span>
     </a>
+    <div ng-if="slot.staged() && slot.staged() < hold.shelf_time()" class="alert alert-warning">
+      [% l('Check item; came in after appointment was staged.') %]
+    </div>
   </li>
 </ul>
index 8a4daa3..e2b1e6c 100644 (file)
@@ -179,6 +179,7 @@ function(egCore , orderByFilter , $q , $filter , $uibModal , ngToast , egConfirm
         transclude: true,
         templateUrl : './circ/curbside/t_holds_list',
         scope : {
+            slot : '=',
             holds : '=',
             bibData : '='
         },