LP#1879983: show warnings when a patron has arrived before staging is complete
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 16 Jun 2020 21:01:14 +0000 (17:01 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 16 Jun 2020 21:01:14 +0000 (17:01 -0400)
The 'Alert staff of your arrival' button in the public catalog My Account
page is enabled either when the appointment staged OR if the
appointment time has come, so if a library falls behind on staging,
some indication that the patron has shown up could be useful.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/curbside/t_arrived_manager.tt2
Open-ILS/src/templates/staff/circ/curbside/t_to_be_staged_manager.tt2

index aeb4152..0690e73 100644 (file)
@@ -28,6 +28,9 @@
     </eg-grid-field>
     <eg-grid-field label="[% l('Appointment ID') %]" path="slot.id"></eg-grid-field>
     <eg-grid-field label="[% l('Items for Pickup') %]" path="holds" compiled>
+      <div class="alert alert-danger" ng-show="!item['slot'].staged()">
+        [% l('Items are not yet staged!') %]
+      </div>
       <eg-curbside-holds-list holds="item.holds" bib-data="item.bib_data_by_hold" slot="item.slot"></eg-curbside-holds-list>
     </eg-grid-field>
     <eg-grid-field label="[% l('Action') %]" handlers="gridCellHandlers" compiled>
index d0bd9da..096c5b7 100644 (file)
@@ -25,6 +25,9 @@
       <div class="alert alert-warning" ng-show="col.handlers.patronIsBlocked(item['slot'].patron())">
         [% l('Patron is blocked from checkouts.') %]
       </div>
+      <div class="alert alert-danger" ng-show="item['slot'].arrival()">
+        [% l('Patron has already arrived!') %]
+      </div>
     </eg-grid-field>
     <eg-grid-field label="[% l('Appointment ID') %]" path="slot.id"></eg-grid-field>
     <eg-grid-field label="[% l('Items for Pickup') %]" path="holds" compiled>