From: phasefx Date: Thu, 5 Mar 2009 04:39:41 +0000 (+0000) Subject: re-arrange the button bar in the patron display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a7f1e60b5ea5f0dfe4ac810317e2d84c0d2c0a3d;p=Evergreen.git re-arrange the button bar in the patron display git-svn-id: svn://svn.open-ils.org/ILS/trunk@12412 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 53f8888a7d..065767f471 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1196,8 +1196,6 @@ - - @@ -1211,7 +1209,7 @@ - + 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 13328190b9..c8eff26956 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -298,7 +298,6 @@ const urls = { 'XUL_PATRON_EDIT' : '/xul/server/patron/ue.xhtml', 'XUL_USER_PERM_EDITOR' : '/xul/server/patron/user_edit.xhtml', 'XUL_PATRON_HOLDS' : '/xul/server/patron/holds.xul', - 'XUL_PATRON_INFO' : '/xul/server/patron/info.xul', 'XUL_PATRON_INFO_NOTES' : '/xul/server/patron/info_notes.xul', 'XUL_PATRON_INFO_STAT_CATS' : '/xul/server/patron/info_stat_cats.xul', 'XUL_PATRON_INFO_SURVEYS' : '/xul/server/patron/info_surveys.xul', diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 6ffec36264..e58ead9b5d 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -274,11 +274,53 @@ patron.display.prototype = { try { document.getElementById('PatronNavBar_other').firstChild.showPopup(); } catch(E) {}; } ], - 'cmd_patron_info' : [ + 'cmd_patron_info_notes' : [ ['command'], function(ev) { obj.right_deck.set_iframe( - urls.XUL_PATRON_INFO, // + '?patron_id=' + window.escape( obj.patron.id() ), + urls.XUL_PATRON_INFO_NOTES, + {}, + { + 'patron_id' : obj.patron.id(), + 'url_prefix' : xulG.url_prefix, + 'new_tab' : xulG.new_tab + } + ); + } + ], + 'cmd_patron_info_stats' : [ + ['command'], + function(ev) { + obj.right_deck.set_iframe( + urls.XUL_PATRON_INFO_STAT_CATS, + {}, + { + 'patron_id' : obj.patron.id(), + 'url_prefix' : xulG.url_prefix, + 'new_tab' : xulG.new_tab + } + ); + } + ], + 'cmd_patron_info_surveys' : [ + ['command'], + function(ev) { + obj.right_deck.set_iframe( + urls.XUL_PATRON_INFO_SURVEYS, + {}, + { + 'patron_id' : obj.patron.id(), + 'url_prefix' : xulG.url_prefix, + 'new_tab' : xulG.new_tab + } + ); + } + ], + 'cmd_patron_info_groups' : [ + ['command'], + function(ev) { + obj.right_deck.set_iframe( + urls.XUL_PATRON_INFO_GROUP, {}, { 'patron_id' : obj.patron.id(), @@ -402,6 +444,8 @@ patron.display.prototype = { ['command'], function() { function penalty_interface() { + try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_messages" ) ); } catch(E) {}; + obj.reset_nav_styling('cmd_standing_penalties'); return obj.right_deck.reset_iframe( urls.XUL_STANDING_PENALTIES, {}, @@ -434,7 +478,7 @@ patron.display.prototype = { x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); var x = document.getElementById("PatronNavBar_bills"); x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); - var x = document.getElementById("PatronNavBar_exit"); + var x = document.getElementById("PatronNavBar_messages"); x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); if (obj.barcode || obj.id) { @@ -605,6 +649,7 @@ patron.display.prototype = { this.controller.view.cmd_patron_other.setAttribute('style',''); this.controller.view.cmd_patron_holds.setAttribute('style',''); this.controller.view.cmd_patron_bills.setAttribute('style',''); + this.controller.view.cmd_standing_penalties.setAttribute('style',''); this.controller.view[ btn ].setAttribute('style','background: blue; color: white;'); } catch(E) { alert(E); diff --git a/Open-ILS/xul/staff_client/server/patron/display.xul b/Open-ILS/xul/staff_client/server/patron/display.xul index 1acc79c2c3..98cfa6c7a3 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.xul +++ b/Open-ILS/xul/staff_client/server/patron/display.xul @@ -95,7 +95,10 @@ - + + + + diff --git a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul index 4fd69792b6..594a2e3f98 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul @@ -87,18 +87,19 @@ label="&staff.patron_navbar.bills;" accesskey="&staff.patron_navbar.bills.accesskey;"/> -