Bug 32738: Correct upload local cover image title tag

This patch corrects the local cover image template's title tag so that
it conforms to the changes made in Bug 26703, 'Modify the "title"
elements to contain unique information first.'

The patch also makes minor corrections to the page's breadcrumbs.

To test you must have the LocalCoverImages system preference enabled.

- Apply the patch and go to Cataloging -> Upload local cover image.
- The page title should be correct:
  Upload local cover image › Cataloging › Koha
- The breadcrumbs should be:
  Home -> Cataloging -> Upload cover image
- Locate a bibliographic record and view its details.
- Click the "Images" tab, then the "Upload" button.
- The page title should now be
  Upload local cover image for [title] › Cataloging › Koha
- The breadcrumbs should now be:
  Home -> Cataloging -> Upload local cover image -> Upload cover for
  [title]

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 2023-01-27 15:05:30 +00:00 committed by Tomas Cohen Arazi
parent 2addd2879a
commit 890231e7e6
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -3,12 +3,13 @@
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
Koha &rsaquo;
Cataloging &rsaquo;
Upload local cover image
[% IF ( biblio ) %]
&rsaquo; [% INCLUDE 'biblio-title-head.inc' %]
Upload local cover image for [% INCLUDE 'biblio-title-head.inc' %] &rsaquo;
[% ELSE %]
Upload local cover image &rsaquo;
[% END %]
Cataloging &rsaquo;
Koha
</title>
[% INCLUDE 'doc-head-close.inc' %]
[% FILTER collapse %]
@ -89,9 +90,11 @@
<li>
<a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
</li>
<li>
<a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a>
</li>
[% IF uploadimage || biblio || itemnumber || biblionumber %]
<li>
<a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a>
</li>
[% END %]
[% IF ( uploadimage ) %]
<li>
@ -104,6 +107,12 @@
<a href="#" aria-current="page"><em>[% INCLUDE 'biblio-title.inc' %]</em></a>
</li>
[% END %]
[% ELSIF biblio %]
<li>
<a href="#" aria-current="page">
Upload cover for <em>[% INCLUDE 'biblio-title.inc' %]</em>
</a>
</li>
[% ELSIF itemnumber %]
<li>
<a href="#" aria-current="page">