@@ -, +, @@
1 - Enable 'LocalCoverImages' system preference
2 - Browse to the details page for a record
3 - Under the 'Images' tab click 'Upload'
4 - Note the display includes File type section with a biblionuber input
5 - Upload an image and note the results page
6 - Return to the biblio, this time on the 'Holdings' tab
7 - Click the down arrow next to 'Edit' and choose 'Upload image'
8 - Note the form has a File type section with an itemnumber input
9 - Apply patch
---
.../prog/en/modules/tools/upload-images.tt | 59 +++++++++++--------
1 file changed, 35 insertions(+), 24 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt
@@ -16,10 +16,10 @@
Home ›
Tools ›
- [% IF ( uploadimage ) %]
-
Upload local cover image › Upload results
- [% ELSE %]
- Upload local cover image
+
Upload local cover image
+ [% IF ( uploadimage ) %] › Upload results
+ [% ELSIF itemnumber %] › Upload cover for itemnumber: [% itemnumber | html %]
+ [% ELSIF biblionumber %] › Upload cover for biblionumber: [% biblionumber | html %]
[% END %]
@@ -28,10 +28,8 @@
- Upload local cover image
-
[% IF ( uploadimage ) %]
- Image upload results :
+ Image upload results :
- [% total | html %] images found
[% IF ( error ) %]
@@ -58,8 +56,21 @@
[% END # /IF uploadimage %]
+
+ [% UNLESS itemnumber || biblionumber %]
+ Upload local cover image
+ [% ELSIF itemnumber %]
+ Upload local cover image for itemnumber: [% itemnumber | html %]
+ [% ELSIF biblionumber %]
+ Upload local cover image for biblionumber: [% biblionumber | html %]
+ [% END %]
+
- - Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.
+ [% UNLESS itemnumber || biblionumber %]
+ - Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.
+ [% ELSE %]
+ - Select an image file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.
+ [% END %]