From 34ecd06ef3b098716be0f2ac780f1ad23b30d715 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 15 Sep 2009 17:22:12 +0000 Subject: [PATCH] spawn the right (horizontal versus vertical) patron display 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul index 8dceab6bb..d447ec1ac 100644 --- a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul @@ -168,7 +168,8 @@ 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 { -- 2.11.0