added barcode, callnumber, and shelving location edit options. need to add a shelvin...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Jun 2008 19:35:00 +0000 (19:35 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Jun 2008 19:35:00 +0000 (19:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9939 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/acq/Lineitems.js
Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html

index 7d377e5..54b0804 100644 (file)
@@ -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;
index 7abb8c0..eeaed9f 100644 (file)
@@ -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.
                <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">