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