Bugzilla – Attachment 114767 Details for
Bug 27135
Viewing local cover images at item level shows a link to upload image at record level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27135: Adjust "upload image" button when viewing item's cover images
Bug-27135-Adjust-upload-image-button-when-viewing-.patch (text/plain), 2.48 KB, created by
Katrin Fischer
on 2021-01-02 18:29:33 UTC
(
hide
)
Description:
Bug 27135: Adjust "upload image" button when viewing item's cover images
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-01-02 18:29:33 UTC
Size:
2.48 KB
patch
obsolete
>From 8d1ecd83b2bb793f34e393dae36f2a7273bcaa10 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <fridolin.somers@biblibre.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../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 @@ > </div> > [% IF ( CAN_user_tools_upload_local_cover_images ) %] > <hr /> >- <p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a> >+ <p> >+ [% IF itemnumber %] >+ Upload an image file for this item: >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% itemnumber | uri %]&filetype=image"> >+ [% ELSE %] >+ Upload an image file for this bibliographic record: >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&filetype=image"> >+ [% END %] >+ <i class="fa fa-upload" aria-hidden="true"></i> Upload</a> > </p> > [% END %] > </div> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27135
:
114134
|
114151
| 114767