Browse Source

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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 3 years ago
parent
commit
f020941524
  1. 10
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt

10
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 %]&amp;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 %]&amp;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 %]&amp;filetype=image">
[% END %]
<i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
</p>
[% END %]
</div>

Loading…
Cancel
Save