spawn the right (horizontal versus vertical) patron display
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Sep 2009 17:22:12 +0000 (17:22 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Sep 2009 17:22:12 +0000 (17:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14026 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 8dceab6..d447ec1 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 = xulG.url_prefix( 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 {