|
Lines 199-213
$(document).ready(function(){
Link Here
|
| 199 |
*/ |
199 |
*/ |
| 200 |
function MergeItems() { |
200 |
function MergeItems() { |
| 201 |
var checkboxes = $("input:checkbox:checked"); |
201 |
var checkboxes = $("input:checkbox:checked"); |
| 202 |
if (checkboxes.length > 0) { |
202 |
if (checkboxes.length < 2) { |
|
|
203 |
alert(_("At least two records must be selected for merging.")); |
| 204 |
} else { |
| 203 |
var params = []; |
205 |
var params = []; |
| 204 |
$(checkboxes).each(function() { |
206 |
$(checkboxes).each(function() { |
| 205 |
params.push('biblionumber=' + $(this).val()); |
207 |
params.push('biblionumber=' + $(this).val()); |
| 206 |
}); |
208 |
}); |
| 207 |
var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&'); |
209 |
var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&'); |
| 208 |
location.href = url; |
210 |
location.href = url; |
| 209 |
} else { |
|
|
| 210 |
alert(_("You must select at least one record")); |
| 211 |
} |
211 |
} |
| 212 |
return false; |
212 |
return false; |
| 213 |
} |
213 |
} |
| 214 |
- |
|
|