Lines 245-251
is( $hold->priority, '6', "Test AlterPriority(), move to bottom" );
Link Here
|
245 |
my $foreign_biblio = $builder->build_sample_biblio({ itemtype => 'DUMMY' }); |
245 |
my $foreign_biblio = $builder->build_sample_biblio({ itemtype => 'DUMMY' }); |
246 |
my ($foreign_item_bibnum, $foreign_item_bibitemnum, $foreign_itemnumber) |
246 |
my ($foreign_item_bibnum, $foreign_item_bibitemnum, $foreign_itemnumber) |
247 |
= AddItem({ homebranch => $branch_2, holdingbranch => $branch_2 } , $foreign_biblio->biblionumber); |
247 |
= AddItem({ homebranch => $branch_2, holdingbranch => $branch_2 } , $foreign_biblio->biblionumber); |
|
|
248 |
# Cleanup circulation rules |
248 |
$dbh->do('DELETE FROM issuingrules'); |
249 |
$dbh->do('DELETE FROM issuingrules'); |
|
|
250 |
$dbh->do('DELETE FROM branch_item_rules'); |
251 |
$dbh->do('DELETE FROM default_branch_item_rules'); |
252 |
$dbh->do('DELETE FROM default_branch_circ_rules'); |
253 |
$dbh->do('DELETE FROM default_circ_rules'); |
249 |
$dbh->do( |
254 |
$dbh->do( |
250 |
q{INSERT INTO issuingrules (categorycode, branchcode, itemtype, reservesallowed, holds_per_record) |
255 |
q{INSERT INTO issuingrules (categorycode, branchcode, itemtype, reservesallowed, holds_per_record) |
251 |
VALUES (?, ?, ?, ?, ?)}, |
256 |
VALUES (?, ?, ?, ?, ?)}, |
Lines 550-555
subtest 'CanItemBeReserved / holds_per_day tests' => sub {
Link Here
|
550 |
|
555 |
|
551 |
Koha::Holds->search->delete; |
556 |
Koha::Holds->search->delete; |
552 |
$dbh->do('DELETE FROM issues'); |
557 |
$dbh->do('DELETE FROM issues'); |
|
|
558 |
$dbh->do('DELETE FROM issuingrules'); |
559 |
$dbh->do('DELETE FROM branch_item_rules'); |
560 |
$dbh->do('DELETE FROM default_branch_item_rules'); |
561 |
$dbh->do('DELETE FROM default_branch_circ_rules'); |
562 |
$dbh->do('DELETE FROM default_circ_rules'); |
553 |
Koha::Items->search->delete; |
563 |
Koha::Items->search->delete; |
554 |
Koha::Biblios->search->delete; |
564 |
Koha::Biblios->search->delete; |
555 |
|
565 |
|