return data.fund;
}
},
+ getLIDFundCode : function(rowIndex) {
+ var data = JUBGrid.jubDetailGrid.model.getRow(rowIndex);
+ if (!data || !data.fund) return;
+ try {
+ return openils.acq.Fund.retrieve(data.fund).code();
+ } catch (evt) {
+ return data.fund;
+ }
+ },
getLIDLibName : function(rowIndex) {
var data = JUBGrid.jubDetailGrid.model.getRow(rowIndex);
if (!data || !data.owning_lib) return;
cells: [[
{name:"ID", field:"id"},
{name:"Fund", field:"fund",
- get:JUBGrid.getLIDFundName,
+ get:JUBGrid.getLIDFundCode,
editor: openils.editors.FundSelectEditor,
},
{name:"Branch", field:"owning_lib",
cells: [[
{name:"ID", field:"id"},
{name:"Fund", field:"fund",
- get:JUBGrid.getLIDFundName,
+ get:JUBGrid.getLIDFundCode,
},
{name:"Branch", field:"owning_lib",
- get:JUBGrid.getLIDLibName,
- },
+ get:JUBGrid.getLIDLibName,
+ },
+ {name:"Barcode", field:"barcode", width:'auto'},
+ {name:"Call Number", field:"cn_label", width:'auto'},
+ {name:"Shelving Location", field:"location",
+ width:'auto', get:JUBGrid.getCopyLocation},
]]
}];
</script>