Lines 245-263
Link Here
|
245 |
</form> <!-- /#process --> |
245 |
</form> <!-- /#process --> |
246 |
[% ELSE %] |
246 |
[% ELSE %] |
247 |
<div class="dialog message"> |
247 |
<div class="dialog message"> |
248 |
No records were modified. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
248 |
No records were modified. [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %] |
249 |
</div> |
249 |
</div> |
250 |
[% END %] |
250 |
[% END %] |
251 |
[% ELSIF view == 'report' %] |
251 |
[% ELSIF view == 'report' %] |
252 |
[% IF report.total_records == report.total_success %] |
252 |
[% IF report.total_records == report.total_success %] |
253 |
<div class="dialog message"> |
253 |
<div class="dialog message"> |
254 |
All records have successfully been modified! <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
254 |
All records have successfully been modified! [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %] |
255 |
</div> |
255 |
</div> |
256 |
[% ELSE %] |
256 |
[% ELSE %] |
257 |
<div class="dialog message"> |
257 |
<div class="dialog message"> |
258 |
[% report.total_success | html %] / [% report.total_records | html %] records have successfully been modified. Some errors occurred. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
258 |
[% report.total_success | html %] / [% report.total_records | html %] records have successfully been modified. Some errors occurred. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
259 |
</div> |
259 |
</div> |
260 |
[% END %] |
260 |
[% END %] |
|
|
261 |
|
262 |
[% IF recordtype == 'biblio' %] |
263 |
<h3>Next steps</h3> |
264 |
<ul> |
265 |
<li><a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
266 |
[% IF lists.count %] |
267 |
<li> |
268 |
<label for="add_bibs_to_list">Add modified records to the following list: </label> |
269 |
<select name="add_bibs_to_list" id="add_bibs_to_list"> |
270 |
<option value="">Select a list</option> |
271 |
[% FOREACH list IN lists %] |
272 |
<option class="shelf" value="[% list.shelfnumber %]">[% list.shelfname %]</option> |
273 |
[% END %] |
274 |
</select> |
275 |
</li> |
276 |
[% END %] |
277 |
</ul> |
278 |
[% END %] |
261 |
[% ELSIF view == 'errors' %] |
279 |
[% ELSIF view == 'errors' %] |
262 |
[% FOR error IN errors %] |
280 |
[% FOR error IN errors %] |
263 |
[% IF error == 'no_template_defined' %] |
281 |
[% IF error == 'no_template_defined' %] |
Lines 376-381
Link Here
|
376 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> " + _("Loading") + "</div>"); |
394 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> " + _("Loading") + "</div>"); |
377 |
}); |
395 |
}); |
378 |
|
396 |
|
|
|
397 |
$("#add_bibs_to_list").change(function(){ |
398 |
var selected = $("#add_bibs_to_list").find("option:selected"); |
399 |
if ( selected.attr("class") == "shelf" ){ |
400 |
var shelfnumber = selected.attr("value"); |
401 |
var bibs = new Array(); |
402 |
[% FOREACH message IN messages %] |
403 |
[% IF message.code == 'biblio_modified' %] |
404 |
bibs.push("biblionumber="+[% message.biblionumber %]); |
405 |
[% END %] |
406 |
[% END %] |
407 |
var bibstring = bibs.join("&"); |
408 |
window.open('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&'+bibstring, 'popup', 'width=500,height=500,toolbar=false,scrollbars=yes,resizeable=yes'); |
409 |
return false; |
410 |
} |
411 |
}); |
412 |
|
379 |
}); |
413 |
}); |
380 |
</script> |
414 |
</script> |
381 |
[% END %] |
415 |
[% END %] |