Add config interfaces
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 18 Dec 2012 15:38:24 +0000 (10:38 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 15 Feb 2013 20:39:50 +0000 (15:39 -0500)
For metabib class, class ts maps, field, and field ts maps.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/conify/global/config/metabib_class.tt2 [new file with mode: 0644]
Open-ILS/src/templates/conify/global/config/metabib_class_ts_map.tt2 [new file with mode: 0644]
Open-ILS/src/templates/conify/global/config/metabib_field_ts_map.tt2 [new file with mode: 0644]
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul

diff --git a/Open-ILS/src/templates/conify/global/config/metabib_class.tt2 b/Open-ILS/src/templates/conify/global/config/metabib_class.tt2
new file mode 100644 (file)
index 0000000..ee2fe0c
--- /dev/null
@@ -0,0 +1,25 @@
+[% WRAPPER base.tt2 %]
+[% ctx.page_title = l('MARC Search Classes') %]
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>[% l('Metabib Class') %]</div>
+    </div>
+    <div>
+    <table  jsId="mbClassGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['name', 'label', 'buoyant', 'restrict', 'a_weight', 'b_weight', 'c_weight', 'd_weight']"
+            query="{name: '*'}"
+            fmClass='cmc'
+            autoHeight='true'
+            editOnEnter='true'>
+    </table>
+</div>
+
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { mbClassGrid.loadAll(); } );
+</script>
+[% END %]
+
+
diff --git a/Open-ILS/src/templates/conify/global/config/metabib_class_ts_map.tt2 b/Open-ILS/src/templates/conify/global/config/metabib_class_ts_map.tt2
new file mode 100644 (file)
index 0000000..4874ddf
--- /dev/null
@@ -0,0 +1,29 @@
+[% WRAPPER base.tt2 %]
+[% ctx.page_title = l('MARC Search Class FTS Config Maps') %]
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>[% l('Metabib Class FTS Config Maps') %]</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='mbClassTSMGrid.showCreateDialog()'>[% l('New FTS Map') %]</button>
+            <button dojoType='dijit.form.Button' onClick='mbClassTSMGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
+        </div>
+    </div>
+    <div>
+    <table  jsId="mbClassTSMGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['id', 'field_class', 'ts_config', 'active', 'index_weight', 'index_lang', 'search_lang', 'always']"
+            query="{id: '*'}"
+            fmClass='cmcts'
+            autoHeight='true'
+            editOnEnter='true'>
+    </table>
+</div>
+
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { mbClassTSMGrid.loadAll(); } );
+</script>
+[% END %]
+
+
diff --git a/Open-ILS/src/templates/conify/global/config/metabib_field_ts_map.tt2 b/Open-ILS/src/templates/conify/global/config/metabib_field_ts_map.tt2
new file mode 100644 (file)
index 0000000..1d79409
--- /dev/null
@@ -0,0 +1,29 @@
+[% WRAPPER base.tt2 %]
+[% ctx.page_title = l('MARC Search and Facet Fields FTS Configs') %]
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>[% l('Metabib Field FTS Configs') %]</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='mbFieldFTSGrid.showCreateDialog()'>[% l('New FTS Config') %]</button>
+            <button dojoType='dijit.form.Button' onClick='mbFieldFTSGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
+        </div>
+    </div>
+    <div>
+    <table  jsId="mbFieldFTSGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['id', 'metabib_field', 'ts_config', 'active', 'index_weight', 'index_lang', 'search_lang']"
+            query="{field: '*'}"
+            fmClass='cmfts'
+            autoHeight='true'
+            editOnEnter='true'>
+    </table>
+</div>
+
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { mbFieldFTSGrid.loadAll(); } );
+</script>
+[% END %]
+
+
index f5880ff..e0cb546 100644 (file)
 <!ENTITY staff.main.menu.admin.server_admin.conify.copy_status.label "Copy Statuses">
 <!ENTITY staff.main.menu.admin.server_admin.conify.marc_record_attrs.label "MARC Record Attributes">
 <!ENTITY staff.main.menu.admin.server_admin.conify.coded_value_maps.label "MARC Coded Value Maps">
