From: phasefx Date: Wed, 4 Mar 2009 18:47:21 +0000 (+0000) Subject: alternative horizontal patron search interface X-Git-Tag: sprint4-merge-nov22~10621 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a2bd34f6d7f6b09d1c02f899ec8daa1f0d5d9620;p=working%2FEvergreen.git alternative horizontal patron search interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@12402 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 20e1e92ae2..13328190b9 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -305,6 +305,7 @@ const urls = { 'XUL_PATRON_INFO_GROUP' : '/xul/server/patron/info_group.xul', 'XUL_PATRON_ITEMS' : '/xul/server/patron/items.xul', 'XUL_PATRON_SEARCH_FORM' : '/xul/server/patron/search_form.xul', + 'XUL_PATRON_HORIZONTAL_SEARCH_FORM' : '/xul/server/patron/search_form_horiz.xul', 'XUL_PATRON_SEARCH_RESULT' : '/xul/server/patron/search_result.xul', 'XUL_PATRON_SUMMARY' : '/xul/server/patron/summary.xul', 'XUL_PRE_CAT' : '/xul/server/circ/pre_cat_fields.xul', diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index e5fb638514..6ffec36264 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -622,7 +622,8 @@ patron.display.prototype = { obj.controller.view.cmd_patron_merge.setAttribute('disabled','true'); obj.controller.view.cmd_search_form.setAttribute('disabled','true'); - var loc = urls.XUL_PATRON_SEARCH_FORM; + var horizontal_interface = String( obj.OpenILS.data.hash.aous['ui.circ.patron_summary.horizontal'] ) == 'true'; + var loc = horizontal_interface ? urls.XUL_PATRON_HORIZONTAL_SEARCH_FORM : urls.XUL_PATRON_SEARCH_FORM; var my_xulG = { 'clear_left_deck' : function() { setTimeout( function() { diff --git a/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul b/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul new file mode 100644 index 0000000000..245f4b5e82 --- /dev/null +++ b/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul @@ -0,0 +1,97 @@ + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/xul/staff_client/server/patron/search_form_horiz_overlay.xul b/Open-ILS/xul/staff_client/server/patron/search_form_horiz_overlay.xul new file mode 100644 index 0000000000..3ccb7c7af5 --- /dev/null +++ b/Open-ILS/xul/staff_client/server/patron/search_form_horiz_overlay.xul @@ -0,0 +1,127 @@ + + + +]> + + + + + + + + + + + + + + + + + + + + + + +