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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt (-31 / +37 lines)
Lines 17-42 Link Here
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'patron-search.inc' %]
18
[% INCLUDE 'patron-search.inc' %]
19
19
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Upload patron images </div>
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; [% IF ( TOTAL ) %]<a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a> &rsaquo; Results[% ELSE %]Upload patron images[% END %] </div>
21
21
22
<div id="doc3" class="yui-t2">
22
<div id="doc3" class="yui-t2">
23
    <div id="bd">
23
    <div id="bd">
24
        <div id="yui-main">
24
        <div id="yui-main">
25
[% IF ( TOTAL ) %]
25
[% IF ( TOTAL ) %]
26
    <div class="yui-b">
26
    <div class="yui-b">
27
        <div class="yui-g">
28
            <div class="yui-u first">
29
            [% IF ( ERRORS ) %]
27
            [% IF ( ERRORS ) %]
30
				[% IF ( TCOUNTS ) %]
28
				[% IF ( TCOUNTS ) %]
31
					<div class="dialog alert">
29
					<div class="dialog alert">
32
                    <h3>Patron Image(s) Uploaded with some errors</h3>
30
                    <h3>Patron image(s) uploaded with some errors</h3>
31
                    </div>
33
				[% ELSE %]
32
				[% ELSE %]
34
					<div class="dialog alert">
33
					<div class="dialog alert">
35
                    <h3>Patron image failed to upload</h3>
34
                    <h3>Patron image failed to upload</h3>
35
                    </div>
36
				[% END %]
36
				[% END %]
37
            [% ELSE %]
37
            [% ELSE %]
38
                <div class="dialog message">
38
                <div class="dialog message">
39
                <h3>Patron image(s) successfully uploaded</h3>
39
                <h3>Patron image(s) successfully uploaded</h3>
40
                </div>
40
            [% END %]
41
            [% END %]
41
	        <ul class="data">
42
	        <ul class="data">
42
	            <li>Unpacking completed</li>
43
	            <li>Unpacking completed</li>
Lines 45-85 Link Here
45
                </ul>
46
                </ul>
46
47
47
                [% FOREACH COUNT IN COUNTS %]
48
                [% FOREACH COUNT IN COUNTS %]
48
                    <ul class="data">
49
                <div class="container">
50
                    <table>
51
                        <caption>Results</caption>
52
                        <thead>
53
                            <tr><th>File name</th><th>Card number</th><th>Result</th></tr>
54
                        </thead>
55
                        <tbody>
49
                        [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %]
56
                        [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %]
50
                            [% FOREACH filename IN COUNT.filenames %]
57
                            [% FOREACH filename IN COUNT.filenames %]
51
                                <li>[% filename.source %] - Cardnumber: [% filename.cardnumber %]
58
                                <tr>
52
                                [% IF ( filename.filerrors ) %]
59
                                <td>[% filename.source %]</td>
60
                                <td><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% filename.cardnumber %]">[% filename.cardnumber %]</a></td>
61
                                <td>
62
                                    [% IF ( filename.filerrors ) %]
53
                                    [% FOREACH filerror IN filename.filerrors %]
63
                                    [% FOREACH filerror IN filename.filerrors %]
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.
64
                                        [% IF ( filerror.DBERR ) %]<b>ERROR:</b> Image not imported because the database returned an error. Please refer to the error log for more details.
55
                                        [% ELSIF ( filerror.IMGEXISTS ) %]<br /><b>ERROR:</b> Image not imported because this patron does not exist in the database.
65
                                        [% ELSIF ( filerror.IMGEXISTS ) %]<b>ERROR:</b> Image not imported because this patron does not exist in the database.
56
                                        [% ELSIF ( filerror.MIMERR ) %]<br /><b>ERROR:</b> Image not imported because the image format is unrecognized.
66
                                        [% ELSIF ( filerror.MIMERR ) %]<b>ERROR:</b> Image not imported because the image format is unrecognized.
57
                                        [% ELSIF ( filerror.CORERR ) %]<br /><b>ERROR:</b> Image not imported because the image file is corrupted.
67
                                        [% ELSIF ( filerror.CORERR ) %]<b>ERROR:</b> Image not imported because the image file is corrupted.
58
                                        [% ELSIF ( filerror.OPNERR ) %]<br /><b>ERROR:</b> Image not imported because Koha was unable to open the image for reading.
68
                                        [% ELSIF ( filerror.OPNERR ) %]<b>ERROR:</b> Image not imported because Koha was unable to open the image for reading.
59
                                        [% ELSIF ( filerror.OVRSIZ ) %]<br /><b>ERROR:</b> Image not imported because the image file is too big (see online help for maximum size).
69
                                        [% ELSIF ( filerror.OVRSIZ ) %]<b>ERROR:</b> Image not imported because the image file is too big (see online help for maximum size).
60
                                        [% ELSIF ( filerror.CRDFIL ) %]<br /><b>ERROR:</b> Image not imported ([% filerror.CRDFIL %] missing).
70
                                        [% ELSIF ( filerror.CRDFIL ) %]<b>ERROR:</b> Image not imported ([% filerror.CRDFIL %] missing).
61
                                        [% ELSE %]<br /><b>ERROR:</b> Image not imported because of an unknown error. Please refer to the error log for more details.
71
                                        [% ELSE %]<b>ERROR:</b> Image not imported because of an unknown error. Please refer to the error log for more details.
62
                                        [% END %]
72
                                        [% END %]
63
                                    [% END %]
73
                                    [% END %]
64
                                [% ELSE %] imported successfully.
74
                                [% ELSE %] imported successfully.
65
                                [% END %]
75
                                    [% END %]</td>
66
                                </li>
76
                                </tr>
67
                        [% END %]
77
                        [% END %]
68
                    </ul>
78
                        </tbody>
79
                    </table>
80
                    </div>
69
                [% END %]
81
                [% END %]
70
82
<ul>
71
				</div>
83
                [% IF ( borrowernumber ) %]
72
				[% IF ( borrowernumber ) %]
84
                    <li><a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Return to patron detail</a></li>
73
                    <a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Return to patron detail</a>
85
                [% ELSE %]
74
				[% ELSE %]
86
                    <li><a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload more images</a></li>
75
                    <a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload more images</a>
87
                    <li><a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to tools</a></li>
76
                    <a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to tools</a>
88
                [% END %]</ul>
77
            	[% END %]
78
            </div>
89
            </div>
79
[% ELSE %]
90
[% ELSE %]
80
    <div class="yui-b">
91
    <div class="yui-b">
81
        <div class="yui-g">
82
            <div class="yui-u first">
83
                <h1>Upload patron images</h1>
92
                <h1>Upload patron images</h1>
84
                [% IF ( ERRORS ) %]
93
                [% IF ( ERRORS ) %]
85
                <div class="dialog alert">
94
                <div class="dialog alert">
Lines 122-129 Link Here
122
	
131
	
123
            </div>	
132
            </div>	
124
[% END %]
133
[% END %]
125
        </div>
126
    </div>
127
</div>
134
</div>
128
<div class="yui-b noprint">
135
<div class="yui-b noprint">
129
    [% INCLUDE 'tools-menu.inc' %]
136
    [% INCLUDE 'tools-menu.inc' %]
130
- 

Return to bug 9310