[% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Upload patron images [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.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 %] directories scanned.
  • [% HANDLED %] directories processed.
[% FOREACH COUNT IN COUNTS %]
    [% IF ( COUNT.TCOUNTS ) %]
  • [% COUNT.TCOUNTS %] image(s) moved into the database:
  • [% END %] [% FOREACH filename IN COUNT.filenames %]
  • [% filename.source %] - Cardnumber: [% filename.cardnumber %] [% 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 %] missing). [% 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 %]
[% END %]
[% IF ( borrowernumber ) %] Return to patron detail [% ELSE %] Upload more images Return to tools [% 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 %] to read.
    Please verify that it exists.
  • [% ELSIF ( ERROR.OPNIMG ) %]
  • Cannot open [% ERROR.OPNIMG %] 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 %] failed to unpack.
    Please verify the integrity of the ZIP file and retry.
  • [% ELSE %]
  • [% ERROR.CORERR %] 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' ) %][% ELSE %]
    Cancel
    [% END %]
    [% INCLUDE 'tools-menu.inc' %]
    [% INCLUDE 'intranet-bottom.inc' %]