From: Lebbeous Fogle-Weekley Date: Wed, 22 Jun 2011 20:25:59 +0000 (-0400) Subject: Axis-field map editor and editor for the axes themselves X-Git-Tag: sprint4-merge-nov22~5398^2~19 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b95e14356c1ff9d150d2cc75aebf1f1fbb650845;p=working%2FEvergreen.git Axis-field map editor and editor for the axes themselves The editor for the axes themselves is accessed directly from staff client menu. Everything else is reached indirectly from the control set editor. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/web/js/dojo/openils/authority/nls/authority.js b/Open-ILS/web/js/dojo/openils/authority/nls/authority.js index 4c448c87a9..f7d2e24a53 100644 --- a/Open-ILS/web/js/dojo/openils/authority/nls/authority.js +++ b/Open-ILS/web/js/dojo/openils/authority/nls/authority.js @@ -19,5 +19,6 @@ "THESAURI": "Thesauri (${0})", "AUTHORITY_FIELDS": "Authority Fields (${0})", "CONTROL_SET_METADATA": "(${0}) ${1} / ${2}", - "AUTHORITY_FIELD_METADATA": "${3} (${1} ‡${2}) ${4}" + "AUTHORITY_FIELD_METADATA": "${3} (${1} ‡${2}) ${4}", + "NONE_LINK": "[None]" } diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index f5e0502dab..923621584e 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -787,6 +787,8 @@ + + diff --git a/Open-ILS/web/templates/default/cat/authority/browse_axis.tt2 b/Open-ILS/web/templates/default/cat/authority/browse_axis.tt2 new file mode 100644 index 0000000000..fc31b6ea49 --- /dev/null +++ b/Open-ILS/web/templates/default/cat/authority/browse_axis.tt2 @@ -0,0 +1,33 @@ +[% WRAPPER default/base.tt2 %] +[% ctx.page_title = "Configure Authority Browse Axes" %] +
+
+
Browse Axes
+
+ + +
+
+
+ +
+
+
+ +[% END %] diff --git a/Open-ILS/web/templates/default/cat/authority/browse_axis_authority_field_map.tt2 b/Open-ILS/web/templates/default/cat/authority/browse_axis_authority_field_map.tt2 new file mode 100644 index 0000000000..c12dfa87ae --- /dev/null +++ b/Open-ILS/web/templates/default/cat/authority/browse_axis_authority_field_map.tt2 @@ -0,0 +1,71 @@ +[% WRAPPER default/base.tt2 %] +[% ctx.page_title = "Configure Browse Axis-Authority Field Maps" %] +
+
+
Browse Axis-Authority Field Maps
+
+ + +
+
+ +
+ +
+
+
+ + +[% END %] diff --git a/Open-ILS/web/templates/default/cat/authority/control_set_authority_field.tt2 b/Open-ILS/web/templates/default/cat/authority/control_set_authority_field.tt2 index 740d408ace..b4c88cf063 100644 --- a/Open-ILS/web/templates/default/cat/authority/control_set_authority_field.tt2 +++ b/Open-ILS/web/templates/default/cat/authority/control_set_authority_field.tt2 @@ -24,8 +24,10 @@ editOnEnter="true"> - - + + @@ -74,11 +76,24 @@ if (item) return this.grid.store.getValue(item, "id"); } + function format_axis_maps(id) { + if (id) { + var text = acsaf_cache[id].axis_maps().map( + function(f) { return f.axis().name(); } + ).sort().join(", ") || localeStrings.NONE_LINK; + var href = "browse_axis_authority_field_map?"; + if (control_set) + href += "acs=" + control_set.id() + "&"; + href += "acsaf=" + id; + return "" + text + ""; + } + } + function format_bib_fields(id) { if (id) { var text = acsaf_cache[id].bib_fields().map( function(f) { return f.tag(); } - ).sort().join(", "); + ).sort().join(", ") || localeStrings.NONE_LINK; var href = "control_set_bib_field?"; if (control_set) href += "acs=" + control_set.id() + "&"; 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 728c7d54f3..de70805516 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -963,6 +963,10 @@ main.menu.prototype = { ['oncommand'], function(event) { open_eg_web_page('cat/authority/control_set', null, event); } ], + 'cmd_server_admin_authority_browse_axis': [ + ['oncommand'], + function(event) { open_eg_web_page('cat/authority/browse_axis', null, event); } + ], 'cmd_server_admin_booking_resource': [ ['oncommand'], function(event) { open_eg_web_page('conify/global/booking/resource', 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 d1279c1fd3..8f59ae8855 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 @@ -201,6 +201,7 @@ /> + @@ -525,6 +526,7 @@ +