[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Upload patron images [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] [% INCLUDE 'blocking_errors.inc' %]
[% IF ( TOTAL ) %] [% IF ( ERRORS ) %] [% IF ( TCOUNTS ) %]

Patron image(s) uploaded with some errors

[% ELSE %]

Patron image failed to upload

[% END %] [% ELSE %]

Patron image(s) successfully uploaded

[% END %]
  • Unpacking completed
  • [% TOTAL | html %] directories scanned.
  • [% HANDLED | html %] directories processed.
[% FOREACH COUNT IN COUNTS %]
[% IF ( COUNT.TCOUNTS ) %]
  • [% COUNT.TCOUNTS | html %] image(s) moved into the database:
  • [% END %] [% FOREACH filename IN COUNT.filenames %] [% END %]
    Results
    File nameCard numberResult
    [% filename.source | html %] [% filename.cardnumber | html %] [% IF ( filename.filerrors ) %] [% FOREACH filerror IN filename.filerrors %] [% IF ( filerror.DBERR ) %]ERROR: Image not imported because the database returned an error. Please refer to the error log for more details. [% ELSIF ( filerror.IMGEXISTS ) %]ERROR: Image not imported because this patron does not exist in the database. [% ELSIF ( filerror.MIMERR ) %]ERROR: Image not imported because the image format is unrecognized. [% ELSIF ( filerror.CORERR ) %]ERROR: Image not imported because the image file is corrupted. [% ELSIF ( filerror.OPNERR ) %]ERROR: Image not imported because Koha was unable to open the image for reading. [% ELSIF ( filerror.OVRSIZ ) %]ERROR: Image not imported because the image file is too big (see online help for maximum size). [% ELSIF ( filerror.CRDFIL ) %]ERROR: Image not imported ([% filerror.CRDFIL | html %] missing). [% ELSIF ( filerror.CARDNUMBER_DOES_NOT_EXIST ) %]ERROR: Image not imported because this patron does not exist in the database. [% ELSE %]ERROR: Image not imported because of an unknown error. Please refer to the error log for more details. [% END %] [% END %] [% ELSE %] imported successfully. [% END %]
    [% END %] [% ELSE %]

    Upload patron images

    [% IF ( ERRORS ) %]
    [% FOREACH ERROR IN ERRORS %] [% IF ( ERROR.NOTZIP ) %]
  • The upload file does not appear to be a zip file. The extension is not '.zip'.
  • [% ELSIF ( ERROR.NOWRITETEMP ) %]
  • This script is not able to create/write to the necessary temporary directory.
  • [% ELSIF ( ERROR.EMPTYUPLOAD ) %]
  • The upload file appears to be empty.
  • [% ELSIF ( ERROR.OPNLINK ) %]
  • Cannot open [% ERROR.OPNLINK | html %] to read.
    Please verify that it exists.
  • [% ELSIF ( ERROR.OPNIMG ) %]
  • Cannot open [% ERROR.OPNIMG | html %] to read.
    Please verify that it exists.
  • [% ELSIF ( ERROR.DELERR ) %]
  • Unrecognized or missing field delimiter.
    Please verify that you are using either a single quote or a tab.
  • [% ELSIF ( ERROR.UZIPFAIL ) %]
  • [% ERROR.UZIPFAIL | html %] failed to unpack.
    Please verify the integrity of the ZIP file and retry.
  • [% ELSE %]
  • [% ERROR.CORERR | html %] An unknown error has occurred.
    Please review the error log for more details.
  • [% END %] [% END %]
    [% END %]

    NOTE: Only PNG, GIF, JPEG, XPM formats are supported.

    1. [% IF ( filetype == 'image' ) %]
    2. [% ELSE %]
    3. Required
    Cancel
    [% END %]
    [% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]