From 8fedea5c17c212abe611381338df8b52acf49297 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 22 Apr 2024 09:25:08 -0300 Subject: [PATCH] Bug 35919: (QA follow-up) Address QA concerns This patch: * Adds the missing entry in permissions.inc * Moves the configuration entry above 'Record overlay rules' * Adds the 'Record sources' link to the left navigation column, in the right position. * Makes the element be constructed the same way the 'cities' page is. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> --- koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc | 3 +++ koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 6 ++++++ .../intranet-tmpl/prog/en/modules/admin/admin-home.tt | 8 ++++---- .../intranet-tmpl/prog/en/modules/admin/record_sources.tt | 8 +++++--- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc index c7caffc0143..3aa5b87b95a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc @@ -104,6 +104,9 @@ [% IF ( CAN_user_parameters_manage_matching_rules ) %] <li><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></li> [% END %] + [% IF ( CAN_user_parameters_manage_record_sources ) %] + <li><a href="/cgi-bin/koha/admin/record_sources">Record sources</a></li> + [% END %] [% IF ( CAN_user_parameters_manage_marc_overlay_rules ) %] <li><a href="/cgi-bin/koha/admin/marc-overlay-rules.pl">Record overlay rules</a></li> [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc index 742e6e1c359..a5768e54c59 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -872,5 +872,11 @@ Manage identity providers </span> <span class="permissioncode">([% name | html %])</span> + [%# record_sources %] + [%- CASE 'manage_record_sources' -%] + <span class="sub_permission manage_record_sources_subpermission"> + Manage record sources + </span> + <span class="permissioncode">([% name | html %])</span> [%- END -%] [%- END -%] 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 8f920678ba6..a3948f60634 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 @@ -190,6 +190,10 @@ <dt><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></dt> <dd>Manage rules for automatically matching MARC records during record imports</dd> [% END %] + [% IF ( CAN_user_parameters_manage_record_sources ) %] + <dt><a href="/cgi-bin/koha/admin/record_sources">Record sources</a></dt> + <dd>Define record sources to import from</dd> + [% END %] [% IF ( CAN_user_parameters_manage_marc_overlay_rules ) %] <dt><a href="/cgi-bin/koha/admin/marc-overlay-rules.pl">Record overlay rules</a></dt> <dd>Managed rules for automatic overlay of MARC fields during record imports and updates</dd> @@ -210,10 +214,6 @@ <dt><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">Search engine configuration (Elasticsearch)</a></dt> <dd>Manage indexes, facets, and their mappings to MARC fields and subfields</dd> [% END %] - [% IF ( CAN_user_parameters_manage_record_sources ) %] - <dt><a href="/cgi-bin/koha/admin/record_sources">Record sources</a></dt> - <dd>Define record sources to import from</dd> - [% END %] </dl> [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/record_sources.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/record_sources.tt index 533a171ec2c..3ceff704930 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/record_sources.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/record_sources.tt @@ -7,9 +7,11 @@ [% SET footerjs = 1 %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] -<title> - Record sources › Koha - +[% FILTER collapse %] + [% t("Record sources") | html %] › + [% t("Administration") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] -- 2.44.0