[open-ils-commits] [GIT] Evergreen ILS branch master updated. a30820353694707a2096663a4b2b86fa9c2db4da
Evergreen Git
git at git.evergreen-ils.org
Mon Jun 27 17:09:49 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via a30820353694707a2096663a4b2b86fa9c2db4da (commit)
from a78a07a5111c36505a6d714dfa4a12a8db5f481e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a30820353694707a2096663a4b2b86fa9c2db4da
Author: Bill Erickson <berick at esilibrary.com>
Date: Mon Jun 27 16:11:19 2011 -0400
Configuration interface for config.metabib_field table
This interface enables admins to create and modify the entries used for
defining indexes, faceting, and eventually display.
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Dan Scott <dscott at laurentian.ca>
diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd
index 67c73b2..a1faa69 100644
--- a/Open-ILS/web/opac/locale/en-US/lang.dtd
+++ b/Open-ILS/web/opac/locale/en-US/lang.dtd
@@ -723,6 +723,7 @@
<!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_field.label "MARC Search/Facet Fields">
<!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">
diff --git a/Open-ILS/web/templates/default/conify/global/config/metabib_field.tt2 b/Open-ILS/web/templates/default/conify/global/config/metabib_field.tt2
new file mode 100644
index 0000000..0a811a7
--- /dev/null
+++ b/Open-ILS/web/templates/default/conify/global/config/metabib_field.tt2
@@ -0,0 +1,32 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Metabib Field' %]
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+ <div>Metabib Field</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='mbFieldGrid.showCreateDialog()'>New Field</button>
+ <button dojoType='dijit.form.Button' onClick='mbFieldGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+ </div>
+ <div>
+ <table jsId="mbFieldGrid"
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'label', 'field_class', 'weight', 'format', 'search_field', 'facet_field', 'xpath']"
+ query="{field: '*'}"
+ fmClass='cmf'
+ autoHeight='true'
+ editOnEnter='true'>
+ <thead>
+ <tr><th field='xpath' width='25%'/></tr>
+ </thead>
+ </table>
+</div>
+
+<script type="text/javascript">
+ dojo.require('openils.Util');
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad( function() { mbFieldGrid.loadAll(); } );
+</script>
+[% END %]
+
+
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
index 7b3f53c..fc85a8f 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
@@ -847,6 +847,10 @@ main.menu.prototype = {
['oncommand'],
function(event) { open_eg_web_page('conify/global/config/coded_value_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_acn_prefix' : [
['oncommand'],
function(event) { open_eg_web_page('conify/global/config/acn_prefix', null, event); }
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
index 1f85b6e..8c79bbf 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
@@ -152,6 +152,7 @@
/>
<command id="cmd_server_admin_marc_code" />
<command id="cmd_server_admin_coded_value_map" />
+ <command id="cmd_server_admin_metabib_field" />
<command id="cmd_server_admin_billing_type" />
<command id="cmd_server_admin_acn_prefix" />
<command id="cmd_server_admin_acn_suffix" />
@@ -473,6 +474,7 @@
<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_field.label;" command="cmd_server_admin_metabib_field"/>
<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.z3950_source.label;" command="cmd_server_admin_z39_source"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.circulation_modifier.label;" command="cmd_server_admin_circ_mod"/>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/opac/locale/en-US/lang.dtd | 1 +
.../default/conify/global/config/metabib_field.tt2 | 32 ++++++++++++++++++++
.../xul/staff_client/chrome/content/main/menu.js | 4 ++
.../chrome/content/main/menu_frame_menus.xul | 2 +
4 files changed, 39 insertions(+), 0 deletions(-)
create mode 100644 Open-ILS/web/templates/default/conify/global/config/metabib_field.tt2
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list