Lines 30-35
use Koha::CirculationRules;
Link Here
|
30 |
use Koha::Patron::Categories; |
30 |
use Koha::Patron::Categories; |
31 |
use Koha::Caches; |
31 |
use Koha::Caches; |
32 |
use Koha::Patrons; |
32 |
use Koha::Patrons; |
|
|
33 |
use Koha::Plugins; |
33 |
|
34 |
|
34 |
my $input = CGI->new; |
35 |
my $input = CGI->new; |
35 |
my $dbh = C4::Context->dbh; |
36 |
my $dbh = C4::Context->dbh; |
Lines 791-796
while ( my $r = $all_rules->next ) {
Link Here
|
791 |
$rules->{ $r->{categorycode} // q{} }->{ $r->{itemtype} // q{} }->{ $r->{rule_name} } = $r->{rule_value}; |
792 |
$rules->{ $r->{categorycode} // q{} }->{ $r->{itemtype} // q{} }->{ $r->{rule_name} } = $r->{rule_value}; |
792 |
} |
793 |
} |
793 |
|
794 |
|
|
|
795 |
if ( C4::Context->config("enable_plugins") ) { |
796 |
$template->param( |
797 |
overwrite_calc_fine_plugins => [ |
798 |
Koha::Plugins->new->GetPlugins( |
799 |
{ |
800 |
method => 'overwrite_calc_fine', |
801 |
} |
802 |
) |
803 |
] |
804 |
); |
805 |
} |
806 |
|
794 |
$template->param( show_branch_cat_rule_form => 1 ); |
807 |
$template->param( show_branch_cat_rule_form => 1 ); |
795 |
|
808 |
|
796 |
$template->param( |
809 |
$template->param( |