[open-ils-commits] r10026 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb:
public/oils/media/ui_js/oils/default/common
templates/oils/default/common
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jul 14 11:08:37 EDT 2008
Author: erickson
Date: 2008-07-14 11:08:35 -0400 (Mon, 14 Jul 2008)
New Revision: 10026
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
Log:
Displaying fund code instead of name in details grid
Displaying barcode, callnumber, and location columns in read-only view
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js 2008-07-14 14:08:07 UTC (rev 10025)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js 2008-07-14 15:08:35 UTC (rev 10026)
@@ -69,6 +69,15 @@
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;
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-07-14 14:08:07 UTC (rev 10025)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-07-14 15:08:35 UTC (rev 10026)
@@ -70,7 +70,7 @@
cells: [[
{name:"ID", field:"id"},
{name:"Fund", field:"fund",
- get:JUBGrid.getLIDFundName,
+ get:JUBGrid.getLIDFundCode,
editor: openils.editors.FundSelectEditor,
},
{name:"Branch", field:"owning_lib",
@@ -96,11 +96,15 @@
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>
More information about the open-ils-commits
mailing list