Lines 200-210
Link Here
|
200 |
<form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form"> |
200 |
<form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form"> |
201 |
|
201 |
|
202 |
[% IF ( multi_hold ) %] |
202 |
[% IF ( multi_hold ) %] |
203 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
|
|
204 |
<input type="hidden" name="request" value="any"/> |
203 |
<input type="hidden" name="request" value="any"/> |
205 |
[% FOREACH biblioloo IN biblioloop %] |
204 |
[% FOREACH biblioloo IN biblioloop %] |
206 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
205 |
[% UNLESS biblioloo.none_avail %] |
207 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
206 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/> |
|
|
207 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
208 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
209 |
[% END %] |
208 |
[% END %] |
210 |
[% END %] |
209 |
[% ELSE %] |
211 |
[% ELSE %] |
210 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
212 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
Lines 446-460
Link Here
|
446 |
<input type="hidden" name="type" value="str8" /> |
448 |
<input type="hidden" name="type" value="str8" /> |
447 |
|
449 |
|
448 |
[% FOREACH biblionumber IN biblionumbers %] |
450 |
[% FOREACH biblionumber IN biblionumbers %] |
449 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
451 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
450 |
[% END %] |
452 |
[% END %] |
451 |
[% IF ( multi_hold ) %] |
453 |
[% IF ( multi_hold ) %] |
452 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
454 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
453 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
|
|
454 |
<input type="hidden" name="request" value="any"/> |
455 |
<input type="hidden" name="request" value="any"/> |
455 |
[% FOREACH biblioloo IN biblioloop %] |
456 |
[% FOREACH biblioloo IN biblioloop %] |
456 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
457 |
[% UNLESS biblioloo.none_avail %] |
457 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
458 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/> |
|
|
459 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
460 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
461 |
[% END %] |
458 |
[% END %] |
462 |
[% END %] |
459 |
[% ELSE %] |
463 |
[% ELSE %] |
460 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
464 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
Lines 1411-1425
Link Here
|
1411 |
return false; |
1415 |
return false; |
1412 |
} |
1416 |
} |
1413 |
|
1417 |
|
1414 |
var badSpans = $(".not_holdable"); |
|
|
1415 |
var badBibs = ""; |
1416 |
$(badSpans).each(function() { |
1417 |
var bibnum = $(this).attr("title"); |
1418 |
badBibs += bibnum + "/"; |
1419 |
}); |
1420 |
|
1421 |
$("#bad_bibs").val(badBibs); |
1422 |
|
1423 |
$('#hold-request-form').preventDoubleFormSubmit(); |
1418 |
$('#hold-request-form').preventDoubleFormSubmit(); |
1424 |
|
1419 |
|
1425 |
return true; |
1420 |
return true; |