[open-ils-commits] r10418 - in trunk/Open-ILS/web/opac: extras/selfcheck locale/en-US

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 22 18:07:41 EDT 2008


Author: erickson
Date: 2008-08-22 18:07:36 -0400 (Fri, 22 Aug 2008)
New Revision: 10418

Modified:
   trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
   trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
   trunk/Open-ILS/web/opac/locale/en-US/opac.dtd
Log:
added a handler for the case where the item is checked out by another user

Modified: trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
===================================================================
--- trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.js	2008-08-22 22:07:30 UTC (rev 10417)
+++ trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.js	2008-08-22 22:07:36 UTC (rev 10418)
@@ -380,6 +380,9 @@
                 rnReq.request.alertEvent = false;
                 rnReq.callback(selfckHandleCoResult);
                 rnReq.send();
+            } else {
+                pendingXact = false;
+                selfckShowMsgNode({textcode:'already-out'});
             }
         }
     );

Modified: trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
===================================================================
--- trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml	2008-08-22 22:07:30 UTC (rev 10417)
+++ trunk/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml	2008-08-22 22:07:36 UTC (rev 10418)
@@ -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>

Modified: trunk/Open-ILS/web/opac/locale/en-US/opac.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/opac.dtd	2008-08-22 22:07:30 UTC (rev 10417)
+++ trunk/Open-ILS/web/opac/locale/en-US/opac.dtd	2008-08-22 22:07:36 UTC (rev 10418)
@@ -667,6 +667,7 @@
 <!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">



More information about the open-ils-commits mailing list