Lines 16-25
Link Here
|
16 |
<div id="breadcrumbs"> |
16 |
<div id="breadcrumbs"> |
17 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
17 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
18 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
18 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
19 |
[% IF ( uploadimage ) %] |
19 |
<a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a> |
20 |
<a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a> › Upload results |
20 |
[% IF ( uploadimage ) %] › Upload results |
21 |
[% ELSE %] |
21 |
[% ELSIF itemnumber %] › Upload cover for itemnumber: [% itemnumber | html %] |
22 |
Upload local cover image |
22 |
[% ELSIF biblionumber %] › Upload cover for biblionumber: [% biblionumber | html %] |
23 |
[% END %] |
23 |
[% END %] |
24 |
</div> |
24 |
</div> |
25 |
|
25 |
|
Lines 28-37
Link Here
|
28 |
<div class="col-sm-10 col-sm-push-2"> |
28 |
<div class="col-sm-10 col-sm-push-2"> |
29 |
<main> |
29 |
<main> |
30 |
|
30 |
|
31 |
<h1>Upload local cover image</h1> |
|
|
32 |
|
33 |
[% IF ( uploadimage ) %] |
31 |
[% IF ( uploadimage ) %] |
34 |
<p>Image upload results :</p> |
32 |
<h1>Image upload results :</h1> |
35 |
<ul> |
33 |
<ul> |
36 |
<li>[% total | html %] images found</li> |
34 |
<li>[% total | html %] images found</li> |
37 |
[% IF ( error ) %] |
35 |
[% IF ( error ) %] |
Lines 58-65
Link Here
|
58 |
</ul> |
56 |
</ul> |
59 |
<hr /> |
57 |
<hr /> |
60 |
[% END # /IF uploadimage %] |
58 |
[% END # /IF uploadimage %] |
|
|
59 |
|
60 |
[% UNLESS itemnumber || biblionumber %] |
61 |
<h1>Upload local cover image</h1> |
62 |
[% ELSIF itemnumber %] |
63 |
<h1>Upload local cover image for itemnumber: [% itemnumber | html %]</h1> |
64 |
[% ELSIF biblionumber %] |
65 |
<h1>Upload local cover image for biblionumber: [% biblionumber | html %]</h1> |
66 |
[% END %] |
67 |
|
61 |
<ul> |
68 |
<ul> |
62 |
<li>Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.</li> |
69 |
[% UNLESS itemnumber || biblionumber %] |
|
|
70 |
<li>Select an image file or ZIP file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.</li> |
71 |
[% ELSE %] |
72 |
<li>Select an image file to upload. The tool will accept images in GIF, JPEG, PNG, and XPM formats.</li> |
73 |
[% END %] |
63 |
</ul> |
74 |
</ul> |
64 |
|
75 |
|
65 |
<form method="post" action="/cgi-bin/koha/tools/upload-cover-image.pl" id="uploadfile" enctype="multipart/form-data"> |
76 |
<form method="post" action="/cgi-bin/koha/tools/upload-cover-image.pl" id="uploadfile" enctype="multipart/form-data"> |
Lines 88-102
Link Here
|
88 |
</form> <!-- /#uploadfile --> |
99 |
</form> <!-- /#uploadfile --> |
89 |
|
100 |
|
90 |
<form method="post" id="processfile" action="/cgi-bin/koha/tools/upload-cover-image.pl" enctype="multipart/form-data"> |
101 |
<form method="post" id="processfile" action="/cgi-bin/koha/tools/upload-cover-image.pl" enctype="multipart/form-data"> |
91 |
<fieldset class="rows"> |
102 |
<input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" /> |
92 |
<input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" /> |
103 |
<input type="hidden" name="runinbackground" id="runinbackground" value="" /> |
93 |
<input type="hidden" name="runinbackground" id="runinbackground" value="" /> |
104 |
<input type="hidden" name="completedJobID" id="completedJobID" value="" /> |
94 |
<input type="hidden" name="completedJobID" id="completedJobID" value="" /> |
105 |
[% UNLESS itemnumber || biblionumber %] |
95 |
</fieldset> |
106 |
<fieldset class="rows"> |
96 |
<fieldset class="rows"> |
107 |
<legend>File type</legend> |
97 |
<legend>File type</legend> |
108 |
<ol> |
98 |
<ol> |
|
|
99 |
[% UNLESS itemnumber %] |
100 |
<li class="radio"> |
109 |
<li class="radio"> |
101 |
[% IF (filetype != 'image' ) %] |
110 |
[% IF (filetype != 'image' ) %] |
102 |
<input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> |
111 |
<input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> |
Lines 122-134
Link Here
|
122 |
<label for="biblionumber">Enter cover biblionumber: </label> |
131 |
<label for="biblionumber">Enter cover biblionumber: </label> |
123 |
<input type="text" id="biblionumber" name="biblionumber" value="[% biblionumber | html %]" size="15" /></span> |
132 |
<input type="text" id="biblionumber" name="biblionumber" value="[% biblionumber | html %]" size="15" /></span> |
124 |
</li> |
133 |
</li> |
125 |
[% ELSE %] |
134 |
</ol> |
126 |
<label for="itemnumber">Cover itemnumber: </label> |
135 |
</fieldset> |
127 |
<input type="text" id="itemnumber" name="itemnumber" value="[% itemnumber | html %]" size="15" readonly="readonly" /> |
136 |
[% ELSIF itemnumber %] |
128 |
<input type="hidden" name="filetype" value="image" /> |
137 |
<input type="hidden" id="itemnumber" name="itemnumber" value="[% itemnumber | html %]" /> |
129 |
[% END %] |
138 |
<input type="hidden" name="filetype" value="image" /> |
130 |
</ol> |
139 |
[% ELSIF biblionumber %] |
131 |
</fieldset> |
140 |
<input type="hidden" id="biblionumber" name="biblionumber" value="[% biblionumber | html %]" /> |
|
|
141 |
<input type="hidden" name="filetype" value="image" /> |
142 |
[% END %] |
132 |
<fieldset class="rows"> |
143 |
<fieldset class="rows"> |
133 |
<legend>Options</legend> |
144 |
<legend>Options</legend> |
134 |
<ol> |
145 |
<ol> |
135 |
- |
|
|