Bug 31425: Minor correction to patron categories admin title

This patch corrects the patron categories administration template so
that an extra angle bracket isn't included in the page title on the main
view.

To test, apply the patch and go to Administration -> Patron categories.
The page title should read:

Patron categories › Administration › Koha

...with no extra "›" at the beginning.

Check that other views (new, edit, delete) are unaffected.

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>
(cherry picked from commit 9c11c588c1)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2022-08-19 18:00:37 +00:00 committed by Lucas Gass
parent 6b2566ece3
commit 830e854688

View file

@ -7,9 +7,25 @@
[% USE TablesSettings %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF op == 'add_form' %][% IF ( categorycode ) %]Modify category '[% categorycode | html %]'[% ELSE %]New category[% END %][% END %]
[% IF op == 'delete_confirm' %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode | html %] in use[% ELSE %]Confirm deletion of category '[% categorycode | html %]'[% END %][% END %] &rsaquo; Patron categories &rsaquo; Administration &rsaquo; Koha
</title>
<title>[% FILTER collapse %]
[% IF op == 'add_form' %]
[% IF ( categorycode ) %]
Modify category '[% categorycode | html %]'
[% ELSE %]
New category
[% END %]
&rsaquo;
[% END %]
[% IF op == 'delete_confirm' %]
[% IF ( patrons_in_category > 0 ) %]
Cannot delete: category [% categorycode | html %] in use
[% ELSE %]
Confirm deletion of category '[% categorycode | html %]'
[% END %]
&rsaquo;
[% END %]
Patron categories &rsaquo; Administration &rsaquo; Koha
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>#enrolmentmessage.hint { display : none; }</style>
</head>