var dataobj = hint;
var datafield = my_field.name;
if (column_extras) {
+ if (column_extras['*']) {
+ if (column_extras['*']['dataobj']) {
+ dataobj = column_extras['*']['dataobj'];
+ }
+ }
if (column_extras[col_id]) {
if (column_extras[col_id]['dataobj']) {
dataobj = column_extras[col_id]['dataobj'];
if (column_extras['*']['expanded_label']) {
def.label = my_class.label + ': ' + def.label;
}
+ if (column_extras['*']['label_prefix']) {
+ def.label = column_extras['*']['label_prefix'] + def.label;
+ }
if (column_extras['*']['remove_virtual']) {
if (my_field.virtual) {
def.remove_me = true;
if (column_extras[col_id]['keep_me']) {
def.remove_me = false;
}
+ if (column_extras[col_id]['label_prefix']) {
+ def.label = column_extras[col_id]['label_prefix'] + def.label;
+ }
}
}
if (def.remove_me) {
staff.patron.search_result.init.search_print=patron search print
staff.patron.search_result.init.search_clipboard=patron search clipboard
staff.patron.search_result.init.search_saving_columns=patron search saving columns
+staff.patron.search_result.mailing_address_column_label_prefix=Mailing Addr:
+staff.patron.search_result.billing_address_column_label_prefix=Billing Addr:
staff.patron.summary.patron_bill.money=$ %1$s
staff.patron.summary.retrieve.no_barcode=summary: No barcode or ID
staff.patron.summary.patron_net_access=Internet
'*' : { 'remove_virtual' : true, 'expanded_label' : true, 'hidden' : true },
'ac_barcode' : { 'hidden' : false }
})
+ ).concat(
+ obj.list.fm_columns('aua',{
+ '*' : {
+ 'dataobj' : 'billing_aua',
+ 'remove_virtual' : true,
+ 'label_prefix' : $('patronStrings').getString('staff.patron.search_result.billing_address_column_label_prefix'),
+ 'hidden' : true
+ }
+ },'billing_')
+ ).concat(
+ obj.list.fm_columns('aua',{
+ '*' : {
+ 'dataobj' : 'mailing_aua',
+ 'remove_virtual' : true,
+ 'label_prefix' : $('patronStrings').getString('staff.patron.search_result.mailing_address_column_label_prefix'),
+ 'hidden' : true
+ }
+ },'mailing_')
);
obj.list.init(
if (typeof row.my == 'undefined') row.my = {};
row.my.au = req.getResultObject();
row.my.ac = row.my.au.card();
+ row.my.billing_aua = row.my.au.billing_address();
+ row.my.mailing_aua = row.my.au.mailing_address();
if (typeof params.on_retrieve == 'function') {
params.on_retrieve(row);
} else {