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 |
var newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs + "&multi_hold=1"; |
43 |
} else { |
44 |
var bib = ""; |
45 |
$(checkedItems).each(function() { |
46 |
bib = $(this).val(); |
47 |
}); |
48 |
|
49 |
var newloc = "/cgi-bin/koha/reserve/request.pl?biblionumber=" + bib; |
50 |
} |
51 |
|
41 |
window.opener.location = newloc; |
52 |
window.opener.location = newloc; |
42 |
window.close(); |
53 |
window.close(); |
43 |
} |
54 |
} |
44 |
- |
|
|