From 8d1ecd83b2bb793f34e393dae36f2a7273bcaa10 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 --- .../intranet-tmpl/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.11.0