[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Tools › Upload Patron Images</title>
+<title>Koha › Tools › Upload patron images</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
$(document).ready(function() {
});
</script>
</head>
-<body>
+<body id="tools_picture-upload" class="tools">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › Upload Patron Images </div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF ( TOTAL ) %]<a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a> › Results[% ELSE %]Upload patron images[% END %] </div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
[% IF ( TOTAL ) %]
<div class="yui-b">
- <div class="yui-g">
- <div class="yui-u first">
[% IF ( ERRORS ) %]
[% IF ( TCOUNTS ) %]
<div class="dialog alert">
- <h3>Patron Image(s) Uploaded With Some Errors</h3>
+ <h3>Patron image(s) uploaded with some errors</h3>
+ </div>
[% ELSE %]
<div class="dialog alert">
- <h3>Patron Image Failed to Upload</h3>
+ <h3>Patron image failed to upload</h3>
+ </div>
[% END %]
[% ELSE %]
<div class="dialog message">
- <h3>Patron Image(s) Successfully Uploaded</h3>
+ <h3>Patron image(s) successfully uploaded</h3>
+ </div>
[% END %]
<ul class="data">
<li>Unpacking completed</li>
- <li>[% TOTAL %] directorie(s) scanned.</li>
- <li>[% HANDLED %] directorie(s) processed.</li>
+ <li>[% TOTAL %] directories scanned.</li>
+ <li>[% HANDLED %] directories processed.</li>
</ul>
+
[% FOREACH COUNT IN COUNTS %]
- <ul class="data">
+ <div class="container">
+ <table>
+ <caption>Results</caption>
+ <thead>
+ <tr><th>File name</th><th>Card number</th><th>Result</th></tr>
+ </thead>
+ <tbody>
[% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %]
- [% FOREACH filename IN COUNT.filenames %]
- <li>[% filename.source %] - Cardnumber: [% filename.cardnumber %]
- [% IF ( filename.filerrors ) %]<br /> <b>WARNING:</b> This image <i>not</i> imported because
+ [% FOREACH filename IN COUNT.filenames %]
+ <tr>
+ <td>[% filename.source %]</td>
+ <td><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% filename.cardnumber %]">[% filename.cardnumber %]</a></td>
+ <td>
+ [% IF ( filename.filerrors ) %]
[% FOREACH filerror IN filename.filerrors %]
- [% IF ( filerror.DBERR ) %]the database returned an error. Please refer to the error log for more details.</li>
- [% ELSIF ( filerror.IMGEXISTS ) %]this patron does not exist in the database.</li>
- [% ELSIF ( filerror.MIMERR ) %]the image format is unrecognized.</li>
- [% ELSIF ( filerror.CORERR ) %]the image file is corrupted.</li>
- [% ELSIF ( filerror.OPNERR ) %]Koha was unable to open the image for reading.</li>
- [% ELSIF ( filerror.OVRSIZ ) %]the image file is too big.</li>
- [% ELSIF ( filerror.CRDFIL ) %]the [% filerror.CRDFIL %] is missing.</li>
- [% ELSE %]of an unknown error. Please refer to the error log for more details.</li>[% END %]
- [% END %]
- [% ELSE %] imported successfully.</li>
+ [% IF ( filerror.DBERR ) %]<b>ERROR:</b> Image not imported because the database returned an error. Please refer to the error log for more details.
+ [% ELSIF ( filerror.IMGEXISTS ) %]<b>ERROR:</b> Image not imported because this patron does not exist in the database.
+ [% ELSIF ( filerror.MIMERR ) %]<b>ERROR:</b> Image not imported because the image format is unrecognized.
+ [% ELSIF ( filerror.CORERR ) %]<b>ERROR:</b> Image not imported because the image file is corrupted.
+ [% ELSIF ( filerror.OPNERR ) %]<b>ERROR:</b> Image not imported because Koha was unable to open the image for reading.
+ [% ELSIF ( filerror.OVRSIZ ) %]<b>ERROR:</b> Image not imported because the image file is too big (see online help for maximum size).
+ [% ELSIF ( filerror.CRDFIL ) %]<b>ERROR:</b> Image not imported ([% filerror.CRDFIL %] missing).
+ [% ELSE %]<b>ERROR:</b> Image not imported because of an unknown error. Please refer to the error log for more details.
+ [% END %]
[% END %]
+ [% ELSE %] imported successfully.
+ [% END %]</td>
+ </tr>
[% END %]
- </ul>
+ </tbody>
+ </table>
+ </div>
[% END %]
-
- </div>
- [% IF ( borrowernumber ) %]
- <a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Return to Patron Detail</a>
- [% ELSE %]
- <a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload More Images</a>
- <a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to Tools</a>
- [% END %]
+<ul>
+ [% IF ( borrowernumber ) %]
+ <li><a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Return to patron detail</a></li>
+ [% ELSE %]
+ <li><a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload more images</a></li>
+ <li><a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to tools</a></li>
+ [% END %]</ul>
</div>
[% ELSE %]
<div class="yui-b">
- <div class="yui-g">
- <div class="yui-u first">
- <h1>Upload Patron Images</h1>
+ <h1>Upload patron images</h1>
[% IF ( ERRORS ) %]
<div class="dialog alert">
[% FOREACH ERROR IN ERRORS %]
[% ELSIF ( ERROR.OPNLINK ) %]<li><b>Cannot open [% ERROR.OPNLINK %] to read.<br />Please verify that it exists.</b></li>
[% ELSIF ( ERROR.OPNIMG ) %]<li><b>Cannot open [% ERROR.OPNIMG %] to read.<br />Please verify that it exists.</b></li>
[% ELSIF ( ERROR.DELERR ) %]<li><b>Unrecognized or missing field delimiter.<br />Please verify that you are using either a single quote or a tab.</b></li>
- [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] failed to unpack.<br />Please verify the integrity of the zip file and retry.</b></li>
+ [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] failed to unpack.<br />Please verify the integrity of the ZIP file and retry.</b></li>
[% ELSE %]<li><b>[% ERROR.CORERR %] An unknown error has occurred.<br />Please review the error log for more details.</b></li>[% END %]
[% END %]
</div>
</div>
[% END %]
- </div>
- </div>
</div>
<div class="yui-b noprint">
[% INCLUDE 'tools-menu.inc' %]