[open-ils-commits] r9939 - in branches/acq-experiment/Open-ILS/web:
js/dojo/openils/acq oilsweb/oilsweb/templates/oils/default/common
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 26 15:35:08 EDT 2008
Author: erickson
Date: 2008-06-26 15:35:00 -0400 (Thu, 26 Jun 2008)
New Revision: 9939
Modified:
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
Log:
added barcode, callnumber, and shelving location edit options. need to add a shelving location pickier next
Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js 2008-06-26 19:32:04 UTC (rev 9938)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js 2008-06-26 19:35:00 UTC (rev 9939)
@@ -107,6 +107,12 @@
item.fund(newVal);
} else if (attr == "owning_lib") {
item.owning_lib(newVal);
+ } else if (attr == "cn_label") {
+ item.cn_label(newVal);
+ } else if (attr == "barcode") {
+ item.barcode(newVal);
+ } else if (attr == "location") {
+ item.location(newVal);
} else {
alert("Unexpected attr in Lineitems.alertOnSet: '"+attr+"'");
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-06-26 19:32:04 UTC (rev 9938)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-06-26 19:35:00 UTC (rev 9939)
@@ -69,13 +69,26 @@
cells: [[
{name:"ID", field:"id"},
{name:"Fund", field:"fund",
- get:JUBGrid.getLIDFundName,
- editor: openils.editors.FundSelectEditor,
+ get:JUBGrid.getLIDFundName,
+ editor: openils.editors.FundSelectEditor,
},
{name:"Branch", field:"owning_lib",
- get:JUBGrid.getLIDLibName,
- editor: openils.editors.OrgUnitSelectEditor
- },
+ get:JUBGrid.getLIDLibName,
+ editor: openils.editors.OrgUnitSelectEditor
+ },
+ {name:"Barcode", field:"barcode", width:'auto',
+ editor:dojox.grid.editors.Dijit,
+ editorClass: "dijit.form.TextBox"
+ },
+ {name:"Call Number", field:"cn_label", width:'auto',
+ editor:dojox.grid.editors.Dijit,
+ editorClass: "dijit.form.TextBox"
+ },
+ {name:"Shelving Location", field:"location", width:'auto',
+ editor:dojox.grid.editors.Dijit,
+ editorClass: "dijit.form.TextBox"
+ },
+
]]
}];
@@ -116,7 +129,7 @@
<div dojoType="dijit.TooltipDialog"
execute="JUBGrid.createLID(arguments[0]);">
<script type='dojo/connect' event='onOpen'>
- globalUser.buildPermOrgSelector('MANAGE_FUND', copyOwnerSelect);
+ new openils.User().buildPermOrgSelector('MANAGE_FUND', copyOwnerSelect);
openils.acq.Fund.buildPermFundSelector('MANAGE_FUND', acqlidFund);
</script>
<table class="dijitTooltipTable">
More information about the open-ils-commits
mailing list