don't always want a dialog
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Feb 2006 00:40:43 +0000 (00:40 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Feb 2006 00:40:43 +0000 (00:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3081 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 6663152..91517e6 100644 (file)
@@ -289,6 +289,7 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) {
                        switch(check.copy.status()) {
                                case 0: /* AVAILABLE */
                                case 7: /* RESHELVING */
+                                       if (msg) msg += 'This item needs to be routed to ' + check.route_to + '.';
                                break;
                                case 8: /* ON HOLDS SHELF */
                                        check.route_to = 'HOLDS SHELF';
@@ -309,12 +310,13 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) {
                                break;
                                case 11: /* CATALOGING */
                                        check.route_to = 'CATALOGING';
+                                       msg += 'This item needs to be routed to ' + check.route_to + '.';
                                break;
                                default:
                                        msg += ("FIXME -- this case is unhandled\n");
+                                       msg += 'This item needs to be routed to ' + check.route_to + '.';
                                break;
                        }
-                       msg += 'This item needs to be routed to ' + check.route_to + '.';
                        if (msg) error.yns_alert(msg,'Alert',null,'OK',null,"Check here to confirm this message");
                }