From: Lebbeous Fogle-Weekley Date: Wed, 22 Jun 2011 20:49:35 +0000 (-0400) Subject: Move the authority control set config interfaces back into conify X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e881cbb4731884f5eb7572a43a8ff7cda5de6f0f;p=evergreen%2Fmasslnc.git Move the authority control set config interfaces back into conify Really, that's where they make sense. And they're done. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/web/js/ui/default/cat/authority/common.js b/Open-ILS/web/js/ui/default/cat/authority/common.js deleted file mode 100644 index bb30b4800f..0000000000 --- a/Open-ILS/web/js/ui/default/cat/authority/common.js +++ /dev/null @@ -1,36 +0,0 @@ -/* To be used by interfaces for editing child tables of acs. */ -function render_control_set_metadata(control_set) { - var anchor = dojo.byId("control-set-metadata"); - anchor.href = oilsBasePath + "/cat/authority/control_set?focus=" + - control_set.id(); - anchor.innerHTML = dojo.string.substitute( - localeStrings.CONTROL_SET_METADATA, [ - control_set.id(), control_set.name(), control_set.description() - ] - ); - openils.Util.show("control-set-metadata-holder"); -} - -/* To be used by interfaces for editing child tables of acsaf. They not - * only want to know what acsaf they belong to, but for convenience they - * should also have handy the acs id to which their parent acsaf belongs, - * so they can provide the most helpful "back" link. - */ -function render_authority_field_metadata(authority_field, control_set_id) { - var anchor = dojo.byId("authority-field-metadata"); - var href = oilsBasePath + - "/cat/authority/control_set_authority_field?focus=" + - authority_field.id(); - if (control_set_id) href += "&acs=" + control_set_id; - - anchor.href = href; - anchor.innerHTML = dojo.string.substitute( - localeStrings.AUTHORITY_FIELD_METADATA, [ - "id", "tag", "sf_list", "name", "description" - ].map(function(k) { - var v = authority_field[k](); - return (v == null) ? "" : v; - }) - ); - openils.Util.show("authority-field-metadata-holder"); -} diff --git a/Open-ILS/web/js/ui/default/conify/global/cat/authority/common.js b/Open-ILS/web/js/ui/default/conify/global/cat/authority/common.js new file mode 100644 index 0000000000..13fdfdbdf4 --- /dev/null +++ b/Open-ILS/web/js/ui/default/conify/global/cat/authority/common.js @@ -0,0 +1,36 @@ +/* To be used by interfaces for editing child tables of acs. */ +function render_control_set_metadata(control_set) { + var anchor = dojo.byId("control-set-metadata"); + anchor.href = oilsBasePath + + "/conify/global/cat/authority/control_set?focus=" + control_set.id(); + anchor.innerHTML = dojo.string.substitute( + localeStrings.CONTROL_SET_METADATA, [ + control_set.id(), control_set.name(), control_set.description() + ] + ); + openils.Util.show("control-set-metadata-holder"); +} + +/* To be used by interfaces for editing child tables of acsaf. They not + * only want to know what acsaf they belong to, but for convenience they + * should also have handy the acs id to which their parent acsaf belongs, + * so they can provide the most helpful "back" link. + */ +function render_authority_field_metadata(authority_field, control_set_id) { + var anchor = dojo.byId("authority-field-metadata"); + var href = oilsBasePath + + "/conify/global/cat/authority/control_set_authority_field?focus=" + + authority_field.id(); + if (control_set_id) href += "&acs=" + control_set_id; + + anchor.href = href; + anchor.innerHTML = dojo.string.substitute( + localeStrings.AUTHORITY_FIELD_METADATA, [ + "id", "tag", "sf_list", "name", "description" + ].map(function(k) { + var v = authority_field[k](); + return (v == null) ? "" : v; + }) + ); + openils.Util.show("authority-field-metadata-holder"); +} diff --git a/Open-ILS/web/templates/default/cat/authority/browse_axis.tt2 b/Open-ILS/web/templates/default/cat/authority/browse_axis.tt2 deleted file mode 100644 index fc31b6ea49..0000000000 --- a/Open-ILS/web/templates/default/cat/authority/browse_axis.tt2 +++ /dev/null @@ -1,33 +0,0 @@ -[% 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 deleted file mode 100644 index c12dfa87ae..0000000000 --- a/Open-ILS/web/templates/default/cat/authority/browse_axis_authority_field_map.tt2 +++ /dev/null @@ -1,71 +0,0 @@ -[% 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.tt2 b/Open-ILS/web/templates/default/cat/authority/control_set.tt2 deleted file mode 100644 index 4d1e97d7ff..0000000000 --- a/Open-ILS/web/templates/default/cat/authority/control_set.tt2 +++ /dev/null @@ -1,88 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = "Configure Authority Control Sets" %] -
-
-
Control Sets
-
- - -
-
-
- - - - - - -
-
- - -[% 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 deleted file mode 100644 index b4c88cf063..0000000000 --- a/Open-ILS/web/templates/default/cat/authority/control_set_authority_field.tt2 +++ /dev/null @@ -1,127 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = "Configure Authority Authority Fields" %] -
-
-
Authority Fields
-
- - -
-
- -
- - - - - - - -
-
-
- - -[% END %] diff --git a/Open-ILS/web/templates/default/cat/authority/control_set_bib_field.tt2 b/Open-ILS/web/templates/default/cat/authority/control_set_bib_field.tt2 deleted file mode 100644 index 6cca21b9ff..0000000000 --- a/Open-ILS/web/templates/default/cat/authority/control_set_bib_field.tt2 +++ /dev/null @@ -1,71 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = "Configure Authority Control Set Bib Fields" %] -
-
-
Control Set Bib Fields
-
- - -
-
- -
- -
-
-
- - -[% END %] diff --git a/Open-ILS/web/templates/default/cat/authority/thesaurus.tt2 b/Open-ILS/web/templates/default/cat/authority/thesaurus.tt2 deleted file mode 100644 index 5e4c2bde3c..0000000000 --- a/Open-ILS/web/templates/default/cat/authority/thesaurus.tt2 +++ /dev/null @@ -1,65 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = "Configure Authority Thesauri" %] -
-
-
Thesauri
-
- - -
-
- -
- -
-
-
- - -[% END %] diff --git a/Open-ILS/web/templates/default/conify/global/authority/authority_field.tt2.old b/Open-ILS/web/templates/default/conify/global/authority/authority_field.tt2.old deleted file mode 100644 index 2ae8cc8a24..0000000000 --- a/Open-ILS/web/templates/default/conify/global/authority/authority_field.tt2.old +++ /dev/null @@ -1,40 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = 'Configure Control Set Authority Fields' %] -
-
-
Thesauri
-
- - -
-
-
- - - - -[% END %] - - diff --git a/Open-ILS/web/templates/default/conify/global/authority/bib_field.tt2.old b/Open-ILS/web/templates/default/conify/global/authority/bib_field.tt2.old deleted file mode 100644 index 4023d73782..0000000000 --- a/Open-ILS/web/templates/default/conify/global/authority/bib_field.tt2.old +++ /dev/null @@ -1,40 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = 'Configure Control Set Bibliographic Fields' %] -
-
-
Thesauri
-
- - -
-
-
-
- - - -[% END %] - - diff --git a/Open-ILS/web/templates/default/conify/global/authority/control_set.tt2.old b/Open-ILS/web/templates/default/conify/global/authority/control_set.tt2.old deleted file mode 100644 index c072d1c6c3..0000000000 --- a/Open-ILS/web/templates/default/conify/global/authority/control_set.tt2.old +++ /dev/null @@ -1,34 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = 'Configure Authority Control Sets' %] -
-
-
Control Sets
-
- - -
-
-
-
- - - -[% END %] - - diff --git a/Open-ILS/web/templates/default/conify/global/authority/thesaurus.tt2.old b/Open-ILS/web/templates/default/conify/global/authority/thesaurus.tt2.old deleted file mode 100644 index 8061f924ae..0000000000 --- a/Open-ILS/web/templates/default/conify/global/authority/thesaurus.tt2.old +++ /dev/null @@ -1,38 +0,0 @@ -[% WRAPPER default/base.tt2 %] -[% ctx.page_title = 'Configure Authority Thesaurus' %] -
-
-
Thesauri
-
- - -
-
-
-
- - - -[% END %] - - diff --git a/Open-ILS/web/templates/default/conify/global/cat/authority/browse_axis.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/browse_axis.tt2 new file mode 100644 index 0000000000..fc31b6ea49 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/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/conify/global/cat/authority/browse_axis_authority_field_map.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/browse_axis_authority_field_map.tt2 new file mode 100644 index 0000000000..8bb1af1c08 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/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/conify/global/cat/authority/control_set.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set.tt2 new file mode 100644 index 0000000000..69ba1d2d66 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set.tt2 @@ -0,0 +1,88 @@ +[% WRAPPER default/base.tt2 %] +[% ctx.page_title = "Configure Authority Control Sets" %] +
+
+
Control Sets
+
+ + +
+
+
+ + + + + + +
+
+ + +[% END %] diff --git a/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 new file mode 100644 index 0000000000..2f60bcc13a --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 @@ -0,0 +1,127 @@ +[% WRAPPER default/base.tt2 %] +[% ctx.page_title = "Configure Authority Authority Fields" %] +
+
+
Authority Fields
+
+ + +
+
+ +
+ + + + + + + +
+
+
+ + +[% END %] diff --git a/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_bib_field.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_bib_field.tt2 new file mode 100644 index 0000000000..28b9916de0 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_bib_field.tt2 @@ -0,0 +1,71 @@ +[% WRAPPER default/base.tt2 %] +[% ctx.page_title = "Configure Authority Control Set Bib Fields" %] +
+
+
Control Set Bib Fields
+
+ + +
+
+ +
+ +
+
+
+ + +[% END %] diff --git a/Open-ILS/web/templates/default/conify/global/cat/authority/thesaurus.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/thesaurus.tt2 new file mode 100644 index 0000000000..b8f80f712d --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/cat/authority/thesaurus.tt2 @@ -0,0 +1,65 @@ +[% WRAPPER default/base.tt2 %] +[% ctx.page_title = "Configure Authority Thesauri" %] +
+
+
Thesauri
+
+ + +
+
+ +
+ +
+
+
+ + +[% 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 de70805516..e0e1453768 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -961,11 +961,11 @@ main.menu.prototype = { ], 'cmd_server_admin_authority_control_set': [ ['oncommand'], - function(event) { open_eg_web_page('cat/authority/control_set', null, event); } + function(event) { open_eg_web_page('conify/global/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); } + function(event) { open_eg_web_page('conify/global/cat/authority/browse_axis', null, event); } ], 'cmd_server_admin_booking_resource': [ ['oncommand'],