From f8482ad4e426249c02175415cfc55b427565e3fb Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 30 May 2011 13:14:29 -0400 Subject: [PATCH] Remove display of patron birthdate, internet access level, etc These fields in the staff client are either not applicable or potentially privacy-invasive or both. If the data somehow does get into the system, we don't want it to show up on the staff client anyway - and we don't want annoying warnings about unset dates of birth, etc. This is the hardcore way of doing things, we really should make it yet another configuration setting. Oh well. Signed-off-by: Dan Scott --- Open-ILS/xul/staff_client/server/patron/summary.js | 50 +--------------------- .../staff_client/server/patron/summary_overlay.xul | 7 --- Open-ILS/xul/staff_client/server/patron/util.js | 36 ---------------- 3 files changed, 2 insertions(+), 91 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index cb23327287..40bd108d89 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -246,14 +246,7 @@ patron.summary.prototype = { 'patron_net_access' : [ ['render'], function(e) { - return function() { - util.widgets.set_text(e, - patronStrings.getString('staff.patron.summary.patron_net_access') + - ' ' + obj.OpenILS.data.hash.cnal[ - obj.patron.net_access_level() - ].name() - ); - }; + // not applicable to Conifer } ], 'patron_credit' : [ @@ -634,46 +627,7 @@ patron.summary.prototype = { 'patron_date_of_birth' : [ ['render'], function(e) { - return function() { - var hide_value = e.getAttribute('hide_value'); - if ( obscure_dob && hide_value == 'true' ) { - e.setAttribute( 'hidden_value', - obj.patron.dob() ? - util.date.formatted_date( obj.patron.dob(), '%{localized_date}' ) : - patronStrings.getString('staff.patron.field.unset') - ); - util.widgets.set_text(e, - patronStrings.getString('staff.patron.field.hidden') - ); - } else { - util.widgets.set_text(e, - obj.patron.dob() ? - util.date.formatted_date( obj.patron.dob(), '%{localized_date}' ) : - patronStrings.getString('staff.patron.field.unset') - ); - e.setAttribute( 'hidden_value', - patronStrings.getString('staff.patron.field.hidden') - ); - } - var x = document.getElementById('PatronSummaryContact_date_of_birth_label'); - if (x) { - var click_to_hide_dob = x.getAttribute('click_to_hide_dob'); - if (!obscure_dob || click_to_hide_dob != 'true') { - removeCSSClass(x,'click_link'); - } - if (obscure_dob && click_to_hide_dob == 'true') { - addCSSClass(x,'click_link'); - x.onclick = function() { - hide_value = e.getAttribute('hide_value'); - e.setAttribute('hide_value', hide_value == 'true' ? 'false' : 'true'); - var value = util.widgets.get_text(e); - var hidden_value = e.getAttribute('hidden_value'); - util.widgets.set_text(e,hidden_value); - e.setAttribute('hidden_value',value); - } - } - } - }; + // not applicable to Conifer } ], 'patron_day_phone' : [ diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul index 4496594cd9..adffa1e2f5 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -41,9 +41,6 @@ - - - @@ -167,10 +164,6 @@