From 3dbd8988c467f30e9451d06bb7bce420d90b9b62 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 26 Oct 2022 15:11:08 +0000 Subject: [PATCH] Bug 31993: Improve specificity of authorized values breadcrumbs This patch adds a link back to the current authorized value category to the breadcrumbs. The page title has also been modified to match. To test apply the patch and go to Administration -> Authorized values. - Click an authorized value category, e.g. CCODE. - Click "New authorized value for CCODE" - In the breadcrumbs menu you should see: "Home -> Administration -> Authorized values -> Authorized values for category CCODE -> New authorized value. - The "Authorized values for category CCODE" link should take you back to the correct view. - The page title should match. - Return to the list of CCODE authorized values and open one for editing. - The breadcrumbs should include a link back to "Authorized values for category CCODE" Signed-off-by: David Nind --- .../en/modules/admin/authorised_values.tt | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 959ffb4595..fabd008a47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -7,6 +7,9 @@ [% IF ( action_modify ) %]Modify authorized value › [% END %] [% IF ( action_add_value ) %]New authorized value › [% END %] [% IF ( action_add_category ) %]New category › [% END %] + [% IF ( action_modify || action_add_value ) %] + Authorized values for category [% category_name | html %] › + [% END %] [% END %] Authorized values › Administration › Koha @@ -56,19 +59,26 @@
  • Authorized values
  • - [% IF ( action_modify ) %] + [% IF ( action_modify || action_add_value ) %]
  • - - Modify authorized value - -
  • - [% END %] - [% IF ( action_add_value ) %] -
  • - - New authorized value + + Authorized values for category [% category_name | html %]
  • + [% IF ( action_modify ) %] +
  • + + Modify authorized value + +
  • + [% END %] + [% IF ( action_add_value ) %] +
  • + + New authorized value + +
  • + [% END %] [% END %] [% IF ( action_add_category ) %]
  • -- 2.30.2