|
Lines 649-655
Link Here
|
| 649 |
$(".confirmjs:checked").each(function() { |
649 |
$(".confirmjs:checked").each(function() { |
| 650 |
var biblioNum = $(this).val(); |
650 |
var biblioNum = $(this).val(); |
| 651 |
biblionumbers += biblioNum + "/"; |
651 |
biblionumbers += biblioNum + "/"; |
| 652 |
selections += biblioNum + "/"; |
652 |
|
|
|
653 |
var select_bib = biblioNum; |
| 654 |
var select_pickup; |
| 655 |
var select_items = [] |
| 653 |
|
656 |
|
| 654 |
// If required hold note is empty, make it visible |
657 |
// If required hold note is empty, make it visible |
| 655 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
658 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
|
Lines 661-683
Link Here
|
| 661 |
// If the 'specific copy' radio button is checked |
664 |
// If the 'specific copy' radio button is checked |
| 662 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
665 |
if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) { |
| 663 |
// Find the selected copy |
666 |
// Find the selected copy |
| 664 |
var item = $(".checkitem_" + biblioNum + ":checked"); |
667 |
var items = $(".checkitem_" + biblioNum + ":checked"); |
| 665 |
if ($(item).size() == 0) { |
668 |
if ($(items).size() == 0) { |
| 666 |
alert(MSG_NO_ITEM_SELECTED); |
669 |
alert(MSG_NO_ITEM_SELECTED); |
| 667 |
badBib = biblioNum; |
670 |
badBib = biblioNum; |
| 668 |
return false; |
671 |
return false; |
| 669 |
} else { |
672 |
} else { |
| 670 |
selections += $(item).val(); |
673 |
items.each( function(index,el){ |
|
|
674 |
select_items.push( $(el).val() ); |
| 675 |
}); |
| 671 |
} |
676 |
} |
| 672 |
} |
677 |
} |
| 673 |
selections += "/"; |
|
|
| 674 |
|
678 |
|
| 675 |
// Add the pickup location |
679 |
// Add the pickup location |
| 676 |
var branchSel = $("#branch_" + biblioNum); |
680 |
var branchSel = $("#branch_" + biblioNum); |
| 677 |
if (branchSel.size() > 0) { |
681 |
if (branchSel.size() > 0) { |
| 678 |
selections += $(branchSel).val(); |
682 |
select_pickup = $(branchSel).val(); |
|
|
683 |
} |
| 684 |
|
| 685 |
if ( select_items.length > 0 ){ |
| 686 |
select_items.forEach( function(item_value,index){ |
| 687 |
selections += select_bib + "/" + item_value + "/" + select_pickup + "/"; |
| 688 |
}); |
| 679 |
} |
689 |
} |
| 680 |
selections += "/"; |
690 |
else { |
|
|
691 |
selections += select_bib + "/" + "/" + select_pickup + "/"; |
| 692 |
} |
| 693 |
|
| 681 |
return true; |
694 |
return true; |
| 682 |
}); |
695 |
}); |
| 683 |
|
696 |
|
| 684 |
- |
|
|