From 890231e7e65f0be00e153111b92ac77dbf0f6d16 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 27 Jan 2023 15:05:30 +0000 Subject: [PATCH] Bug 32738: Correct upload local cover image title tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/tools/upload-images.tt | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt index e2cd7749c9..0faecc1c4b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt @@ -3,12 +3,13 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] - Koha › - Cataloging › - Upload local cover image [% IF ( biblio ) %] - › [% INCLUDE 'biblio-title-head.inc' %] + Upload local cover image for [% INCLUDE 'biblio-title-head.inc' %] › + [% ELSE %] + Upload local cover image › [% END %] + Cataloging › + Koha [% INCLUDE 'doc-head-close.inc' %] [% FILTER collapse %] @@ -89,9 +90,11 @@
  • Cataloging
  • -
  • - Upload local cover image -
  • + [% IF uploadimage || biblio || itemnumber || biblionumber %] +
  • + Upload local cover image +
  • + [% END %] [% IF ( uploadimage ) %]
  • @@ -104,6 +107,12 @@ [% INCLUDE 'biblio-title.inc' %]
  • [% END %] + [% ELSIF biblio %] +
  • + + Upload cover for [% INCLUDE 'biblio-title.inc' %] + +
  • [% ELSIF itemnumber %]