From 8ee0abe7b6725a6f858b2e7949e25da8d3ef1af2 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 14 Mar 2011 16:34:25 +0000 Subject: [PATCH] More menu work for record attr/coded map config UIs menu entry for config.coded_value_maps, updated menu label and page title for config.record_attr_definition page; in some cases (that probabl need investigating), widget.validate function is not defined. in those cases, don't attempt to call the function git-svn-id: svn://svn.open-ils.org/ILS/trunk@19734 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 3 ++- Open-ILS/web/opac/locale/en-US/lang.dtd | 3 ++- .../default/conify/global/config/record_attr_definition.tt2 | 1 + Open-ILS/xul/staff_client/chrome/content/main/menu.js | 4 ++++ .../xul/staff_client/chrome/content/main/menu_frame_menus.xul | 4 +++- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 3fa7735c8c..e171f30d6b 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -583,7 +583,8 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { // invalid data. This change tells dojo to pretend this focusing has // already happened so we can style required widgets during page render. this.widget._hasBeenBlurred = true; - this.widget.validate(); + if(this.widget.validate) + this.widget.validate(); } }, diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index d22cfd1eb7..f9fcd6eb83 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -706,7 +706,8 @@ - + + diff --git a/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2 b/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2 index 3b20241d36..627b713fb0 100644 --- a/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2 +++ b/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2 @@ -1,4 +1,5 @@ [% WRAPPER default/base.tt2 %] +[% ctx.page_title = 'MARC Record Attribute Definitions' %]

Record Attribute Definitions


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 f63ad8e508..28c83afacc 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -732,6 +732,10 @@ main.menu.prototype = { ['oncommand'], function() { open_eg_web_page('conify/global/config/record_attr_definition'); } ], + 'cmd_server_admin_coded_value_map' : [ + ['oncommand'], + function() { open_eg_web_page('conify/global/config/coded_value_map'); } + ], 'cmd_server_admin_billing_type' : [ ['oncommand'], function() { open_eg_web_page('conify/global/config/billing_type'); } 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 a017100e70..0e71b6efb2 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 @@ -139,6 +139,7 @@ + @@ -391,7 +392,8 @@ - + + -- 2.43.2