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 <david@davidnind.com>

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 2022-10-26 15:11:08 +00:00 committed by Tomas Cohen Arazi
parent e714213359
commit fd7bc8a9b8
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -7,6 +7,9 @@
[% IF ( action_modify ) %]Modify authorized value &rsaquo; [% END %] [% IF ( action_modify ) %]Modify authorized value &rsaquo; [% END %]
[% IF ( action_add_value ) %]New authorized value &rsaquo; [% END %] [% IF ( action_add_value ) %]New authorized value &rsaquo; [% END %]
[% IF ( action_add_category ) %]New category &rsaquo; [% END %] [% IF ( action_add_category ) %]New category &rsaquo; [% END %]
[% IF ( action_modify || action_add_value ) %]
Authorized values for category [% category_name | html %] &rsaquo;
[% END %]
[% END %] [% END %]
Authorized values &rsaquo; Administration &rsaquo; Koha Authorized values &rsaquo; Administration &rsaquo; Koha
</title> </title>
@ -56,19 +59,26 @@
<li> <li>
<a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a>
</li> </li>
[% IF ( action_modify ) %] [% IF ( action_modify || action_add_value ) %]
<li> <li>
<a href="#" aria-current="page"> <a href="#">
Modify authorized value <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category_name | uri %]">Authorized values for category [% category_name | html %]</a>
</a>
</li>
[% END %]
[% IF ( action_add_value ) %]
<li>
<a href="#" aria-current="page">
New authorized value
</a> </a>
</li> </li>
[% IF ( action_modify ) %]
<li>
<a href="#" aria-current="page">
Modify authorized value
</a>
</li>
[% END %]
[% IF ( action_add_value ) %]
<li>
<a href="#" aria-current="page">
New authorized value
</a>
</li>
[% END %]
[% END %] [% END %]
[% IF ( action_add_category ) %] [% IF ( action_add_category ) %]
<li> <li>