Lines 1705-1712
subtest 'Recalls tests' => sub {
Link Here
|
1705 |
# Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall. |
1705 |
# Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall. |
1706 |
|
1706 |
|
1707 |
Koha::CirculationRules->set_rules({ |
1707 |
Koha::CirculationRules->set_rules({ |
1708 |
branchcode => undef, |
1708 |
branchcode => $branchcode, |
1709 |
categorycode => undef, |
1709 |
categorycode => $patron1->categorycode, |
1710 |
itemtype => $item1->effective_itemtype, |
1710 |
itemtype => $item1->effective_itemtype, |
1711 |
rules => { |
1711 |
rules => { |
1712 |
recalls_allowed => 0, |
1712 |
recalls_allowed => 0, |
Lines 1717-1724
subtest 'Recalls tests' => sub {
Link Here
|
1717 |
is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" ); |
1717 |
is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" ); |
1718 |
|
1718 |
|
1719 |
Koha::CirculationRules->set_rules({ |
1719 |
Koha::CirculationRules->set_rules({ |
1720 |
branchcode => undef, |
1720 |
branchcode => $branchcode, |
1721 |
categorycode => undef, |
1721 |
categorycode => $patron1->categorycode, |
1722 |
itemtype => $item1->effective_itemtype, |
1722 |
itemtype => $item1->effective_itemtype, |
1723 |
rules => { |
1723 |
rules => { |
1724 |
recalls_allowed => 1, |
1724 |
recalls_allowed => 1, |
1725 |
- |
|
|