circulation not found
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Feb 2006 00:51:55 +0000 (00:51 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Feb 2006 00:51:55 +0000 (00:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3063 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js

index 777cbf6..b8346de 100644 (file)
@@ -298,6 +298,23 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) {
                                }
                        } else {
                                check.route_to = data.hash.aou[ check.copy.circ_lib() ].shortname();
+                               var rv = error.yns_alert(
+                                       'There is no circulation for this item, however, its circulating library is ' + check.route_to
+                                               + '.\nTransit this item?',
+                                       'Alert',
+                                       "Transit",
+                                       "Don't Transit",
+                                       null,
+                                       "Check here to confirm this message"
+                               );
+                               switch(rv) {
+                                       case 0: /* transit */
+                                               alert('FIXME -- make transit call here');
+                                       break;
+                                       case 1: /* don't transit */
+                                               check.route_to += ' ?';
+                                       break;
+                               }
                        }
                }