Bug 15682 - Only allow merging of 2 or more records form lsits (for consistency)
Test as above but on shelves.pl
Signed-off-by: Chris Cormack <chrisc@catalyst.net.z>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
(cherry picked from commit 9550e37fc6)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
584059a9b8
commit
bde65f116c
|
|
@ -197,15 +197,15 @@ $(document).ready(function(){
|
|||
*/
|
||||
function MergeItems() {
|
||||
var checkboxes = $("input:checkbox:checked");
|
||||
if (checkboxes.length > 0) {
|
||||
if (checkboxes.length < 2) {
|
||||
alert(_("At least two records must be selected for merging."));
|
||||
} else {
|
||||
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