Lines 73-81
Link Here
|
73 |
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl" id="record_ids_selection"> |
73 |
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl" id="record_ids_selection"> |
74 |
<fieldset class="rows"> |
74 |
<fieldset class="rows"> |
75 |
<legend>Record type</legend> |
75 |
<legend>Record type</legend> |
76 |
<ol> |
76 |
<ol class="radio"> |
77 |
<li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li> |
77 |
<li><label for="biblio_type"><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /> Bibliographic records</label></li> |
78 |
<li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li> |
78 |
<li><label for="authority_type"><input type="radio" name="recordtype" value="authority" id="authority_type" /> Authority records</label></li> |
79 |
</ol> |
79 |
</ol> |
80 |
</fieldset> |
80 |
</fieldset> |
81 |
|
81 |
|
Lines 290-297
Link Here
|
290 |
$("input[type='radio']").click(function() { |
290 |
$("input[type='radio']").click(function() { |
291 |
if ($(this).attr('id') == 'authority_type') { |
291 |
if ($(this).attr('id') == 'authority_type') { |
292 |
$("a[href='#shelves_tab_panel']").parent().hide(); |
292 |
$("a[href='#shelves_tab_panel']").parent().hide(); |
|
|
293 |
$("a[href='#uploadfile_tab_panel']").tab("show"); |
293 |
} else if ($(this).attr('id') == 'biblio_type') { |
294 |
} else if ($(this).attr('id') == 'biblio_type') { |
294 |
$("a[href='#shelves_tab_panel']").parent().show(); |
295 |
$("a[href='#shelves_tab_panel']").parent().show(); |
|
|
296 |
$("a[href='#uploadfile_tab_panel']").tab("show"); |
295 |
} |
297 |
} |
296 |
}); |
298 |
}); |
297 |
|
299 |
|
Lines 346-359
Link Here
|
346 |
$("#record_ids_selection").on("submit", function(e) { |
348 |
$("#record_ids_selection").on("submit", function(e) { |
347 |
var tab = $(this).find('#batch_mod_form li.active:first a').attr('href'); |
349 |
var tab = $(this).find('#batch_mod_form li.active:first a').attr('href'); |
348 |
if (tab == '#uploadfile_tab_panel') { |
350 |
if (tab == '#uploadfile_tab_panel') { |
349 |
$("#shelf_number").empty(''); |
351 |
$("#recordnumber_list, #shelf_number").val(''); |
350 |
$("#recordnumber_list").val(''); |
|
|
351 |
} else if (tab == '#shelves_tab_panel') { |
352 |
} else if (tab == '#shelves_tab_panel') { |
352 |
$("#uploadfile").val('') |
353 |
$("#recordnumber_list, #uploadfile").val(''); |
353 |
$("#recordnumber_list").val(''); |
|
|
354 |
} else { // enterlist |
354 |
} else { // enterlist |
355 |
$("#uploadfile").val('') |
355 |
$("#uploadfile, #shelf_number").val('') |
356 |
$("#shelf_number").empty(''); |
|
|
357 |
} |
356 |
} |
358 |
}); |
357 |
}); |
359 |
|
358 |
|
360 |
- |
|
|