option for not alerting on pre-cat checkin
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 Sep 2006 05:28:52 +0000 (05:28 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 Sep 2006 05:28:52 +0000 (05:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6284 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index ee536a9..5625bdb 100644 (file)
@@ -98,6 +98,7 @@
                command="cmd_checkin_print"
                accesskey="&staff.checkin.print_receipt_label.accesskey;"/>
        <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/> 
+       <checkbox id="do_not_alert_on_precat" label="Don't Alert on Pre-Cat" persist="checked"/> 
        <spacer id="pcii3s" flex="1"/>
        <checkbox id="checkin_auto" label="Auto-Print for Hold/Transit Slips" accesskey="P" persist="checked"/> 
 </hbox>
index c8f27bc..05d7f7c 100644 (file)
@@ -1075,7 +1075,16 @@ circ.util.checkin_via_barcode2 = function(session,barcode,backdate,auto_print,ch
                                break;
                                case 11: /* CATALOGING */
                                        check.route_to = 'CATALOGING';
-                                       msg += 'This item needs to be routed to ' + check.route_to + '.';
+                                       if (document.getElementById('do_not_alert_on_precat')) {
+                                               var x = document.getElementById('do_not_alert_on_precat');
+                                               if (! x.checked) msg += 'This item needs to be routed to ' + check.route_to + '.';
+                                       } else {
+                                               msg += 'This item needs to be routed to ' + check.route_to + '.';
+                                       }
+                                       if (document.getElementById('no_change_label')) {
+                                               document.getElementById('no_change_label').setAttribute('value',barcode + ' needs to be cataloged.');
+                                               document.getElementById('no_change_label').setAttribute('hidden','false');
+                                       }
                                break;
                                default:
                                        msg += ('Please inform your helpdesk/developers of this error:\nFIXME -- this case "' + (data.hash.ccs[check.copy.status()] ? data.hash.ccs[check.copy.status()].name() : check.copy.status().name()) + '" is unhandled.\n');