|
Lines 394-400
Link Here
|
| 394 |
<tr class="holdable"> |
394 |
<tr class="holdable"> |
| 395 |
[% END %] |
395 |
[% END %] |
| 396 |
<td class="copynumber" data-order="[% itemLoo.copynumber | html %]"> |
396 |
<td class="copynumber" data-order="[% itemLoo.copynumber | html %]"> |
| 397 |
<input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" /> |
397 |
<input type="checkbox" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" /> |
| 398 |
[% ELSE %] |
398 |
[% ELSE %] |
| 399 |
[% SET unholdable_items = 1 %] |
399 |
[% SET unholdable_items = 1 %] |
| 400 |
[% IF ( itemLoo.checkout ) %] |
400 |
[% IF ( itemLoo.checkout ) %] |
|
Lines 657-663
Link Here
|
| 657 |
$(".confirmjs:checked").each(function() { |
657 |
$(".confirmjs:checked").each(function() { |
| 658 |
var biblioNum = $(this).val(); |
658 |
var biblioNum = $(this).val(); |
| 659 |
biblionumbers += biblioNum + "/"; |
659 |
biblionumbers += biblioNum + "/"; |
| 660 |
selections += biblioNum + "/"; |
660 |
let select_bib = biblioNum; |
|
|
661 |
let select_pickup; |
| 662 |
let select_items = []; |
| 661 |
|
663 |
|
| 662 |
// If required hold note is empty, make it visible |
664 |
// If required hold note is empty, make it visible |
| 663 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
665 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
|
Lines 683-705
Link Here
|
| 683 |
// If the 'specific copy' radio button is checked |
685 |
// If the 'specific copy' radio button is checked |
| 684 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
686 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
| 685 |
// Find the selected copy |
687 |
// Find the selected copy |
| 686 |
var item = $(".checkitem_" + biblioNum + ":checked"); |
688 |
var items = $(".checkitem_" + biblioNum + ":checked"); |
| 687 |
if ($(item).size() == 0) { |
689 |
if ($(items).size() == 0) { |
| 688 |
alert(MSG_NO_ITEM_SELECTED); |
690 |
alert(MSG_NO_ITEM_SELECTED); |
| 689 |
badBib = biblioNum; |
691 |
badBib = biblioNum; |
| 690 |
return false; |
692 |
return false; |
| 691 |
} else { |
693 |
} else { |
| 692 |
selections += $(item).val(); |
694 |
items.each( function(index,el){ |
|
|
695 |
select_items.push( $(el).val() ); |
| 696 |
}); |
| 693 |
} |
697 |
} |
| 694 |
} |
698 |
} |
| 695 |
selections += "/"; |
|
|
| 696 |
|
699 |
|
| 697 |
// Add the pickup location |
700 |
// Add the pickup location |
| 698 |
var branchSel = $("#branch_" + biblioNum); |
701 |
var branchSel = $("#branch_" + biblioNum); |
| 699 |
if (branchSel.size() > 0) { |
702 |
if (branchSel.size() > 0) { |
| 700 |
selections += $(branchSel).val(); |
703 |
select_pickup = $(branchSel).val(); |
|
|
704 |
} |
| 705 |
if ( select_items.length > 0 ){ |
| 706 |
select_items.forEach( function(item_value,index){ |
| 707 |
selections += select_bib + "/" + item_value + "/" + select_pickup + "/"; |
| 708 |
}); |
| 709 |
} |
| 710 |
else { |
| 711 |
selections += select_bib + "/" + "/" + select_pickup + "/"; |
| 701 |
} |
712 |
} |
| 702 |
selections += "/"; |
|
|
| 703 |
return true; |
713 |
return true; |
| 704 |
}); |
714 |
}); |
| 705 |
|
715 |
|
| 706 |
- |
|
|