|
Lines 1-5
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Tools › Batch Deletion of Items</title> |
2 |
<title>Koha › Tools › Batch record of modification</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
|
4 |
|
| 5 |
[% UNLESS ( modsuccess ) %] |
5 |
[% UNLESS ( modsuccess ) %] |
|
Lines 10-19
Link Here
|
| 10 |
|
10 |
|
| 11 |
function fieldChanged(){ |
11 |
function fieldChanged(){ |
| 12 |
var field = $('#fieldchoice').val(); |
12 |
var field = $('#fieldchoice').val(); |
|
|
13 |
$("#loading").html(" <img src=\"/intranet-tmpl/prog/img/loading-small.gif\" alt=\"\" />"); |
| 13 |
$.ajax({ |
14 |
$.ajax({ |
| 14 |
url: CGIBIN + 'tools/batchedit.pl?field=' + field, |
15 |
url: CGIBIN + 'tools/batchedit.pl?field=' + field, |
| 15 |
dataType: 'json', |
16 |
dataType: 'json', |
| 16 |
success: function(data){ |
17 |
success: function(data){ |
|
|
18 |
$("#loading").html(""); |
| 17 |
$("#subfieldchoice option").remove(); |
19 |
$("#subfieldchoice option").remove(); |
| 18 |
|
20 |
|
| 19 |
var subfield = $('#subfieldchoice'); |
21 |
var subfield = $('#subfieldchoice'); |
|
Lines 60-66
Link Here
|
| 60 |
$("#condvaltd").html('<input type="text" name="condvalchoice" id="condvalchoice" />'); |
62 |
$("#condvaltd").html('<input type="text" name="condvalchoice" id="condvalchoice" />'); |
| 61 |
$("#repvaltd").html('<input type="text" name="repvalchoice" id="repvalchoice" />'); |
63 |
$("#repvaltd").html('<input type="text" name="repvalchoice" id="repvalchoice" />'); |
| 62 |
} |
64 |
} |
| 63 |
$('<input type="checkbox" id="nocond" name="nocond" value="nocond" onClick="$(\'#condvalchoice\').attr(\'disabled\', ! $(\'#condvalchoice\').attr(\'disabled\') ) ">All</input>').appendTo("#condvaltd"); |
65 |
$('<label> <input type="checkbox" id="nocond" name="nocond" value="nocond" onClick="$(\'#condvalchoice\').attr(\'disabled\', ! $(\'#condvalchoice\').attr(\'disabled\') ) " /> All</label>').appendTo("#condvaltd"); |
| 64 |
} |
66 |
} |
| 65 |
}); |
67 |
}); |
| 66 |
|
68 |
|
|
Lines 116-139
Link Here
|
| 116 |
<body> |
118 |
<body> |
| 117 |
[% INCLUDE 'header.inc' %] |
119 |
[% INCLUDE 'header.inc' %] |
| 118 |
[% INCLUDE 'cat-search.inc' %] |
120 |
[% INCLUDE 'cat-search.inc' %] |
|
|
121 |
|
| 122 |
<div id="breadcrumbs"> |
| 123 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
| 124 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
| 125 |
<a href="/cgi-bin/koha/tools/batchedit.pl">Batch record modification</a> |
| 126 |
</div> |
| 127 |
|
| 119 |
<div id="doc3" class="yui-t2"> |
128 |
<div id="doc3" class="yui-t2"> |
| 120 |
<div id="bd"> |
129 |
<div id="bd"> |
| 121 |
<div id="yui-main"> |
130 |
<div id="yui-main"> |
| 122 |
<div class="yui-b"> |
131 |
<div class="yui-b"> |
| 123 |
|
132 |
|
| 124 |
<form method="post" enctype="multipart/form-data"> |
133 |
<form method="post" action="/cgi-bin/koha/tools/batchedit.pl" enctype="multipart/form-data"> |
| 125 |
[% IF ( moddone ) %] |
134 |
[% IF ( moddone ) %] |
| 126 |
<div class="dialog message">All operations processed</div> |
135 |
<div class="dialog message">All operations processed</div> |
| 127 |
[% END %] |
136 |
[% END %] |
| 128 |
|
137 |
|
| 129 |
[% UNLESS ( bib_list ) %] |
138 |
[% UNLESS ( bib_list ) %] |
| 130 |
<h2>Batch records modification</h2> |
139 |
<h2>Batch record modification</h2> |
|
|
140 |
<div class="yui-g"> |
| 141 |
<div class="yui-u first"> |
| 131 |
<fieldset class="rows"> |
142 |
<fieldset class="rows"> |
| 132 |
<legend>Use a file of biblionumbers</legend> |
143 |
<legend>Use a file of biblionumbers</legend> |
| 133 |
<ol> |
144 |
<ol> |
| 134 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
145 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
| 135 |
</ol> |
146 |
</ol> |
| 136 |
</fieldset> |
147 |
</fieldset> |
|
|
148 |
</div> |
| 149 |
<div class="yui-u"> |
| 150 |
<div class="container"> |
| 151 |
<p><b>Reminder</b>: You can also add records to your cart and reach this page from the cart.</p> |
| 152 |
</div> |
| 153 |
</div> |
| 154 |
</div> |
| 137 |
<fieldset class="rows"> |
155 |
<fieldset class="rows"> |
| 138 |
<legend>Or enter records one by one</legend> |
156 |
<legend>Or enter records one by one</legend> |
| 139 |
<ol> |
157 |
<ol> |
|
Lines 142-148
Link Here
|
| 142 |
<textarea rows="10" cols="30" id="recordslist" name="recordslist"></textarea> |
160 |
<textarea rows="10" cols="30" id="recordslist" name="recordslist"></textarea> |
| 143 |
</li> |
161 |
</li> |
| 144 |
</ol> |
162 |
</ol> |
| 145 |
<p><b>Reminder</b>: you can also add biblios to your cart and reach this page from the cart</p> |
163 |
|
| 146 |
</fieldset> |
164 |
</fieldset> |
| 147 |
[% ELSE %] |
165 |
[% ELSE %] |
| 148 |
<h2>List of records:</h2> |
166 |
<h2>List of records:</h2> |
|
Lines 155-161
Link Here
|
| 155 |
[% FOREACH biblioinfo IN biblioinfos %] |
173 |
[% FOREACH biblioinfo IN biblioinfos %] |
| 156 |
<tr> |
174 |
<tr> |
| 157 |
<td>[% biblioinfo.biblionumber %]</td> |
175 |
<td>[% biblioinfo.biblionumber %]</td> |
| 158 |
<td>[% biblioinfo.title %]</td> |
176 |
<td>[% biblionumber = biblioinfo.biblionumber %] [% INCLUDE 'biblio-default-view.inc' %][% IF ( biblioinfo.title ) %][% biblioinfo.title |html %][% ELSE %]No title[% END %]</a></td> |
| 159 |
<td>[% biblioinfo.author %]</td> |
177 |
<td>[% biblioinfo.author %]</td> |
| 160 |
[% IF ( moddone ) %] |
178 |
[% IF ( moddone ) %] |
| 161 |
[% IF ( biblioinfo.OK ) %] |
179 |
[% IF ( biblioinfo.OK ) %] |
|
Lines 180-186
Link Here
|
| 180 |
[% IF ( bib_list ) %] |
198 |
[% IF ( bib_list ) %] |
| 181 |
<fieldset class="rows"> |
199 |
<fieldset class="rows"> |
| 182 |
<h2>Modification rules:</h2> |
200 |
<h2>Modification rules:</h2> |
| 183 |
<input type="submit" value="Submit" /> |
|
|
| 184 |
<input type="hidden" name="op" value="do" /> |
201 |
<input type="hidden" name="op" value="do" /> |
| 185 |
<input type="hidden" name="bib_list" value="[% bib_list %]" /> |
202 |
<input type="hidden" name="bib_list" value="[% bib_list %]" /> |
| 186 |
<table id="rulestable"> |
203 |
<table id="rulestable"> |
|
Lines 192-197
Link Here
|
| 192 |
<tr> |
209 |
<tr> |
| 193 |
<td> |
210 |
<td> |
| 194 |
<select name="fieldchoice" id="fieldchoice" onchange="fieldChanged();"> |
211 |
<select name="fieldchoice" id="fieldchoice" onchange="fieldChanged();"> |
|
|
212 |
<option value=""></option> |
| 195 |
[% FOREACH marcfield IN marcfields %] |
213 |
[% FOREACH marcfield IN marcfields %] |
| 196 |
<option value="[% marcfield.tag %]">[% marcfield.tag %]</option> |
214 |
<option value="[% marcfield.tag %]">[% marcfield.tag %]</option> |
| 197 |
[% END %] |
215 |
[% END %] |
|
Lines 199-206
Link Here
|
| 199 |
</td> |
217 |
</td> |
| 200 |
<td> |
218 |
<td> |
| 201 |
<select name="subfieldchoice" id="subfieldchoice" onchange="subfieldChanged();"> |
219 |
<select name="subfieldchoice" id="subfieldchoice" onchange="subfieldChanged();"> |
| 202 |
|
220 |
</select><span id="loading"></span> |
| 203 |
</select> |
|
|
| 204 |
</td> |
221 |
</td> |
| 205 |
<td> |
222 |
<td> |
| 206 |
<select name="actionchoice" id="actionchoice"> |
223 |
<select name="actionchoice" id="actionchoice"> |
|
Lines 212-218
Link Here
|
| 212 |
</td> |
229 |
</td> |
| 213 |
<td id="condvaltd"> |
230 |
<td id="condvaltd"> |
| 214 |
<input type="text" name="condvalchoice" id="condvalchoice" /> |
231 |
<input type="text" name="condvalchoice" id="condvalchoice" /> |
| 215 |
<input type="checkbox" id="nocond" name="nocond" value="nocond" onClick="$('#condvalchoice').attr('disabled', ! $('#condvalchoice').attr('disabled') ) ">All</input> |
232 |
<label> <input type="checkbox" id="nocond" name="nocond" value="nocond" onclick="$('#condvalchoice').attr('disabled', ! $('#condvalchoice').attr('disabled') ) " /> All </label> |
| 216 |
</td> |
233 |
</td> |
| 217 |
<td id="repvaltd"> |
234 |
<td id="repvaltd"> |
| 218 |
<input type="text" name="repvalchoice" id="repvalchoice" /> |
235 |
<input type="text" name="repvalchoice" id="repvalchoice" /> |
|
Lines 223-240
Link Here
|
| 223 |
|
240 |
|
| 224 |
</table> |
241 |
</table> |
| 225 |
<input type="hidden" name="bib_list" value="[% bib_list %]" /> |
242 |
<input type="hidden" name="bib_list" value="[% bib_list %]" /> |
| 226 |
<input type="submit" value="Submit" /> (don't forget to click "Add" button on the right of the previous form before submitting) |
243 |
<fieldset class="action"><input type="submit" value="Submit" /> (don't forget to click "Add" button on the right of the previous form before submitting)</fieldset> |
| 227 |
</fieldset> |
244 |
</fieldset> |
| 228 |
</form> |
245 |
</form> |
| 229 |
[% ELSE %] |
246 |
[% ELSE %] |
| 230 |
<input type="submit" value="Submit" /> |
247 |
<fieldset class="action"><input type="submit" value="Submit" /></fieldset> |
| 231 |
</fieldset> |
|
|
| 232 |
</form> |
248 |
</form> |
| 233 |
[% END %] |
249 |
[% END %] |
| 234 |
[% END %] |
250 |
[% END %] |
| 235 |
</div> |
251 |
</div> |
| 236 |
</div> |
252 |
</div> |
|
|
253 |
<div class="yui-b"> |
| 254 |
[% INCLUDE 'tools-menu.inc' %] |
| 255 |
</div> |
| 237 |
</div> |
256 |
</div> |
| 238 |
</div> |
257 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 239 |
</body> |
|
|
| 240 |
</html> |