@@ -, +, @@ - Go to Tools -> Upload local cover image. - Test uploading single images or ZIP files of images. - Confirm that everything works as expected. --- .../prog/en/modules/tools/upload-images.tt | 215 ++++++++++++--------- 1 file changed, 125 insertions(+), 90 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 @@ -13,104 +13,139 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] - +
-

Upload local cover image

-[% IF ( uploadimage ) %] -

Image upload results :

-
    -
  • [% total | html %] images found
  • - [% IF ( error ) %] -
    - [% IF ( error == 'UZIPFAIL' ) %]

    Failed to unzip archive.
    Please ensure you are uploading a valid zip file and try again.

    - [% ELSIF ( error == 'OPNLINK' ) %]

    Cannot open folder index (idlink.txt or datalink.txt) to read.
    Please verify that it exists.

    - [% ELSIF ( error == 'OPNIMG' ) %]

    Cannot process file as an image.
    Please ensure you only upload GIF, JPEG, PNG, or XPM images.

    - [% ELSIF ( error == 'DELERR' ) %]

    Unrecognized or missing field delimiter.
    Please verify that you are using either a single quote or a tab.

    - [% ELSIF ( error == 'DBERR' ) %]

    Unable to save image to database.

    - [% ELSE %]

    An unknown error has occurred.
    Please review the error log for more details.

    [% END %] -
    - - [% END %] -
  • View final record
  • -
  • Back
  • -
-
-[% END %] -
    -
  • Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.
  • -
-
-
-Upload images -
    -
  1. -
    - - - Required -
  2. -
-
-
+

Upload local cover image

+ + [% IF ( uploadimage ) %] +

Image upload results :

+
    +
  • [% total | html %] images found
  • + [% IF ( error ) %] +
  • +
    + [% IF ( error == 'UZIPFAIL' ) %] +

    Failed to unzip archive.
    Please ensure you are uploading a valid zip file and try again.

    + [% ELSIF ( error == 'OPNLINK' ) %] +

    Cannot open folder index (idlink.txt or datalink.txt) to read.
    Please verify that it exists.

    + [% ELSIF ( error == 'OPNIMG' ) %] +

    Cannot process file as an image.
    Please ensure you only upload GIF, JPEG, PNG, or XPM images.

    + [% ELSIF ( error == 'DELERR' ) %] +

    Unrecognized or missing field delimiter.
    Please verify that you are using either a single quote or a tab.

    + [% ELSIF ( error == 'DBERR' ) %] +

    Unable to save image to database.

    + [% ELSE %] +

    An unknown error has occurred.
    Please review the error log for more details.

    + [% END %] +
    +
  • + [% END %] +
  • View final record
  • +
  • Back
  • +
+
+ [% END %] +
    +
  • Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.
  • +
+ + +
+ Upload images +
    +
  1. +
    + + + Required +
    +
  2. +
+
+
-
-
Upload progress: - - - 0% -
-
-
-
+
+
Upload progress: + + + 0% +
+
+
+ -
-
- - - -
-
- File type -
    - [% UNLESS itemnumber %] -
  1. - [% IF (filetype != 'image' ) %][% ELSE %][% END %] - -
  2. -
  3. - [% IF (filetype == 'image' ) %][% ELSE %][% END %] - -
  4. -
  5. - [% IF ( filetype == 'image' ) %][% ELSE %] -
  6. - [% ELSE %] - - - - [% END %] -
-
-
- Options -
    -
  1. - [% IF AllowMultipleCovers == 0 %] - - [% ELSE %] - - [% END %] - -
  2. -
-
-
-
+
+
+ + + +
+
+ File type +
    + [% UNLESS itemnumber %] +
  1. + [% IF (filetype != 'image' ) %] + + [% ELSE %] + + [% END %] + +
  2. +
  3. + [% IF (filetype == 'image' ) %] + + [% ELSE %] + + [% END %] + +
  4. +
  5. + [% IF ( filetype == 'image' ) %] + + [% ELSE %] + +
  6. + [% ELSE %] + + + + [% END %] +
+
+
+ Options +
    +
  1. + [% IF AllowMultipleCovers == 0 %] + + [% ELSE %] + + [% END %] + +
  2. +
+
+
+ +
+
--