1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Upload Patron Images</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 $(document).ready(function() {
6 $("#zipfile").click(function(){
9 $("#image").click(function(){
17 <!-- TMPL_INCLUDE NAME="header.inc" -->
18 <!-- TMPL_INCLUDE NAME="patron-search.inc"-->
20 <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>
22 <div id="doc3" class="yui-t2">
25 <!-- TMPL_IF name="TOTAL" -->
28 <div class="yui-u first">
29 <!-- TMPL_IF name="ERRORS" -->
30 <div class="dialog alert">
31 <h3>Patron Image(s) Uploaded With Some Errors</h3>
33 <div class="dialog message">
34 <h3>Patron Image(s) Successfully Uploaded</h3>
37 <li>Unpacking completed</li>
38 <li><!-- TMPL_VAR NAME ="TOTAL" --> directories scanned.</li>
39 <li><!-- TMPL_VAR NAME="HANDLED" --> directories processed.</li>
41 <!-- TMPL_LOOP name="COUNTS" -->
43 <li><!-- TMPL_VAR name="TCOUNTS" --> image(s) moved into the database:</li>
44 <!-- TMPL_LOOP name="filenames" -->
45 <li><!-- TMPL_VAR name="source" --> - Cardnumber: <!-- TMPL_VAR name="cardnumber" -->
46 <!-- TMPL_IF NAME="filerrors" --><br /> <b>WARNING:</b> This image <i>not</i> imported because
47 <!-- TMPL_LOOP NAME="filerrors" -->
48 <!-- TMPL_IF NAME="DBERR" -->the database returned an error. Please refer to the error log for more details.</li>
49 <!-- TMPL_ELSIF NAME="IMGEXISTS" -->this patron does not exist in the database.</li>
50 <!-- TMPL_ELSIF NAME="MIMERR" -->the image format is unrecognized.</li>
51 <!-- TMPL_ELSIF NAME="OPNERR" -->Koha was unable to open the image for reading.</li>
52 <!-- TMPL_ELSIF NAME="OVRSIZ" -->the image file is too big.</li>
53 <!-- TMPL_ELSIF NAME="CRDFIL" -->the <!-- TMPL_VAR NAME="CRDFIL" --> is missing.</li>
54 <!-- TMPL_ELSE -->of an unknown error. Please refer to the error log for more details.</li><!-- /TMPL_IF -->
56 <!--TMPL_ELSE --> imported successfully.</li>
63 <a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload More Images</a>
64 <a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to Tools</a>
69 <div class="yui-u first">
70 <h1>Upload Patron Images</h1>
71 <!-- TMPL_IF name="ERRORS" -->
72 <div class="dialog alert">
73 <!-- TMPL_LOOP name="ERRORS" -->
74 <!-- TMPL_IF name="NOTZIP" --><li><b>The upload file does not appear to be a zip file. The extention is not '.zip'.</b></li>
75 <!-- TMPL_ELSIF name="NOWRITETEMP" --><li><b>This script is not able to create/write to the necessary temporary directory.</b></li>
76 <!-- TMPL_ELSIF name="EMPTYUPLOAD" --><li><b>The upload file appears to be empty.</b></li>
77 <!-- TMPL_ELSIF name="OPNLINK" --><li><b>Cannot open <!-- TMPL_VAR NAME="OPNLINK" --> to read.<br />Please verify that it exists.</b></li>
78 <!-- TMPL_ELSIF name="OPNIMG" --><li><b>Cannot open <!-- TMPL_VAR NAME="OPNIMG" --> to read.<br />Please verify that it exists.</b></li>
79 <!-- TMPL_ELSIF name="DELERR" --><li><b>Unrecognized or missing field delimeter.<br />Please verify that you are using either a single quote or a tab.</b></li>
80 <!-- TMPL_ELSIF name="UZIPFAIL" --><li><b><!-- TMPL_VAR name="UZIPFAIL" --> failed to unpack.<br />Please verify the integrity of the zip file and retry.</b></li>
81 <!-- TMPL_ELSE --><li><b>An unknown error has occurred.<br />Please review the error log for more details.</b></li><!-- /TMPL_IF -->
85 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
86 <fieldset class="brief">
89 <label for="zipfile"><input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> zip file</label></li>
92 <!-- TMPL_IF EXPR="filetype eq 'image'" --><input type="radio" id="image" name="filetype" value="image" checked="checked" /><!-- TMPL_ELSE --><input type="radio" id="image" name="filetype" value="image" /><!-- /TMPL_IF -->
96 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
97 <!-- TMPL_IF EXPR="filetype eq 'image'" --><span id="cardnum"><!-- TMPL_ELSE --><span id="cardnum" style="display: none"><!-- /TMPL_IF --><label for="cardnumber">Enter patron cardnumber: </label><input type="text" id="cardnumber" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" size="15" /></span>
102 <fieldset class="action">
103 <input type="submit" name="op" value="Upload" class="submit" />
104 <input type="submit" name="op" value="Cancel" class="submit" />
113 <div class="yui-b noprint">
114 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
117 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->