Bug 34381: Correct inconsistencies in Authorized values page title

This patch rewords the authorized values template title logic so that it
matches the breadcrumb navigation for consistency.

To test, apply the patch and go to Administration -> Authorized values.

Test all versions of the page to confirm that the breadcrumbs and page
title are consistent with each other:

 - Main view
 - New category
 - View category (click a category, e.g. CCODE, in the main view)
 - Add authorized value
 - Edit authorized value

Signed-off-by: Christian Nelson <christian.nelson@uwasa.fi>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-08-18 09:07:59 +00:00 committed by Tomas Cohen Arazi
parent 879f7db9e8
commit c263a45450
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -5,19 +5,23 @@
[% INCLUDE 'doc-head-open.inc' %] [% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %] <title>[% FILTER collapse %]
[% IF op == 'add_form' %] [% IF op == 'add_form' %]
[% IF ( action_modify ) %] [% IF ( action_modify || action_add_value ) %]
[% t("Modify authorized value") | html %] &rsaquo; [% IF ( action_modify ) %]
[% END %] [% t("Modify authorized value") | html %] &rsaquo;
[% IF ( action_add_value ) %] [% END %]
[% t("New authorized value") | html %] &rsaquo; [% IF ( action_add_value ) %]
[% t("New authorized value") | html %] &rsaquo;
[% END %]
[% tx("Authorized values for category {category_name}", { category_name = category_name }) | html %] &rsaquo;
[% END %] [% END %]
[% IF ( action_add_category ) %] [% IF ( action_add_category ) %]
[% t("New category") | html %] &rsaquo; [% t("New category") | html %] &rsaquo;
[% END %] [% END %]
[% IF ( action_modify || action_add_value ) %]
[% tx("Authorized values for category {category_name}", { category_name = category_name }) | html %] &rsaquo; [% ELSIF ( loop || searchfield ) %]
[% END %] [% tx("Authorized values for category {category_name}", { category_name = category.category_name }) | html %] &rsaquo;
[% END %] [% END # /IF op == 'add_form' %]
[% t("Authorized values") | html %] &rsaquo; [% t("Authorized values") | html %] &rsaquo;
[% t("Administration") | html %] &rsaquo; [% t("Administration") | html %] &rsaquo;
[% t("Koha") | html %] [% t("Koha") | html %]