From: dbs Date: Tue, 12 Apr 2011 13:54:03 +0000 (+0000) Subject: Bring Conifer patron XUL into line with 2.0 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=db090944b767e4730475be7db01c1ebdaf6b41a3;p=contrib%2FConifer.git Bring Conifer patron XUL into line with 2.0 Eliminate date of birth and net_access display elements git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_2_0@1333 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/xul/server/patron/summary.js b/xul/server/patron/summary.js index cb094d11de..52f72dcc81 100644 --- a/xul/server/patron/summary.js +++ b/xul/server/patron/summary.js @@ -7,770 +7,989 @@ var offlineStrings = $('offlineStrings'); if (typeof patron == 'undefined') patron = {}; patron.summary = function (params) { - JSAN.use('util.error'); this.error = new util.error(); - JSAN.use('util.window'); this.window = new util.window(); - JSAN.use('util.network'); this.network = new util.network(); - this.w = window; + JSAN.use('util.error'); this.error = new util.error(); + JSAN.use('util.window'); this.window = new util.window(); + JSAN.use('util.network'); this.network = new util.network(); + JSAN.use('util.widgets'); JSAN.use('util.date'); + this.w = window; } patron.summary.prototype = { - 'init' : function( params ) { - - var obj = this; - - obj.barcode = params['barcode']; - obj.id = params['id']; - if (params['show_name']) { - document.getElementById('patron_name').hidden = false; - document.getElementById('patron_name').setAttribute('hidden','false'); - } - - JSAN.use('OpenILS.data'); this.OpenILS = {}; - obj.OpenILS.data = new OpenILS.data(); obj.OpenILS.data.init({'via':'stash'}); - - JSAN.use('util.controller'); obj.controller = new util.controller(); - obj.controller.init( - { - control_map : { - 'cmd_broken' : [ - ['command'], - function() { alert($("commonStrings").getString('common.unimplemented')); } - ], - 'patron_alert' : [ - ['render'], - function(e) { - return function() { - JSAN.use('util.widgets'); - util.widgets.remove_children( e ); - if (obj.patron.alert_message()) { - e.appendChild( - document.createTextNode( - obj.patron.alert_message() - ) - ); - e.parentNode.hidden = false; - } else { - e.parentNode.hidden = true; - } - }; - } - ], - 'patron_usrname' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value',obj.patron.usrname()); - }; - } - ], - 'patron_profile' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.OpenILS.data.hash.pgt[ - obj.patron.profile() - ].name() - ); - }; - } - ], - 'patron_net_access' : [ - ['render'], - function(e) { - return function() { - // not applicable to Conifer - }; - } - ], - 'patron_standing_penalties' : [ - ['render'], - function(e) { - return function() { - JSAN.use('util.widgets'); - util.widgets.remove_children(e); - var penalties = obj.patron.standing_penalties(); - if (penalties.length == 0) { - var row = document.createElement('row'); - var label = document.createElement('label'); - label.setAttribute('value',patronStrings.getString('staff.patron.summary.standing_penalty.none')); - addCSSClass(label,'NO_PENALTY'); - row.appendChild(label); - e.appendChild(row); + 'init' : function( params ) { + + var obj = this; + + obj.barcode = params['barcode']; + obj.id = params['id']; + if (params['show_name']) { + document.getElementById('patron_name').hidden = false; + document.getElementById('patron_name').setAttribute('hidden','false'); + } + + JSAN.use('OpenILS.data'); this.OpenILS = {}; + obj.OpenILS.data = new OpenILS.data(); obj.OpenILS.data.init({'via':'stash'}); + var obscure_dob = String( obj.OpenILS.data.hash.aous['circ.obscure_dob'] ) == 'true'; + + JSAN.use('util.functional'); JSAN.use('patron.util'); JSAN.use('util.list'); + + if (document.getElementById('group_list')) { + obj.group_list = new util.list('group_list'); + obj.group_list.init( { + 'columns' : [ + { 'id' : 'gl_family_name', 'flex' : 1, + 'label' : patronStrings.getString('staff.patron.summary.group_list.column.family_name.label'), + 'render' : function(my) { return my.family_name; } }, + { 'id' : 'gl_first_given_name', 'flex' : 1, + 'label' : patronStrings.getString('staff.patron.summary.group_list.column.first_given_name.label'), + 'render' : function(my) { return my.first_given_name; } }, + { 'id' : 'gl_second_given_name', 'flex' : 1, 'hidden' : true, + 'label' : patronStrings.getString('staff.patron.summary.group_list.column.second_given_name.label'), + 'render' : function(my) { return my.second_given_name; } }, + { 'id' : 'gl_home_lib', 'flex' : 1, 'hidden' : true, + 'label' : patronStrings.getString('staff.patron.summary.group_list.column.home_ou.label'), + 'render' : function(my) { return obj.OpenILS.data.hash.aou[ my.home_ou ].shortname(); } }, + { 'id' : 'gl_balance_owed', 'flex' : 1, 'sort_type' : 'money', + 'label' : patronStrings.getString('staff.patron.summary.group_list.column.balance_owed.label'), + 'render' : function(my) { return my.balance_owed; } } + ], + 'retrieve_row' : function(params) { + var id = params.retrieve_id; + var blob = patron.util.retrieve_name_via_id( ses(), id ); + var row = params.row; if (typeof row.my == 'undefined') { row.my = {}; } + row.my.family_name = blob[0]; + row.my.first_given_name = blob[1]; + row.my.second_given_name = blob[2]; + row.my.home_ou = blob[3]; + if (obj.group_owed[ id ]) { + row.my.balance_owed = obj.group_owed[ id ]; + } + if (typeof params.on_retrieve == 'function') { + params.on_retrieve(row); + } + return row; + } + } ); + $('group_list_actions').appendChild( obj.group_list.render_list_actions() ); + obj.group_list.set_list_actions(); + } + + if (document.getElementById('stat_cat_list')) { + obj.stat_cat_list = new util.list('stat_cat_list'); + obj.stat_cat_list.init( { + 'columns' : [].concat( + obj.stat_cat_list.fm_columns( 'actsc', { + 'actsc_id' : { 'hidden' : true }, + 'actsc_opac_visible' : { 'hidden' : true }, + 'actsc_usr_summary' : { 'hidden' : true } + } ) + ).concat( + obj.stat_cat_list.fm_columns( 'actscecm', { + 'actscecm_id' : { 'hidden' : true } + } ) + ) + } ); + $('stat_cat_list_actions').appendChild( obj.stat_cat_list.render_list_actions() ); + obj.stat_cat_list.set_list_actions(); + } + + JSAN.use('util.controller'); obj.controller = new util.controller(); + obj.controller.init( + { + control_map : { + 'cmd_broken' : [ + ['command'], + function() { alert($("commonStrings").getString('common.unimplemented')); } + ], + 'radio_address' : [ + ['render'], + function(e) { + return function() { + if (e.value == 'physical') { e.selectedIndex = 1; $('address_deck').selectedIndex = 1; } + }; + } + ], + 'group_tab' : [ + ['command'], + function() { + try { + if (! obj.group_frame_loaded) { + obj.group_frame(); + obj.group_frame_loaded = true; } - for (var i = 0; i < penalties.length; i++) { - - var row = document.createElement('row'); - var label = document.createElement('label'); - - //x.setAttribute('value',penalties[i].penalty_type()); - label.setAttribute('value',penalties[i].standing_penalty().label()); - row.appendChild(label); - - var button = document.createElement('button'); - button.setAttribute('label', patronStrings.getString('staff.patron.summary.standing_penalty.remove')); - button.setAttribute('image','/xul/server/skin/media/images/icon_delete.gif'); - button.setAttribute('disabled','true'); - button.setAttribute('hidden','true'); - button.setAttribute('retrieve_ausp_id',penalties[i].id()); - row.appendChild(button); - - // XXX check a permission here? How to fire the remove action ??? XXX - if (penalties[i].standing_penalty().id() > 100) { - button.setAttribute('disabled','false'); - button.setAttribute('hidden','false'); - button.addEventListener( - 'command', - function(ev) { - try { - JSAN.use('util.functional'); - var id = ev.target.getAttribute('retrieve_ausp_id'); - var penalty = util.functional.find_list( obj.patron.standing_penalties(), function(o) { return o.id() == id; } ); - penalty.isdeleted(1); - - var req = obj.network.simple_request( 'FM_AUSP_REMOVE', [ ses(), penalty ] ); - if (typeof req.ilsevent != 'undefined' || String(req) != '1') { - obj.error.standard_unexpected_error_alert( - patronStrings.getFormattedString( - 'staff.patron.standing_penalty.remove_error', - [obj.data.hash.csp[id].name()] - ), - req - ); - } - if (typeof xulG.refresh == 'function') { xulG.refresh(); } - } catch(F) { - obj.error.standard_unexpected_error_alert( - patronStrings.getFormattedString( - 'staff.patron.standing_penalty.remove_error', - [ev.target.getAttribute('retrieve_ausp_id')] - ), - F - ); - } - }, - false - ); + } catch(E) { + alert('Error in summary.js, group_tab: ' + E); + } + } + ], + 'stat_cat_tab' : [ + ['command'], + function() { + try { + var rows = $('patron_info_rows'); + obj.stat_cat_list.clear(); + var entries = obj.patron.stat_cat_entries(); + for (var i = 0; i < entries.length; i++) { + var stat_cat = obj.OpenILS.data.hash.my_actsc[ entries[i].stat_cat() ]; + if (!stat_cat) { + stat_cat = obj.OpenILS.data.lookup('actsc',entries[i].stat_cat()); } - - if (penalties[i].standing_penalty().block_list()) { - if (penalties[i].standing_penalty().block_list().match(/RENEW/)) addCSSClass(label,'PENALTY_RENEW'); - if (penalties[i].standing_penalty().block_list().match(/HOLD/)) addCSSClass(label,'PENALTY_HOLD'); - if (penalties[i].standing_penalty().block_list().match(/CIRC/)) addCSSClass(label,'PENALTY_CIRC'); + if (!stat_cat) { continue; } + // Every stat cat gets rendered in the Stat Cats tab + obj.stat_cat_list.append( { + 'row' : { + 'my' : { + 'actsc' : stat_cat, + 'actscecm' : entries[i], + } + } + } ); + // But only a proud few share the Patron Info pane + if (rows && get_bool( stat_cat.usr_summary() )) { + var row_id = 'stat_cat_id_' + stat_cat.id(); + var row; var label1; var label2; + if ($(row_id)) { + row = $(row_id); + label1 = row.firstChild; + label2 = row.lastChild; + } else { + row = document.createElement('row'); + row.setAttribute('id',row_id); + label1 = document.createElement('label'); + label2 = document.createElement('label'); + row.appendChild(label1); + row.appendChild(label2); + rows.appendChild(row); + } + label1.setAttribute('value',stat_cat.name()); + label1.setAttribute('tooltiptext','stat cat id ' + stat_cat.id()); + label2.setAttribute('value',entries[i].stat_cat_entry()); } - - e.appendChild(row); - } - }; - } - ], - 'patron_credit' : [ - ['render'], - function(e) { - return function() { - JSAN.use('util.money'); - e.setAttribute('value', - '$' + - util.money.sanitize( - obj.patron.credit_forward_balance() - ) - ); - }; - } - ], - 'patron_bill' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value','...'); + } + } catch(E) { + alert('Error in summary.js, stat_cat_tab: ' + E); + } + } + ], + 'spawn_group_interface' : [ + ['command'], + function() { + try { + window.xulG.spawn_group_interface(); + } catch(E) { + alert('Error in summary.js, spawn_group_interface: ' + E); + } + } + ], + 'group_tab_retrieve_patron' : [ + ['command'], + function() { + var selected_ids = util.functional.map_list( + obj.group_list.retrieve_selection(), + function(o) { + return o.getAttribute('retrieve_id'); + } + ); + for (var i = 0; i < selected_ids.length; i++) { + try { + window.xulG.new_patron_tab( + { 'tab_name' : patronStrings.getString('staff.patron.info_group.retrieve_patron.tab_name') }, + { + 'id' : selected_ids[i], + 'url_prefix' : xulG.url_prefix, + 'new_tab' : xulG.new_tab, + 'set_tab' : xulG.set_tab + } + ); + } catch(E) { + alert('Error in summary.js, group_tab_retrieve_patron: ' + E); + } + } + } + ], + 'patron_alert' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text( e, obj.patron.alert_message() || '' ); + if (obj.patron.alert_message()) { + e.parentNode.hidden = false; + } else { + e.parentNode.hidden = true; + } + }; + } + ], + 'patron_usrname' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e,obj.patron.usrname()); + }; + } + ], + 'patron_profile' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.OpenILS.data.hash.pgt[ + obj.patron.profile() + ].name() + ); + }; + } + ], + 'patron_net_access' : [ + ['render'], + function(e) { + // not applicable to Conifer + } + ], + 'patron_credit' : [ + ['render'], + function(e) { + return function() { + JSAN.use('util.money'); + util.widgets.set_text(e, + '$' + + util.money.sanitize( + obj.patron.credit_forward_balance() + ) + ); + }; + } + ], + 'patron_bill' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e,'...'); var under_btn; if (xulG) { if (xulG.display_window) { under_btn = xulG.display_window.document.getElementById('under_bills'); - if (under_btn) under_btn.setAttribute('value','...'); + if (under_btn) util.widgets.set_text(under_btn,'...'); } } - obj.network.simple_request( - 'FM_MOUS_RETRIEVE.authoritative', - [ ses(), obj.patron.id() ], - function(req) { - JSAN.use('util.money'); - var robj = req.getResultObject(); - e.setAttribute('value', patronStrings.getFormattedString('staff.patron.summary.patron_bill.money', [util.money.sanitize( robj.balance_owed() )])); - if (under_btn) under_btn.setAttribute('value', - patronStrings.getFormattedString('staff.patron.summary.patron_bill.money', [util.money.sanitize( robj.balance_owed() )])); - } - ); - /* - obj.network.simple_request( - 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE.authoritative', - [ ses(), obj.patron.id() ], - function(req) { - JSAN.use('util.money'); - var list = req.getResultObject(); - if (typeof list.ilsevent != 'undefined') { - e.setAttribute('value', '??? See Bills'); - return; - } - var sum = 0; - for (var i = 0; i < list.length; i++) { - var robj = typeof list[i] == 'object' ? list[i] : obj.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),list[i]]); - sum += util.money.dollars_float_to_cents_integer( robj.balance_owed() ); - } - if (sum > 0) addCSSClass(document.documentElement,'PATRON_HAS_BILLS'); - JSAN.use('util.money'); - e.setAttribute('value', '$' + util.money.sanitize( util.money.cents_as_dollars( sum ) )); - } - ); - */ - }; - } - ], - 'patron_checkouts' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value','...'); - var e2 = document.getElementById( 'patron_overdue' ); if (e2) e2.setAttribute('value','...'); - var e3 = document.getElementById( 'patron_claimed_returned' ); if (e3) e3.setAttribute('value','...'); - var e4 = document.getElementById( 'patron_long_overdue' ); if (e4) e4.setAttribute('value','...'); - var e5 = document.getElementById( 'patron_lost' ); if (e5) e5.setAttribute('value','...'); - var e6 = document.getElementById( 'patron_noncat' ); if (e6) e6.setAttribute('value','...'); + obj.network.simple_request( + 'BLOB_BALANCE_OWED_VIA_USERGROUP', + [ ses(), obj.patron.usrgroup() ], + function(req) { + try { + JSAN.use('util.money'); + var robj = req.getResultObject(); + if (typeof robj.ilsevent != 'undefined') { throw(robj); } + + var sum = 0; /* in cents */ + obj.group_owed = {}; + + function render_main_patron_bill_summary(bs) { + try { + util.widgets.set_text( + e, + patronStrings.getFormattedString('staff.patron.summary.patron_bill.money', [util.money.sanitize( bs.balance_owed )]) + ); + if (under_btn) { + util.widgets.set_text( + under_btn, + patronStrings.getFormattedString('staff.patron.summary.patron_bill.money', [util.money.sanitize( bs.balance_owed )]) + ); + } + var show_billing_tab_on_bills = String( obj.OpenILS.data.hash.aous['ui.circ.show_billing_tab_on_bills'] ) == 'true'; + if (show_billing_tab_on_bills && Number(bs.balance_owed) > 0) { + if (xulG) { + if (xulG.display_window) { + if (! obj.show_billing_tab_on_bills_done_once ) { + xulG.display_window.g.patron.skip_hide_summary = true; + xulG.display_window.util.widgets.dispatch('command','cmd_patron_bills'); + obj.show_billing_tab_on_bills_done_once = 1; + } + } + } + }; + obj.bills_summary = bs; + if (obj.holds_summary && obj.bills_summary) { + if (typeof window.xulG == 'object' && typeof window.xulG.stop_sign_page == 'function') { + window.xulG.stop_sign_page( obj.patron, { 'holds_summary' : obj.holds_summary, 'bills_summary' : obj.bills_summary } ); + } + } + } catch(E) { + alert('Error in summary.js, render_main_patron_bill_summary(): ' + E); + } + } + + var rendered_main_patron_bill_summary = false; + for (var i = 0; i < robj.length; i++) { + if (robj[i].usr == obj.patron.id()) { + render_main_patron_bill_summary( robj[i] ); + rendered_main_patron_bill_summary = true; + } else { + sum += util.money.dollars_float_to_cents_integer( robj[i].balance_owed ); + obj.group_owed[ robj[i].usr ] = robj[i].balance_owed; + } + } + if (!rendered_main_patron_bill_summary) { + render_main_patron_bill_summary( { balance_owed: 0.00, usr: obj.patron.id() } ); + } + var tab = $('group_tab'); + if (tab) { + if (sum > 0) { + addCSSClass(tab,'balance_owed'); + } else { + removeCSSClass(tab,'balance_owed'); + } + tab.setAttribute( + 'label', + patronStrings.getFormattedString('staff.patron.summary.tab.group_list_with_total_owed.label',[ util.money.cents_as_dollars( sum ) ]) + ); + } + } catch(E) { + alert('Error in summary.js, patron_bill callback: ' + E); + } + } + ); + }; + } + ], + 'patron_checkouts' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e,'...'); + var e2 = document.getElementById( 'patron_overdue' ); if (e2) util.widgets.set_text(e2,'...'); + var e3 = document.getElementById( 'patron_claimed_returned' ); if (e3) util.widgets.set_text(e3,'...'); + var e4 = document.getElementById( 'patron_long_overdue' ); if (e4) util.widgets.set_text(e4,'...'); + var e5 = document.getElementById( 'patron_lost' ); if (e5) util.widgets.set_text(e5,'...'); + var e6 = document.getElementById( 'patron_noncat' ); if (e6) util.widgets.set_text(e6,'...'); var under_btn; if (xulG) { if (xulG.display_window) { under_btn = xulG.display_window.document.getElementById('under_items'); - if (under_btn) under_btn.setAttribute('value','...'); + if (under_btn) util.widgets.set_text(under_btn,'...'); } } - obj.network.simple_request( - 'FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative', - [ ses(), obj.patron.id() ], - function(req) { - try { - var robj = req.getResultObject(); - e.setAttribute('value', robj.out + robj.overdue + robj.claims_returned + robj.long_overdue ); - if (e2) e2.setAttribute('value', robj.overdue ); - if (e3) e3.setAttribute('value', robj.claims_returned ); - if (e4) e4.setAttribute('value', robj.long_overdue ); - if (e5) e5.setAttribute('value', robj.lost ); - if (under_btn) under_btn.setAttribute('value', - String( robj.out + robj.overdue + robj.claims_returned + robj.long_overdue) + - ( robj.overdue > 0 || robj.claims_returned > 0 || robj.long_overdue > 0 ? '*' : '' ) + obj.network.simple_request( + 'FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative', + [ ses(), obj.patron.id() ], + function(req) { + try { + var robj = req.getResultObject(); + var do_not_tally_claims_returned = String( obj.OpenILS.data.hash.aous['circ.do_not_tally_claims_returned'] ) == 'true'; + util.widgets.set_text(e, + robj.out + + robj.overdue + + (do_not_tally_claims_returned ? 0 : robj.claims_returned) + + robj.long_overdue + ); + if (e2) util.widgets.set_text(e2, robj.overdue ); + if (e3) util.widgets.set_text(e3, robj.claims_returned ); + if (e4) util.widgets.set_text(e4, robj.long_overdue ); + if (e5) util.widgets.set_text(e5, robj.lost ); + if (under_btn) util.widgets.set_text(under_btn, + String( + robj.out + + robj.overdue + + (do_not_tally_claims_returned ? 0 : robj.claims_returned) + + robj.long_overdue + ) + /* + ( robj.overdue > 0 ? '*' : '' ) */ ); - } catch(E) { - alert(E); - } - } - ); - obj.network.simple_request( - 'FM_ANCC_RETRIEVE_VIA_USER.authoritative', - [ ses(), obj.patron.id() ], - function(req) { - var robj = req.getResultObject(); - if (e6) e6.setAttribute('value',robj.length); - } - ); - }; - } - ], - 'patron_overdue' : [ - ['render'], - function(e) { - return function() { - /* handled by 'patron_checkouts' */ - }; - } - ], - 'patron_holds' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value','...'); - var e2 = document.getElementById('patron_holds_available'); - if (e2) e2.setAttribute('value','...'); + } catch(E) { + alert(E); + } + } + ); + obj.network.simple_request( + 'FM_ANCC_RETRIEVE_VIA_USER.authoritative', + [ ses(), obj.patron.id() ], + function(req) { + var robj = req.getResultObject(); + if (e6) util.widgets.set_text(e6,robj.length); + } + ); + }; + } + ], + 'patron_overdue' : [ + ['render'], + function(e) { + return function() { + /* handled by 'patron_checkouts' */ + }; + } + ], + 'patron_holds' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e,'...'); + var e2 = document.getElementById('patron_holds_available'); + if (e2) util.widgets.set_text(e2,'...'); var under_btn; if (xulG) { if (xulG.display_window) { under_btn = xulG.display_window.document.getElementById('under_holds'); - if (under_btn) under_btn.setAttribute('value','...'); + if (under_btn) util.widgets.set_text(under_btn,'...'); + } + } + obj.network.simple_request( + 'FM_AHR_COUNT_RETRIEVE.authoritative', + [ ses(), obj.patron.id() ], + function(req) { + var robj = req.getResultObject(); + util.widgets.set_text(e, + robj.total + ); + if (e2) util.widgets.set_text(e2, + robj.ready + ); + if (under_btn) util.widgets.set_text(under_btn, req.getResultObject().ready + '/' + req.getResultObject().total ); + obj.holds_summary = robj; + if (obj.holds_summary && obj.bills_summary) + if (typeof window.xulG == 'object' && typeof window.xulG.stop_sign_page == 'function') + window.xulG.stop_sign_page( obj.patron, { 'holds_summary' : obj.holds_summary, 'bills_summary' : obj.bills_summary } ); } + ); + }; + } + ], + 'patron_holds_available' : [ + ['render'], + function(e) { + return function() { + /* handled by 'patron_holds' */ + }; + } + ], + 'patron_card' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.card().barcode() + ); + }; + } + ], + 'patron_ident_type_1' : [ + ['render'], + function(e) { + return function() { + var ident_string = ''; + var ident = obj.OpenILS.data.hash.cit[ + obj.patron.ident_type() + ]; + if (ident) ident_string = ident.name() + util.widgets.set_text(e, + ident_string + ); + }; + } + ], + 'patron_ident_value_1' : [ + ['render'], + function(e) { + return function() { + var val = obj.patron.ident_value(); + if (val) val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); // must avoid val.replace if val is NULL + util.widgets.set_text(e, val); + }; + } + ], + 'patron_ident_type_2' : [ + ['render'], + function(e) { + return function() { + var ident_string = ''; + var ident = obj.OpenILS.data.hash.cit[ + obj.patron.ident_type2() + ]; + if (ident) ident_string = ident.name() + util.widgets.set_text(e, + ident_string + ); + }; + } + ], + 'patron_ident_value_2' : [ + ['render'], + function(e) { + return function() { + var val = obj.patron.ident_value2(); + if (val) val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); // must avoid val.replace if val is NULL + util.widgets.set_text(e, val); + }; + } + ], + 'patron_date_of_exp' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + patronStrings.getString('staff.patron.summary.expires_on') + ' ' + ( + obj.patron.expire_date() ? + util.date.formatted_date( obj.patron.expire_date(), '%{localized_date}' ) : + patronStrings.getString('staff.patron.field.unset') + ) + ); + }; + } + ], + 'patron_hold_alias' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.alias() ? obj.patron.alias() : '' + ); + } + } + ], + 'patron_date_of_birth' : [ + ['render'], + function(e) { + // not applicable to Conifer + } + ], + 'patron_day_phone' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.day_phone() + ); + }; + } + ], + 'patron_evening_phone' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.evening_phone() + ); + }; + } + ], + 'patron_other_phone' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.other_phone() + ); + }; + } + ], + 'patron_email' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.email() + ); + }; + } + ], + 'patron_alias' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.patron.alias() + ); + }; + } + ], + 'patron_photo_url' : [ + ['render'], + function(e) { + return function() { + e.setAttribute('src', + obj.patron.photo_url() + ); + }; + } + ], + 'patron_library' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.OpenILS.data.hash.aou[ + obj.patron.home_ou() + ].shortname() + ); + e.setAttribute('tooltiptext', + obj.OpenILS.data.hash.aou[ + obj.patron.home_ou() + ].name() + ); + }; + } + ], + 'patron_last_library' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + obj.OpenILS.data.hash.aou[ + obj.patron.home_ou() + ].shortname() + ); + e.setAttribute('tooltiptext', + obj.OpenILS.data.hash.aou[ + obj.patron.home_ou() + ].name() + ); + }; + } + ], + 'patron_mailing_address_street1' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.mailing_address()) { + util.widgets.set_text(e, + obj.patron.mailing_address().street1() + ); + if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_mailing_address_street2' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.mailing_address()) { + util.widgets.set_text(e, + obj.patron.mailing_address().street2() + ); + if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_mailing_address_city' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.mailing_address()) { + util.widgets.set_text(e, + obj.patron.mailing_address().city() + ); + if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_mailing_address_state' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.mailing_address()) { + util.widgets.set_text(e, + obj.patron.mailing_address().state() + ); + if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_mailing_address_post_code' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.mailing_address()) { + util.widgets.set_text(e, + obj.patron.mailing_address().post_code() + ); + if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_physical_address_street1' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.billing_address()) { + util.widgets.set_text(e, + obj.patron.billing_address().street1() + ); + if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_physical_address_street2' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.billing_address()) { + util.widgets.set_text(e, + obj.patron.billing_address().street2() + ); + if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_physical_address_city' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.billing_address()) { + util.widgets.set_text(e, + obj.patron.billing_address().city() + ); + if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_physical_address_state' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.billing_address()) { + util.widgets.set_text(e, + obj.patron.billing_address().state() + ); + if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); + } + }; + } + ], + 'patron_physical_address_post_code' : [ + ['render'], + function(e) { + return function() { + if (obj.patron.billing_address()) { + util.widgets.set_text(e, + obj.patron.billing_address().post_code() + ); + if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} + } else { + util.widgets.set_text(e,''); } - obj.network.simple_request( - 'FM_AHR_COUNT_RETRIEVE.authoritative', - [ ses(), obj.patron.id() ], - function(req) { - e.setAttribute('value', - req.getResultObject().total - ); - if (e2) e2.setAttribute('value', - req.getResultObject().ready - ); - if (under_btn) under_btn.setAttribute( 'value', req.getResultObject().ready + '/' + req.getResultObject().total ); - } - ); - }; - } - ], - 'patron_holds_available' : [ - ['render'], - function(e) { - return function() { - /* handled by 'patron_holds' */ - }; - } - ], - 'patron_card' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.card().barcode() - ); - }; - } - ], - 'patron_ident_type_1' : [ - ['render'], - function(e) { - return function() { - var ident_string = ''; - var ident = obj.OpenILS.data.hash.cit[ - obj.patron.ident_type() - ]; - if (ident) ident_string = ident.name() - e.setAttribute('value', - ident_string - ); - }; - } - ], - 'patron_ident_value_1' : [ - ['render'], - function(e) { - return function() { - var val = obj.patron.ident_value(); - val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); - e.setAttribute('value', val); - }; - } - ], - 'patron_ident_type_2' : [ - ['render'], - function(e) { - return function() { - var ident_string = ''; - var ident = obj.OpenILS.data.hash.cit[ - obj.patron.ident_type2() - ]; - if (ident) ident_string = ident.name() - e.setAttribute('value', - ident_string - ); - }; - } - ], - 'patron_ident_value_2' : [ - ['render'], - function(e) { - return function() { - var val = obj.patron.ident_value2(); - val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); - e.setAttribute('value', val); - }; - } - ], - 'patron_date_of_exp' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - patronStrings.getString('staff.patron.summary.expires_on') + ' ' + ( - obj.patron.expire_date() ? - obj.patron.expire_date().substr(0,10) : - patronStrings.getString('staff.patron.field.unset') - ) - ); - }; - } - ], - 'patron_date_of_birth' : [ - ['render'], - function(e) { - return function() { - // not applicable to Conifer - }; - } - ], - 'patron_day_phone' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.day_phone() - ); - }; - } - ], - 'patron_evening_phone' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.evening_phone() - ); - }; - } - ], - 'patron_other_phone' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.other_phone() - ); - }; - } - ], - 'patron_email' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.email() - ); - }; - } - ], - 'patron_alias' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.alias() - ); - }; - } - ], - 'patron_photo_url' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('src', - obj.patron.photo_url() - ); - }; - } - ], - 'patron_library' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.OpenILS.data.hash.aou[ - obj.patron.home_ou() - ].shortname() - ); - e.setAttribute('tooltiptext', - obj.OpenILS.data.hash.aou[ - obj.patron.home_ou() - ].name() - ); - }; - } - ], - 'patron_last_library' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.OpenILS.data.hash.aou[ - obj.patron.home_ou() - ].shortname() - ); - e.setAttribute('tooltiptext', - obj.OpenILS.data.hash.aou[ - obj.patron.home_ou() - ].name() - ); - }; - } - ], - 'patron_mailing_address_street1' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.mailing_address().street1() - ); - if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_mailing_address_street2' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.mailing_address().street2() - ); - if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_mailing_address_city' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.mailing_address().city() - ); - if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_mailing_address_state' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.mailing_address().state() - ); - if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_mailing_address_post_code' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.mailing_address().post_code() - ); - if (!get_bool(obj.patron.mailing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_physical_address_street1' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.billing_address().street1() - ); - if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_physical_address_street2' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.billing_address().street2() - ); - if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_physical_address_city' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.billing_address().city() - ); - if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_physical_address_state' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.billing_address().state() - ); - if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ], - 'patron_physical_address_post_code' : [ - ['render'], - function(e) { - return function() { - e.setAttribute('value', - obj.patron.billing_address().post_code() - ); - if (!get_bool(obj.patron.billing_address().valid())){e.setAttribute('style','color: red');} - }; - } - ] - } - } - ); - - obj.retrieve(); - - try { - var caption = document.getElementById("PatronSummaryContact_caption"); - var arrow = document.getAnonymousNodes(caption)[0]; - var gb_content = document.getAnonymousNodes(caption.parentNode)[1]; - arrow.addEventListener( - 'click', - function() { - setTimeout( - function() { - //alert('setting shrink_state to ' + gb_content.hidden); - //caption.setAttribute('shrink_state',gb_content.hidden); - netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); - JSAN.use('util.file'); var file = new util.file('patron_id_shrink'); - file.set_object(String(gb_content.hidden)); file.close(); - }, 0 - ); - }, false - ); - //var shrink_state = caption.getAttribute('shrink_state'); - var shrink_state = false; - netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); - JSAN.use('util.file'); var file = new util.file('patron_id_shrink'); - if (file._file.exists()) { - shrink_state = file.get_object(); file.close(); - } - //alert('shrink_state retrieved as ' + shrink_state); - if (shrink_state != 'false' && shrink_state) { - JSAN.use('util.widgets'); - //alert('clicking the widget'); - util.widgets.click( arrow ); - } - } catch(E) { - obj.error.sdump('D_ERROR','with shrink_state in summary.js: ' + E); - } - }, - - 'retrieve' : function() { - - try { - - var obj = this; - - var chain = []; - - // Retrieve the patron - function blah_retrieve() { - try { - var robj; - if (obj.barcode && obj.barcode != 'null') { - robj = obj.network.simple_request( - 'FM_AU_RETRIEVE_VIA_BARCODE.authoritative', - [ ses(), obj.barcode ] - ); - } else if (obj.id && obj.id != 'null') { - robj = obj.network.simple_request( - 'FM_AU_FLESHED_RETRIEVE_VIA_ID.authoritative', - [ ses(), obj.id ] - ); - } else { - throw(patronStrings.getString('staff.patron.summary.retrieve.no_barcode')); - } - if (robj) { - - if (instanceOf(robj,au)) { - - obj.patron = robj; - JSAN.use('patron.util'); - document.getElementById('patron_name').setAttribute('value', - ( obj.patron.prefix() ? obj.patron.prefix() + ' ' : '') + - obj.patron.family_name() + ', ' + - obj.patron.first_given_name() + ' ' + - ( obj.patron.second_given_name() ? obj.patron.second_given_name() + ' ' : '' ) + - ( obj.patron.suffix() ? obj.patron.suffix() : '') - ); - patron.util.set_penalty_css(obj.patron); - JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'}); - data.last_patron = obj.patron.id(); data.stash('last_patron'); - - } else { - - throw(robj); - - } - } else { - - throw(robj); - - } - - } catch(E) { - throw(E); - } - }; - blah_retrieve(); - - /* - // Retrieve the survey responses for required surveys - chain.push( - function() { - try { - var surveys = obj.OpenILS.data.list.my_asv; - var survey_responses = {}; - for (var i = 0; i < surveys.length; i++) { - var s = obj.network.request( - api.FM_ASVR_RETRIEVE.app, - api.FM_ASVR_RETRIEVE.method, - [ ses(), surveys[i].id(), obj.patron.id() ] - ); - survey_responses[ surveys[i].id() ] = s; - } - obj.patron.survey_responses( survey_responses ); - } catch(E) { - var error = ('patron.summary.retrieve : ' + js2JSON(E)); - obj.error.sdump('D_ERROR',error); - throw(error); - } - } - ); - */ - - // Update the screen - chain.push( function() { obj.controller.render(); } ); - - // On Complete - - chain.push( function() { - - if (typeof window.xulG == 'object' && typeof window.xulG.on_finished == 'function') { - obj.error.sdump('D_PATRON_SUMMARY', - 'patron.summary: Calling external .on_finished()\n'); - window.xulG.on_finished(obj.patron); - } else { - obj.error.sdump('D_PATRON_SUMMARY','patron.summary: No external .on_finished()\n'); - } - - } ); - - // Do it - JSAN.use('util.exec'); obj.exec = new util.exec(); - obj.exec.on_error = function(E) { - - if (typeof window.xulG == 'object' && typeof window.xulG.on_error == 'function') { - window.xulG.on_error(E); - } else { - alert(js2JSON(E)); - } - - } - this.exec.chain( chain ); - - } catch(E) { - if (typeof window.xulG == 'object' && typeof window.xulG.on_error == 'function') { - window.xulG.on_error(E); - } else { - alert(js2JSON(E)); - } - } - } + }; + } + ] + } + } + ); + + obj.retrieve(); + + try { + var caption = document.getElementById("PatronSummaryContact_caption"); + var arrow = document.getAnonymousNodes(caption)[0]; + var gb_content = document.getAnonymousNodes(caption.parentNode)[1]; + arrow.addEventListener( + 'click', + function() { + setTimeout( + function() { + //alert('setting shrink_state to ' + gb_content.hidden); + //caption.setAttribute('shrink_state',gb_content.hidden); + netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); + JSAN.use('util.file'); var file = new util.file('patron_id_shrink'); + file.set_object(String(gb_content.hidden)); file.close(); + }, 0 + ); + }, false + ); + //var shrink_state = caption.getAttribute('shrink_state'); + var shrink_state = false; + netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); + JSAN.use('util.file'); var file = new util.file('patron_id_shrink'); + if (file._file.exists()) { + shrink_state = file.get_object(); file.close(); + } + //alert('shrink_state retrieved as ' + shrink_state); + if (shrink_state != 'false' && shrink_state) { + //alert('clicking the widget'); + util.widgets.click( arrow ); + } + } catch(E) { + obj.error.sdump('D_ERROR','with shrink_state in summary.js: ' + E); + } + }, + + 'retrieve' : function() { + + try { + + var obj = this; + + var chain = []; + + // Retrieve the patron + function blah_retrieve() { + try { + var robj; + if (obj.barcode && obj.barcode != 'null') { + robj = obj.network.simple_request( + 'FM_AU_RETRIEVE_VIA_BARCODE.authoritative', + [ ses(), obj.barcode ] + ); + } else if (obj.id && obj.id != 'null') { + robj = obj.network.simple_request( + 'FM_AU_FLESHED_RETRIEVE_VIA_ID', + [ ses(), obj.id ] + ); + } else { + throw(patronStrings.getString('staff.patron.summary.retrieve.no_barcode')); + } + if (robj) { + + if (instanceOf(robj,au)) { + + obj.patron = robj; + JSAN.use('patron.util'); + util.widgets.set_text('patron_name', + patron.util.format_name( obj.patron ) + ); + patron.util.set_penalty_css(obj.patron); + JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'}); + data.last_patron = obj.patron.id(); data.stash('last_patron'); + + } else { + + throw(robj); + + } + } else { + + throw(robj); + + } + + } catch(E) { + throw(E); + } + }; + blah_retrieve(); + + /* + // Retrieve the survey responses for required surveys + chain.push( + function() { + try { + var surveys = obj.OpenILS.data.list.my_asv; + var survey_responses = {}; + for (var i = 0; i < surveys.length; i++) { + var s = obj.network.request( + api.FM_ASVR_RETRIEVE.app, + api.FM_ASVR_RETRIEVE.method, + [ ses(), surveys[i].id(), obj.patron.id() ] + ); + survey_responses[ surveys[i].id() ] = s; + } + obj.patron.survey_responses( survey_responses ); + } catch(E) { + var error = ('patron.summary.retrieve : ' + js2JSON(E)); + obj.error.sdump('D_ERROR',error); + throw(error); + } + } + ); + */ + + // Update the screen + chain.push( function() { + obj.controller.render(); + if ($('stat_cat_tab')) { + util.widgets.dispatch('command','stat_cat_tab'); + } + } ); + + // On Complete + + chain.push( function() { + + if (typeof window.xulG == 'object' && typeof window.xulG.on_finished == 'function') { + obj.error.sdump('D_PATRON_SUMMARY', + 'patron.summary: Calling external .on_finished()\n'); + window.xulG.on_finished(obj.patron); + } else { + obj.error.sdump('D_PATRON_SUMMARY','patron.summary: No external .on_finished()\n'); + } + + } ); + + // Do it + JSAN.use('util.exec'); obj.exec = new util.exec(); + obj.exec.on_error = function(E) { + + if (typeof window.xulG == 'object' && typeof window.xulG.on_error == 'function') { + window.xulG.on_error(E); + } else { + alert(js2JSON(E)); + } + + } + this.exec.chain( chain ); + + } catch(E) { + if (typeof window.xulG == 'object' && typeof window.xulG.on_error == 'function') { + window.xulG.on_error(E); + } else { + alert(js2JSON(E)); + } + } + }, + + 'group_frame' : function() { + var obj = this; + try { + obj.group_list.clear(); + + var robj = obj.network.simple_request( + 'FM_AU_LIST_RETRIEVE_VIA_GROUP.authoritative', + [ ses(), obj.patron.usrgroup() ] + ); + if ((robj == null) || (typeof robj.ilsevent != 'undefined') ) throw(robj); + var ids = util.functional.filter_list( robj, function(o) { return o != obj.patron.id(); }); + var funcs = []; + + function gen_func(r) { + return function() { + obj.group_list.append( { 'retrieve_id' : r, 'row' : {} } ); + } + } + + //funcs.push( gen_func(obj.patron.id()) ); + for (var i = 0; i < ids.length; i++) { + funcs.push( gen_func(ids[i]) ); + } + JSAN.use('util.exec'); var exec = new util.exec(4); + exec.chain( funcs ); + } catch(E) { + alert('Error in summary.js, group_frame(): ' + E); + } + } } dump('exiting patron.summary.js\n'); diff --git a/xul/server/patron/summary_overlay.xul b/xul/server/patron/summary_overlay.xul index 0d77dff8dd..db892933a2 100644 --- a/xul/server/patron/summary_overlay.xul +++ b/xul/server/patron/summary_overlay.xul @@ -1,221 +1,231 @@ + ]> + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> - + - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + + + + + + + + - - - - diff --git a/xul/server/patron/ue.xhtml b/xul/server/patron/ue.xhtml deleted file mode 100644 index 9cd540bfd4..0000000000 --- a/xul/server/patron/ue.xhtml +++ /dev/null @@ -1,923 +0,0 @@ - - - - -]> - - - - - &ev.staff.patron.ue_xhtml.ev_user_editor.label; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- -

&ev.staff.patron.ue_xhtml.ev_user_editor.label;

- -
- &ev.staff.patron.ue_xhtml.welcome.label; -
- -

- -
- - - - - - - - -
- - &staff.patron.ue.interface_note.label; - - - - &ev.staff.patron.ue_xhtml.view_errors.label; - -
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- &ev.staff.patron.ue_xhtml.loading_data.label; -
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&ev.staff.patron.ue_xhtml.barcode.label;
-
- - - -
-
&ev.staff.patron.ue_xhtml.username.label;
&ev.staff.patron.ue_xhtml.password.label;
-
- - - - &ev.staff.patron.ue_xhtml.re_password.label; - - -
-
&ev.staff.patron.ue_xhtml.verify_password.label;
&ev.staff.patron.ue_xhtml.first_name.label;
&ev.staff.patron.ue_xhtml.middle_name.label;
&ev.staff.patron.ue_xhtml.last_name.label;
&ev.staff.patron.ue_xhtml.alias.label;
&ev.staff.patron.ue_xhtml.primary_id_type.label;
- -
-
&ev.staff.patron.ue_xhtml.primary_id.label;
-
- - - - - -
-
&ev.staff.patron.ue_xhtml.parent_guardian.label;
-
- - - - - -
-
-
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
&ev.staff.patron.ue_xhtml.email_address.label;
&ev.staff.patron.ue_xhtml.daytime_phone.label;
-
- - &ev.staff.patron.ue_xhtml.phone_example; -
-
&ev.staff.patron.ue_xhtml.evening_phone.label;
-
- -
-
&ev.staff.patron.ue_xhtml.other_phone.label;
-
- -
-
&ev.staff.patron.ue_xhtml.home_library.label;
-
-
-
- - - - -
- - - - - - - - - - - - - - - - - - - -
&ev.staff.patron.ue_xhtml.address.label;&ev.staff.patron.ue_xhtml.in_city_limits.label;&ev.staff.patron.ue_xhtml.valid.label;&ev.staff.patron.ue_xhtml.mailing_address.label;&ev.staff.patron.ue_xhtml.physical_address.label;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- * - &ev.staff.patron.ue_xhtml.address_owned_by.label; - - - (&ev.staff.patron.ue_xhtml.edit.label;) - -
-
&ev.staff.patron.ue_xhtml.label.label;
-
- -
-
&ev.staff.patron.ue_xhtml.zip.label;
-
- -
-
&ev.staff.patron.ue_xhtml.street1.label;
-
- -
-
&ev.staff.patron.ue_xhtml.street2.label;
-
- -
-
&ev.staff.patron.ue_xhtml.city.label;
-
- -
-
&ev.staff.patron.ue_xhtml.conuty.label;
-
- -
-
&ev.staff.patron.ue_xhtml.state.label;
-
- -
-
&ev.staff.patron.ue_xhtml.country.label;
-
- -
-
-
- - - - -
-
-
-
-
-
-
- -
-
-
- -
-
- -
- - -
-
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&ev.staff.patron.ue_xhtml.profile_group.label;
-
- -
-
&ev.staff.patron.ue_xhtml.account_expiration_date.label;
-
- - - - - (YYYY-MM-DD) - -
-
&ev.staff.patron.ue_xhtml.net_access_level.label;
-
- -
-
&ev.staff.patron.ue_xhtml.active.label;
-
- -
-
&ev.staff.patron.ue_xhtml.barred.label;
-
- -
-
&ev.staff.patron.ue_xhtml.set_family_group_lead_account.label;
-
- -
-
&ev.staff.patron.ue_xhtml.claims_returned_count.label;
-
- - - -
-
&ev.staff.patron.ue_xhtml.alert_message.label;
-
-