arg, rolling back unintended commit. 12357 was supposed to be 1 file, not 4
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Mar 2009 22:30:58 +0000 (22:30 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Mar 2009 22:30:58 +0000 (22:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12358 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Trigger/EventGroup.pm
Open-ILS/src/sql/Pg/020.schema.functions.sql
Open-ILS/web/templates/default/conify/global/config/hold_matrix_matchpoint.tt2

index cf22b8e..2c792e4 100644 (file)
@@ -1,10 +1,9 @@
 package OpenILS::Application::Trigger::EventGroup;
 use OpenILS::Application::Trigger::Event;
 use base 'OpenILS::Application::Trigger::Event';
-use strict; use warnings;
 use OpenSRF::EX qw/:try/;
 
-use OpenSRF::Utils::Logger qw/:logger/;
+use OpenSRF::Utils::Logger qw/:level/;
 
 use OpenILS::Utils::Fieldmapper;
 use OpenILS::Utils::CStoreEditor q/:funcs/;
index b1496d4..d0fc868 100644 (file)
@@ -231,18 +231,3 @@ COMMENT ON FUNCTION actor.org_unit_ancestor_setting( TEXT, INT) IS $$
 */
 $$;
 
-
-CREATE OR REPLACE FUNCTION actor.org_unit_ancestor_setting_all( org_id INT ) RETURNS SETOF actor.org_unit_setting AS $$
-DECLARE
-    setting RECORD;
-    name TEXT;
-BEGIN
-    FOR name IN SELECT DISTINCT(name) FROM actor.org_unit_setting LOOP
-        SELECT INTO setting * FROM actor.org_unit_ancestor_setting(name, org_id);
-        IF FOUND THEN
-            RETURN NEXT setting;
-        END IF;
-    END LOOP;
-END;
-$$ LANGUAGE plpgsql;
-
index f39d718..7820791 100644 (file)
@@ -1,22 +1,46 @@
-[% ctc.page_title = 'Circulation Policy Configuration' %]
 [% WRAPPER default/base.tt2 %]
-<script>
-    dojo.require('dijit.layout.ContentPane');
-    dojo.require('dijit.form.Button');
-    dojo.require('openils.widget.AutoGrid');
-</script>
-<div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
-    <div>Circulation Policy Configuration</div>
-    <div><button dojoType='dijit.form.Button' onClick='cmGrid.showCreateDialog()'>New</button></div>
-</div>
-<div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
-    <table  jsId="cmGrid" 
-            dojoType="openils.widget.AutoGrid" 
-            fieldOrder="['id', 'active', 'org_unit', 'grp', 'circ_modifier', 'marc_type', 'marc_form', 'marc_vr_format', 'ref_flag', 'usr_age_lower_bound', 'usr_age_upper_bound']"
-            defaultCellWidth='12'
-            query="{id: '*'}" 
-            fmClass='ccmm' 
-            editOnEnter='true'>
-    </table>
+<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' get='getOrgInfo'>User Home Library</th>
+                    <th field="request_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells.Select' get='getOrgInfo'>Request Library</th>
+                    <th field="pickup_ou" editable='true' cellType='dojox.grid.cells.Select' get='getOrgInfo'>Pickup Library</th>
+                    <th field="item_owning_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' get='getOrgInfo'>Owning Library</th>
+                         <th field="item_circ_ou" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' get='getOrgInfo'>Item Circ Library</th>
+                         <th field="usr_grp" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' get='getGroupName'>User Permission Group</th>
+                         <th field="requestor_grp" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' get='getGroupName'>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' get='getMarcType'>MARC Type</th>
+                         <th field="marc_form" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' get='getMarcForm'>MARC Format</th>
+                         <th field="marc_vr_format" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' get='getVrForm'>Videorecording Format</th>
+                         <th field="ref_flag" width='auto' editable='true' 
+                        cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox' formatter='formatReference'>Reference?</th>
+                        
+                </tr>
+            </thead>
+        </table>    
+    </div>
 </div>
+
 [% END %]