View | Details | Raw Unified | Return to bug 8573
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt (-16 / +18 lines)
Lines 43-68 Link Here
43
                  <li>[% TOTAL %] directories scanned.</li>
43
                  <li>[% TOTAL %] directories scanned.</li>
44
                    <li>[% HANDLED %] directories processed.</li>
44
                    <li>[% HANDLED %] directories processed.</li>
45
                </ul>
45
                </ul>
46
46
                [% FOREACH COUNT IN COUNTS %]
47
                [% FOREACH COUNT IN COUNTS %]
47
	            <ul class="data">
48
                    <ul class="data">
48
                        [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %]
49
                        [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %]
49
                        [% FOREACH filename IN COUNT.filenames %]
50
                            [% FOREACH filename IN COUNT.filenames %]
50
                            <li>[% filename.source %] - Cardnumber: [% filename.cardnumber %]
51
                                <li>[% filename.source %] - Cardnumber: [% filename.cardnumber %]
51
                                    [% IF ( filename.filerrors ) %]<br /> <b>WARNING:</b> This image <i>not</i> imported because 
52
                                [% IF ( filename.filerrors ) %]
52
                                    [% FOREACH filerror IN filename.filerrors %]
53
                                    [% FOREACH filerror IN filename.filerrors %]
53
                                        [% IF ( filerror.DBERR ) %]the database returned an error. Please refer to the error log for more details.</li>
54
                                        [% IF ( filerror.DBERR ) %]<br /><b>ERROR:</b> Image not imported because the database returned an error. Please refer to the error log for more details.
54
                                        [% ELSIF ( filerror.IMGEXISTS ) %]this patron does not exist in the database.</li>
55
                                        [% ELSIF ( filerror.IMGEXISTS ) %]<br /><b>ERROR:</b> Image not imported because this patron does not exist in the database.
55
                                        [% ELSIF ( filerror.MIMERR ) %]the image format is unrecognized.</li>
56
                                        [% ELSIF ( filerror.MIMERR ) %]<br /><b>ERROR:</b> Image not imported because the image format is unrecognized.
56
                                        [% ELSIF ( filerror.CORERR ) %]the image file is corrupted.</li>
57
                                        [% ELSIF ( filerror.CORERR ) %]<br /><b>ERROR:</b> Image not imported because the image file is corrupted.
57
                                        [% ELSIF ( filerror.OPNERR ) %]Koha was unable to open the image for reading.</li>
58
                                        [% ELSIF ( filerror.OPNERR ) %]<br /><b>ERROR:</b> Image not imported because Koha was unable to open the image for reading.
58
                                        [% ELSIF ( filerror.OVRSIZ ) %]the image file is too big.</li>
59
                                        [% ELSIF ( filerror.OVRSIZ ) %]<br /><b>ERROR:</b> Image not imported because the image file is too big (see online help for maximum size).
59
                                        [% ELSIF ( filerror.CRDFIL ) %]the [% filerror.CRDFIL %] is missing.</li>
60
                                        [% ELSIF ( filerror.CRDFIL ) %]<br /><b>ERROR:</b> Image not imported ([% filerror.CRDFIL %] missing).
60
                                        [% ELSE %]of an unknown error. Please refer to the error log for more details.</li>[% END %]
61
                                        [% ELSE %]<br /><b>ERROR:</b> Image not imported because of an unknown error. Please refer to the error log for more details.
61
                                    [% END %]
62
                                        [% END %]
62
                                        [% ELSE %] imported successfully.</li>
63
                                    [% END %]
63
                                    [% END %]
64
                                [% ELSE %] imported successfully.
65
                                [% END %]
66
                                </li>
64
                        [% END %]
67
                        [% END %]
65
                        </ul>
68
                    </ul>
66
                [% END %]
69
                [% END %]
67
70
68
				</div>
71
				</div>
69
- 

Return to bug 8573