added a handler for the case where the item is checked out by another user
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Aug 2008 22:07:36 +0000 (22:07 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Aug 2008 22:07:36 +0000 (22:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10418 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/extras/selfcheck/selfcheck.js
Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
Open-ILS/web/opac/locale/en-US/opac.dtd

index fae706a..71ea3f8 100644 (file)
@@ -380,6 +380,9 @@ function selfckRenew() {
                 rnReq.request.alertEvent = false;
                 rnReq.callback(selfckHandleCoResult);
                 rnReq.send();
+            } else {
+                pendingXact = false;
+                selfckShowMsgNode({textcode:'already-out'});
             }
         }
     );
index e658ae9..23f1d3d 100644 (file)
@@ -91,6 +91,7 @@
                         <span id='selfck-event-ACTOR_USER_NOT_FOUND'>&selfck.event.patron_not_found;</span>
                         <span id='selfck-event-COPY_CIRC_NOT_ALLOWED'>&selfck.event.item_nocirc;</span>
                         <span id='selfck-event-ITEM_NOT_CATALOGED'>&selfck.event.item_noncat;</span>
+                        <span id='selfck-event-already-out'>&selfck.event.already_out;</span>
                         <span id='selfck-event-dupe-barcode'>&selfck.event.dupe_barcode;</span>
                     </span>
                 </div>
index 358dd08..aa7584b 100644 (file)
@@ -667,6 +667,7 @@ Ensure Caps-Lock is off and try again or contact your local library.">
 <!ENTITY selfck.event.patron_not_found "The patron barcode was not found">
 <!ENTITY selfck.event.item_noncat "The requested item is not in the catalog">
 <!ENTITY selfck.event.item_nocirc "The requested item is not allowed to circulate">
+<!ENTITY selfck.event.already_out "The requested item is already checked out to another patron">
 <!ENTITY selfck.items_out "You checked out the following items">
 <!ENTITY selfck.org_hours "Hours of Operation">
 <!ENTITY selfck.org_phone "Library Phone Number">