View | Details | Raw Unified | Return to bug 7940
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-10 / +16 lines)
Lines 29-43 function placeHold () { Link Here
29
        alert(MSG_NO_RECORD_SELECTED);
29
        alert(MSG_NO_RECORD_SELECTED);
30
        return false;
30
        return false;
31
    }
31
    }
32
    var bibs = "";
32
33
    var badBibs = false;
33
    var newloc;
34
    $(checkedItems).each(function() {
34
35
        var bib = $(this).val();
35
    if ($(checkedItems).size() > 1) { 
36
        bibs += bib + "/";
36
        var bibs = "";
37
    });
37
        $(checkedItems).each(function() {
38
38
            var bib = $(this).val();
39
    var newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs;
39
            bibs += bib + "/";
40
    if ($(checkedItems).size() > 1) { newloc += "&multi_hold=1"; }
40
        });
41
42
        newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs + "&multi_hold=1";
43
    } else {
44
        var bib = checkedItems[0].value;
45
        newloc = "/cgi-bin/koha/reserve/request.pl?biblionumber=" + bib;        
46
    }
47
41
    window.opener.location = newloc;
48
    window.opener.location = newloc;
42
    window.close();
49
    window.close();
43
}
50
}
44
- 

Return to bug 7940