+<!ENTITY staff.main.menu.admin.server_admin.conify.metabib_class.label "MARC Search/Facet Classes">
+<!ENTITY staff.main.menu.admin.server_admin.conify.metabib_class_ts_map.label "MARC Search/Facet Class FTS Maps">
 <!ENTITY staff.main.menu.admin.server_admin.conify.metabib_field.label "MARC Search/Facet Fields">
+<!ENTITY staff.main.menu.admin.server_admin.conify.metabib_field_ts_map.label "MARC Search/Facet Field FTS Maps">
 <!ENTITY staff.main.menu.admin.server_admin.conify.acn_prefix.label "Call Number Prefixes">
 <!ENTITY staff.main.menu.admin.server_admin.conify.acn_suffix.label "Call Number Suffixes">
 <!ENTITY staff.main.menu.admin.server_admin.conify.billing_type.label "Billing Types">
index 322ca8a..29f0901 100644 (file)
@@ -913,10 +913,22 @@ main.menu.prototype = {
                 ['oncommand'],
                 function(event) { open_eg_web_page('conify/global/config/coded_value_map', null, event); }
             ],
+            'cmd_server_admin_metabib_class' : [
+                ['oncommand'],
+                function(event) { open_eg_web_page('conify/global/config/metabib_class', null, event); }
+            ],
+            'cmd_server_admin_metabib_class_ts_map' : [
+                ['oncommand'],
+                function(event) { open_eg_web_page('conify/global/config/metabib_class_ts_map', null, event); }
+            ],
             'cmd_server_admin_metabib_field' : [
                 ['oncommand'],
                 function(event) { open_eg_web_page('conify/global/config/metabib_field', null, event); }
             ],
+            'cmd_server_admin_metabib_field_ts_map' : [
+                ['oncommand'],
+                function(event) { open_eg_web_page('conify/global/config/metabib_field_ts_map', null, event); }
+            ],
             'cmd_server_admin_acn_prefix' : [
                 ['oncommand'],
                 function(event) { open_eg_web_page('conify/global/config/acn_prefix', null, event); }
index 7fe88a2..8967f9c 100644 (file)
     <command id="cmd_server_admin_coded_value_map" 
              perm="ADMIN_CODED_VALUE"
              />
+    <command id="cmd_server_admin_metabib_class"
+             perm="UPDATE_METABIB_CLASS"/>
+    <command id="cmd_server_admin_metabib_class_ts_map"
+             perm="ADMIN_INDEX_NORMALIZER"/>
     <command id="cmd_server_admin_metabib_field" 
              perm="CREATE_METABIB_FIELD DELETE_METABIB_FIELD UPDATE_METABIB_FIELD"
              />
+    <command id="cmd_server_admin_metabib_field_ts_map"
+             perm="ADMIN_INDEX_NORMALIZER"/>
     <command id="cmd_server_admin_billing_type" 
              perm="CREATE_BILLING_TYPE DELETE_BILLING_TYPE UPDATE_BILLING_TYPE"
              />
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.acn_suffix.label;" command="cmd_server_admin_acn_suffix"/>
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.marc_record_attrs.label;" command="cmd_server_admin_marc_code"/>
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.coded_value_maps.label;" command="cmd_server_admin_coded_value_map"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.metabib_class.label;" command="cmd_server_admin_metabib_class"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.metabib_class_ts_map.label;" command="cmd_server_admin_metabib_class_ts_map"/>
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.metabib_field.label;" command="cmd_server_admin_metabib_field"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.metabib_field_ts_map.label;" command="cmd_server_admin_metabib_field_ts_map"/>
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.billing_type.label;" command="cmd_server_admin_billing_type"/>
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.sms_carrier.label;" command="cmd_server_admin_sms_carrier"/>
                 <menuitem label="&staff.main.menu.admin.server_admin.conify.z3950_source.label;" command="cmd_server_admin_z39_source"/>