Revert "Bug 15682 - Only allow merging of 2 or more records form lsits (for consistency)"
This reverts commit bde65f116c.
This commit is contained in:
parent
bde65f116c
commit
0f29a07371
|
|
@ -197,15 +197,15 @@ $(document).ready(function(){
|
|||
*/
|
||||
function MergeItems() {
|
||||
var checkboxes = $("input:checkbox:checked");
|
||||
if (checkboxes.length < 2) {
|
||||
alert(_("At least two records must be selected for merging."));
|
||||
} else {
|
||||
if (checkboxes.length > 0) {
|
||||
var params = [];
|
||||
$(checkboxes).each(function() {
|
||||
params.push('biblionumber=' + $(this).val());
|
||||
});
|
||||
var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&');
|
||||
location.href = url;
|
||||
} else {
|
||||
alert(_("You must select at least one record"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue