From: erickson Date: Thu, 26 Jun 2008 19:35:00 +0000 (+0000) Subject: added barcode, callnumber, and shelving location edit options. need to add a shelvin... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=205a8a9ede8aefeac44f8513bf3d221c14ddb7e3;p=Evergreen.git added barcode, callnumber, and shelving location edit options. need to add a shelving location pickier next git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9939 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/acq/Lineitems.js b/Open-ILS/web/js/dojo/openils/acq/Lineitems.js index 7d377e531e..54b0804a3f 100644 --- a/Open-ILS/web/js/dojo/openils/acq/Lineitems.js +++ b/Open-ILS/web/js/dojo/openils/acq/Lineitems.js @@ -107,6 +107,12 @@ openils.acq.Lineitems.alertOnSet = function(griditem, attr, oldVal, newVal) { 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; diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html index 7abb8c0c5f..eeaed9f8fb 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html @@ -69,13 +69,26 @@ pointing to the JUB model (and store) that you have created. 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 @@ pointing to the JUB model (and store) that you have created.