some transit/hold receipts and handling
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 20:30:44 +0000 (20:30 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 20:30:44 +0000 (20:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1506 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js
Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js

index 067d383..ce45d1a 100644 (file)
@@ -146,7 +146,14 @@ function checkin_by_copy_barcode(barcode, backdate, f) {
                                                                        check.copy = check2.copy;
                                                                        check.text = check2.text;
                                                                        check.route_to = check2.route_to;
-                                                                       sPrint(check.record.title() + '<br />\r\n' + check.text + '\r\n<br />Barcode: ' + barcode + '  Route to: ' + check.route_to + '\r\n' );
+                                                                       var patron = retrieve_patron_by_id( check.hold.usr() );
+                                                                       sPrint(check.text + '<br />\r\n' + 'Barcode: ' + barcode + '  Title: ' + 
+                                                                               check.record.title() + '  Author: ' + check.record.author() + 
+                                                                               '<br />\r\n' + 'Route To: ' + check.route_to + '  Patron: ' + 
+                                                                               patron.barcode() + ' ' + patron.family_name() + ', ' + 
+                                                                               patron.first_given_name() + '<br />\r\n'
+                                                                       );
+
                                                                }
 
                                                        } catch(E) { 
@@ -164,7 +171,27 @@ function checkin_by_copy_barcode(barcode, backdate, f) {
                                                        break;
                                                }
                                        break;
+                                       case '2': case 2: /* LOST??? */
+                                       break;
+                                       case '3': case 3: /* TRANSIT ELSEWHERE */
+                                               if (parseInt(check.route_to)) check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname();
+                                               var pcheck = yns_alert(
+                                                       msg,
+                                                       'Alert',
+                                                       'Print Receipt',
+                                                       "Don't Print",
+                                                       null,
+                                                       "Check here to confirm this message"
+                                               ); 
+                                               if (pcheck == 0) {
+                                                       sPrint(check.text + '<br />\r\n' + 'Barcode: ' + barcode + '  Title: ' + 
+                                                               check.record.title() + '  Author: ' + check.record.author() + 
+                                                               '<br />\r\n' + 'Route To: ' + check.route_to +
+                                                               '<br />\r\n'
+                                                       );
+                                               }
 
+                                       break;
                                        default: 
                                                if (parseInt(check.route_to)) check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname();
                                                var msg = check.text + '\r\nBarcode: ' + barcode + '  Route To: ' + check.route_to;
index a8ee3d5..faa0db0 100755 (executable)
@@ -61,6 +61,14 @@ function hold_capture_hold_capture_items_init(p) {
                                hold_captures.push( check );
                                p.hold_capture_items.add_hold_capture_items( [ hold_captures.length - 1 ] );
 
+                               var patron = retrieve_patron_by_id( check.hold.usr() );
+
+                               sPrint(check.text + '<br />\r\n' + 'Barcode: ' + barcode + '  Title: ' + check.record.title() + 
+                                       '  Author: ' + check.record.author() + '<br />\r\n' +
+                                       'Route To: ' + check.route_to + 
+                                       '  Patron: ' + patron.barcode() + ' ' + patron.family_name() + ', ' + patron.first_given_name() + 
+                                       '<br />\r\n'
+                               );
                                tb.value = ''; 
                        }
                } catch(E) {