From: erickson Date: Wed, 6 Sep 2006 18:12:12 +0000 (+0000) Subject: returning overridable copy-on-holds-shelf event on permit X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a904cecb3da662a93e72d3d9528876ccbe14d82;p=Evergreen.git returning overridable copy-on-holds-shelf event on permit git-svn-id: svn://svn.open-ils.org/ILS/trunk@6004 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/extras/ils_events.xml b/Open-ILS/src/extras/ils_events.xml index da3634e5d5..b3f5d20eca 100644 --- a/Open-ILS/src/extras/ils_events.xml +++ b/Open-ILS/src/extras/ils_events.xml @@ -597,12 +597,6 @@ Circulation has no more renewals remaining - - - A copy needs to be routed to a copy location. The location - should be specified within the event with a 'location' key - - Requested circulation is marked claims returned @@ -624,6 +618,16 @@ This requested action would result in a negative patron balance + + This requested item is currently on the holds shelf + + + + A copy needs to be routed to a copy location. The location + should be specified within the event with a 'location' key + + + diff --git a/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js b/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js index bd861f8bde..f29df8efa8 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js +++ b/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js @@ -20,7 +20,10 @@ if( ! isTrue(isRenewal) ) { if(copyStatus != 'Available' && copyStatus != 'On holds shelf' && copyStatus != 'Reshelving' ) { result.events.push('COPY_NOT_AVAILABLE'); - } + } + + if( copyStatus == 'On holds shelf' ) + result.events.push('ITEM_ON_HOLDS_SHELF'); }