Have the Checkout entry point for patron retrieval honor the horizontal summary bar...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 2 Feb 2010 17:48:14 +0000 (17:48 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 2 Feb 2010 17:48:14 +0000 (17:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15433 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/barcode_entry.xul

index faa4bdf..475337d 100644 (file)
 
         function spawn_checkout(barcode) {
             try {
-                var loc = urls.XUL_PATRON_DISPLAY; // + '?barcode=' + window.escape(barcode);
+                var horizontal_interface = String( g.data.hash.aous['ui.circ.patron_summary.horizontal'] ) == 'true';
+                var loc = horizontal_interface ? urls.XUL_PATRON_HORIZ_DISPLAY : urls.XUL_PATRON_DISPLAY;
                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab == 'function') {
                     window.xulG.set_tab( loc, {}, { 'barcode' : barcode } );
                 } else {