LP#1879983: Predefined ILS Events to alert the UI
authorMike Rylander <mrylander@gmail.com>
Tue, 19 May 2020 19:10:34 +0000 (15:10 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 15 Sep 2020 20:20:37 +0000 (16:20 -0400)
This commit defines events that might be sent to UIs in the case of
exceptional circumstances:

* CURBSIDE_NOT_ALLOWED (i.e., if the circ.curbside library setting is
  not enabled for a given pickup library.)
* CURBSIDE_MAX_FOR_TIME (i.e., if all of the available slots for
  a given appointment time have been scheduled.)
* CURBSIDE_EXISTS (i.e., if one is attempting to create a new
  open curbside appointment for a patron and pickup library when
  one already exists.)

Sponsored-by: PaILS
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/extras/ils_events.xml

index cc0d3f8..ce36cc6 100644 (file)
        <event code='7029' textcode='MAX_AUTO_RENEWALS_REACHED'>
                <desc xml:lang="en-US">Circulation has no more auto-renewals remaining</desc>
        </event>
+       <event code='7030' textcode='CURBSIDE_NOT_ALLOWED'>
+               <desc xml:lang="en-US">Curbside pickup is not enabled for this location</desc>
+       </event>
+       <event code='7031' textcode='CURBSIDE_MAX_FOR_TIME'>
+               <desc xml:lang="en-US">Maximum scheduled curbside pickups at the requested time</desc>
+       </event>
+       <event code='7032' textcode='CURBSIDE_EXISTS'>
+               <desc xml:lang="en-US">A scheduled, unfilled curbside request already exists</desc>
+       </event>
 
 
        <!-- ================================================================ -->