From 386fa28103c8c4c3af1bdafa242b05fb5fec1424 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 2 Jan 2009 16:10:18 +0000 Subject: [PATCH] started hold matrix matchpoint ui git-svn-id: svn://svn.open-ils.org/ILS/trunk@11721 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/oils_web.xml.example | 1 + .../global/config/hold_matrix_matchpoint.js | 28 +++++++++++ .../global/config/hold_matrix_matchpoint.tt2 | 46 +++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js create mode 100644 Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2 diff --git a/Open-ILS/examples/oils_web.xml.example b/Open-ILS/examples/oils_web.xml.example index dc75f58bb6..94700e9532 100644 --- a/Open-ILS/examples/oils_web.xml.example +++ b/Open-ILS/examples/oils_web.xml.example @@ -41,6 +41,7 @@ + diff --git a/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js b/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js new file mode 100644 index 0000000000..53af2fedbc --- /dev/null +++ b/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js @@ -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 diff --git a/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2 b/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2 new file mode 100644 index 0000000000..4f0a7dfe21 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2 @@ -0,0 +1,46 @@ +[% WRAPPER default/base.tt2 %] + +

Hold Matrix Matchpoint


+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + +
Matchpoint IDActive?User Home LibraryRequest LibraryPickup LibraryOwning LibraryItem Circ LibraryUser Permission GroupRequestor Permission GroupCirculation ModifierMARC TypeMARC FormatVideorecording FormatReference?
+
+
+ +[% END %] -- 2.43.2