|
Lines 827-851
subtest 'CanItemBeReserved / branch_not_in_hold_group' => sub {
Link Here
|
| 827 |
|
827 |
|
| 828 |
# Create 3 biblios with items |
828 |
# Create 3 biblios with items |
| 829 |
my $biblio_1 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
829 |
my $biblio_1 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
| 830 |
my ( undef, undef, $itemnumber_1 ) = AddItem( |
830 |
my $item_1 = $builder->build_sample_item( |
| 831 |
{ homebranch => $library1->branchcode, |
831 |
{ |
| 832 |
holdingbranch => $library1->branchcode |
832 |
biblionumber => $biblio_1->biblionumber, |
| 833 |
}, |
833 |
library => $library1->branchcode |
| 834 |
$biblio_1->biblionumber |
834 |
} |
| 835 |
); |
835 |
); |
| 836 |
my $biblio_2 = $builder->build_sample_biblio({ itemtype => $itemtype2->itemtype }); |
836 |
my $biblio_2 = $builder->build_sample_biblio({ itemtype => $itemtype2->itemtype }); |
| 837 |
my ( undef, undef, $itemnumber_2 ) = AddItem( |
837 |
my $item_2 = $builder->build_sample_item( |
| 838 |
{ homebranch => $library2->branchcode, |
838 |
{ |
| 839 |
holdingbranch => $library2->branchcode |
839 |
biblionumber => $biblio_2->biblionumber, |
| 840 |
}, |
840 |
library => $library2->branchcode |
| 841 |
$biblio_2->biblionumber |
841 |
} |
| 842 |
); |
842 |
); |
|
|
843 |
my $itemnumber_2 = $item_2->itemnumber; |
| 843 |
my $biblio_3 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
844 |
my $biblio_3 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
| 844 |
my ( undef, undef, $itemnumber_3 ) = AddItem( |
845 |
my $item_3 = $builder->build_sample_item( |
| 845 |
{ homebranch => $library1->branchcode, |
846 |
{ |
| 846 |
holdingbranch => $library1->branchcode |
847 |
biblionumber => $biblio_3->biblionumber, |
| 847 |
}, |
848 |
library => $library1->branchcode |
| 848 |
$biblio_3->biblionumber |
849 |
} |
| 849 |
); |
850 |
); |
| 850 |
|
851 |
|
| 851 |
# Test 1: Patron 3 can place hold |
852 |
# Test 1: Patron 3 can place hold |
|
Lines 1047-1071
subtest 'CanItemBeReserved / pickup_not_in_hold_group' => sub {
Link Here
|
| 1047 |
|
1048 |
|
| 1048 |
# Create 3 biblios with items |
1049 |
# Create 3 biblios with items |
| 1049 |
my $biblio_1 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
1050 |
my $biblio_1 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
| 1050 |
my ( undef, undef, $itemnumber_1 ) = AddItem( |
1051 |
my $item_1 = $builder->build_sample_item( |
| 1051 |
{ homebranch => $library1->branchcode, |
1052 |
{ |
| 1052 |
holdingbranch => $library1->branchcode |
1053 |
biblionumber => $biblio_1->biblionumber, |
| 1053 |
}, |
1054 |
library => $library1->branchcode |
| 1054 |
$biblio_1->biblionumber |
1055 |
} |
| 1055 |
); |
1056 |
); |
| 1056 |
my $biblio_2 = $builder->build_sample_biblio({ itemtype => $itemtype2->itemtype }); |
1057 |
my $biblio_2 = $builder->build_sample_biblio({ itemtype => $itemtype2->itemtype }); |
| 1057 |
my ( undef, undef, $itemnumber_2 ) = AddItem( |
1058 |
my $item_2 = $builder->build_sample_item( |
| 1058 |
{ homebranch => $library2->branchcode, |
1059 |
{ |
| 1059 |
holdingbranch => $library2->branchcode |
1060 |
biblionumber => $biblio_2->biblionumber, |
| 1060 |
}, |
1061 |
library => $library2->branchcode |
| 1061 |
$biblio_2->biblionumber |
1062 |
} |
| 1062 |
); |
1063 |
); |
|
|
1064 |
my $itemnumber_2 = $item_2->itemnumber; |
| 1063 |
my $biblio_3 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
1065 |
my $biblio_3 = $builder->build_sample_biblio({ itemtype => $itemtype1->itemtype }); |
| 1064 |
my ( undef, undef, $itemnumber_3 ) = AddItem( |
1066 |
my $item_3 = $builder->build_sample_item( |
| 1065 |
{ homebranch => $library1->branchcode, |
1067 |
{ |
| 1066 |
holdingbranch => $library1->branchcode |
1068 |
biblionumber => $biblio_3->biblionumber, |
| 1067 |
}, |
1069 |
library => $library1->branchcode |
| 1068 |
$biblio_3->biblionumber |
1070 |
} |
| 1069 |
); |
1071 |
); |
| 1070 |
|
1072 |
|
| 1071 |
# Test 1: Patron 3 can place hold |
1073 |
# Test 1: Patron 3 can place hold |