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