From f0209415245fec941f44ed40ee47d8f163e5bb48 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 3 Dec 2020 09:40:45 +0100 Subject: [PATCH] Bug 27135: Adjust "upload image" button when viewing item's cover images When viewing the cover image of an item, the "upload image" button is about to upload an image at biblio level. Test plan: - Attach a cover image to an item - View it - Notice the "Upload image" button, confirm that with this patch applied the wording changed and that clicking it will attach a cover image to the item - Attach a cover image to the biblio - View it - Notice the "Upload image" button, confirm that with this patch applied the wording changed and that clicking it will attach a cover image to the biblio Signed-off-by: Fridolin Somers Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../prog/en/modules/catalogue/imageviewer.tt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt index 681234d956..47f63a41cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt @@ -48,7 +48,15 @@ [% IF ( CAN_user_tools_upload_local_cover_images ) %]
-

Upload an image file: Upload +

+ [% IF itemnumber %] + Upload an image file for this item: + + [% ELSE %] + Upload an image file for this bibliographic record: + + [% END %] + Upload

[% END %] -- 2.39.5