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