this.chain.push(
function() {
var f = gen_fm_retrieval_func(
+ 'cnal',
+ [
+ api.FM_CNAL_RETRIEVE.app,
+ api.FM_CNAL_RETRIEVE.method,
+ [ obj.session.key ],
+ false
+ ]
+ );
+ try {
+ f();
+ } catch(E) {
+ var error = 'Error: ' + js2JSON(E);
+ obj.error.sdump('D_ERROR',error);
+ throw(E);
+ }
+ }
+ );
+
+ this.chain.push(
+ function() {
+ var f = gen_fm_retrieval_func(
'au',
[
api.FM_AU_RETRIEVE_VIA_SESSION.app,
'FM_CIRC_EDIT_DUE_DATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.due_date.update' },
'FM_CIT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.ident_types.retrieve' },
'FM_CITM_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.item_type_map.retrieve.all' },
+ 'FM_CNAL_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.net_access_level.retrieve.all' },
'FM_CNCT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_types.retrieve.all' },
'FM_CRAHP_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.config.rules.age_hold_protect.retrieve.all' },
'FM_CST_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.standings.retrieve' },
};
}
],
+ 'patron_net_access' : [
+ ['render'],
+ function(e) {
+ return function() {
+ e.setAttribute('value',
+ 'Internet: ' +
+ obj.OpenILS.data.hash.cnal[
+ obj.patron.net_access_level()
+ ].name()
+ );
+ };
+ }
+ ],
'patron_standing' : [
['render'],
function(e) {