From 760f9b14cbf27875ceb98cd828a3a271519ead7d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 23 Jan 2019 17:56:50 +0000 Subject: [PATCH] Bug 22196: Clean up Mana KB administration template This patch makes language changes to the Mana KB administration template, and corresponding language changes to the Web Services preference file. Some markup errors have been fixed: - Correct title and breadcrumbs, copied and pasted from another template - Add ids to form fields to match their label "for" attributes - Make s self-closing - Correct class names on alert dialogs - Wrap text in JavaScript with _() to make it translatable Also changed: Some language revisions to the Mana dialogs on the Administration home page. To test, apply the patch and go to Administration -> Share content with Mana KB. Test the process for enabling and configuring Mana KB. Check that forms work correctly and that the language of instructions and labels reads well. Go to Administration -> System preferences -> Web services, and confirm that the language changes to the Mana KB preference look good. --- .../prog/en/modules/admin/admin-home.tt | 13 ++-- .../en/modules/admin/preferences/web_services.pref | 11 +-- .../prog/en/modules/admin/share_content.tt | 81 +++++++++++----------- 3 files changed, 53 insertions(+), 52 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt index fb44379..038408e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt @@ -15,18 +15,17 @@
[% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
-

The Mana Knowledge Base feature is enabled but not configured.

+

The Mana Knowledge Base feature is enabled but not configured.

This feature allows you to retrieve and share data (subscription patterns and reports) with other Koha libaries.

- Ask your system administrator to configure this feature, or remove this note by disabling the 'Mana' system preference - here. + Ask your system administrator to configure this feature, or remove this note by disabling the 'Mana' system preference.

[% END %] [% IF ( Koha.Preference('Mana') == 2 ) %] -
-

You haven't decided if you want to activate Mana Knowlede Base, please let us know by clicking

-
Here
+
+

Share content with Mana KB?

+

You haven't decided if you want to activate Mana Knowledge Base. Change your Mana KB settings.

[% END %]

Koha administration

@@ -203,7 +202,7 @@
Share with the Koha community the usage statistics of your Koha installation.
[% END %] [% IF ( CAN_user_parameters ) %] -
Using Mana-KB
+
Share content with Mana KB
Share content (subscriptions, reports) with Koha communty
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref index 898fafa..cb43624 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref @@ -59,20 +59,21 @@ Web services: - pref: ILS-DI:AuthorizedIPs class: Text - to use the ILS-DI services (when enabled). Separate the IP addresses with commas and without spaces. Leave the field blank to allow any IP address. - Mana: + Mana KB: - - pref: Mana choices: yes: Enable no: Disable - 2: No, let me think about it - - request to Mana Webservice. Mana centralize commun information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana. The informations shared with Mana KB are shared under the CC-0 license. More infos about CC-0 license on https://creativecommons.org/choose/zero/ + 2: No, let me think about + - submissions to Mana KB. Mana centralizes information between other Koha installations to facilitate the creation of new subscriptions, vendors, reports, etc. You can search, share, import, and comment on the content of Mana. The information shared with Mana KB is shared under the CC-0 license - - - "Security token used to authenticate on mana:" + - "Security token used to authenticate on Mana KB:" - pref: ManaToken class: Text + - Get a security token on the Mana KB administration page. - - - 'Fields automatically shared with mana' + - 'Fields automatically shared with Mana KB' - pref: AutoShareWithMana multiple: subscription: Subscriptions diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt index f99cb2b..cb161b2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt @@ -3,59 +3,59 @@ [% SET footerjs = 1 %] [% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Administration › Koha usage statistics +Koha › Administration › Share content with Mana KB [% INCLUDE 'doc-head-close.inc' %] - + [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] - +
[% IF result.code != 201 && result.msg %] -