[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Upload local cover image [% IF ( biblio ) %] › [% INCLUDE 'biblio-title-head.inc' %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% FILTER collapse %] [% END %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% UNLESS itemnumber || biblionumber %]

Upload local cover image

[% ELSIF biblio %]

Upload local cover image for [% INCLUDE 'biblio-title.inc' %] [% IF ( itemnumber ) %], Item number: [% itemnumber | html %][% END %]

[% ELSIF itemnumber %]

Upload local cover image for item number: [% itemnumber | html %]

[% END %] [% IF ( uploadimage ) %]

Image upload results :

[% 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 # /IF error %]

[% total | html %] images found


[% END # /IF uploadimage %]
    [% 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 %]
[% IF ( cover_images ) %]
[% ELSE %]
[% END %]
Upload progress: 0%
[% IF itemnumber %] [% ELSIF biblionumber %] [% END %]
    [% UNLESS itemnumber || biblionumber %]
  1. [% IF (filetype != 'image' ) %] [% ELSE %] [% END %]
  2. [% IF (filetype == 'image' ) %] [% ELSE %] [% END %]
  3. [% END %]
[% IF ( biblionumber ) %] Cancel [% ELSE %] Cancel [% END %]
[% IF ( cover_images.size ) %]

Existing images

[% END # /IF images.size %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]