[open-ils-commits] r11721 - in trunk/Open-ILS: examples web/js/ui/default/conify/global/config web/templates/default/conify/global/config

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 2 11:10:20 EST 2009


Author: erickson
Date: 2009-01-02 11:10:18 -0500 (Fri, 02 Jan 2009)
New Revision: 11721

Added:
   trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js
   trunk/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2
Modified:
   trunk/Open-ILS/examples/oils_web.xml.example
Log:
started hold matrix matchpoint ui

Modified: trunk/Open-ILS/examples/oils_web.xml.example
===================================================================
--- trunk/Open-ILS/examples/oils_web.xml.example	2009-01-02 15:33:06 UTC (rev 11720)
+++ trunk/Open-ILS/examples/oils_web.xml.example	2009-01-02 16:10:18 UTC (rev 11721)
@@ -41,6 +41,7 @@
         <handler path='conify/global/config/standing_penalty' template='conify/global/config/standing_penalty.tt2'/>
         <handler path='conify/global/config/z3950_source' template='conify/global/config/z3950_source.tt2'/>
         <handler path='conify/global/config/circ_modifier' template='conify/global/config/circ_modifier.tt2'/>
+        <handler path='conify/global/config/hold_matrix_matchpoint' template='conify/global/config/hold_matrix_matchpoint.tt2'/>
         <handler path='conify/global/permission/grp_penalty_threshold' template='conify/global/permission/grp_penalty_threshold.tt2'/>
     </handlers>
 </oils_web>

Added: trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js	                        (rev 0)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js	2009-01-02 16:10:18 UTC (rev 11721)
@@ -0,0 +1,28 @@
+dojo.require('dojox.grid.DataGrid');
+dojo.require('dojox.grid.cells.dijit');
+dojo.require('dojo.data.ItemFileWriteStore');
+dojo.require('dijit.form.CheckBox');
+dojo.require('dijit.form.FilteringSelect');
+
+function buildHMGrid() {
+    var store = new dojo.data.ItemFileWriteStore({data:chmm.initStoreData('id', {identifier:'id'})})
+    hmGrid.setStore(store);
+    hmGrid.render();
+    // dojo.connect(store, 'onSet', cmGridChanged);
+    console.log(js2JSON(store));
+    fieldmapper.standardRequest(
+        ['open-ils.pcrud', 'open-ils.pcrud.search.chmm'],
+        {   async: true,
+            params: [openils.User.authtoken, {id:{'!=':null}}],
+            onresponse: function (r) {
+                console.log('blah');
+                if(obj = openils.Util.readResponse(r)) {
+                    store.newItem(chmm.itemToStoreData(obj));
+                    // cmCache[obj.code()] = obj;
+                }
+           }
+        }
+    );
+}
+
+openils.Util.addOnLoad(buildHMGrid);
\ No newline at end of file

Added: trunk/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2	                        (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2	2009-01-02 16:10:18 UTC (rev 11721)
@@ -0,0 +1,46 @@
+[% WRAPPER default/base.tt2 %]
+<script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/hold_matrix_matchpoint.js'> </script>
+<h1>Hold Matrix Matchpoint</h1> <br/>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="top">
+
+    <button dojoType='dijit.form.Button' onclick='deleteFromGrid();'>Delete Selected</button>
+     
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
+        <table jsId="hmGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
+            <thead>
+                <tr>
+                    <th field="id">Matchpoint ID</th>
+                    <th field="active" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Active?</th>
+                    <th field="user_home_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>User Home Library</th>
+                    <th field="request_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells.Select'>Request Library</th>
+                    <th field="pickup_ou" editable='true' cellType='dojox.grid.cells.Select'>Pickup Library</th>
+                    <th field="item_owning_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Owning Library</th>
+                         <th field="item_circ_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Item Circ Library</th>
+                         <th field="usr_grp" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>User Permission Group</th>
+                         <th field="requestor_grp" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Requestor Permission Group</th>
+                        <th field="circ_modifier" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Circulation Modifier</th>
+                         <th field="marc_type" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>MARC Type</th>
+                         <th field="marc_form" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>MARC Format</th>
+                         <th field="marc_vr_format" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Videorecording Format</th>
+                         <th field="ref_flag" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Reference?</th>
+                        
+                </tr>
+            </thead>
+        </table>    
+    </div>
+</div>
+
+[% END %]



More information about the open-ils-commits mailing list