Lines 739-750
my $patron_categories = Koha::Patron::Categories->search({}, { order_by => ['des
Link Here
|
739 |
|
739 |
|
740 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
740 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
741 |
|
741 |
|
|
|
742 |
my $humanbranch = ( $branch ne '*' ? $branch : undef ); |
743 |
|
742 |
my @used_categorycodes = |
744 |
my @used_categorycodes = |
743 |
Koha::CirculationRules->search( {}, { columns => ['categorycode'], distinct => 1, } )->get_column('categorycode'); |
745 |
Koha::CirculationRules->search( { branchcode => $humanbranch }, { columns => ['categorycode'], distinct => 1, } ) |
|
|
746 |
->get_column('categorycode'); |
744 |
my @used_itemtypes = |
747 |
my @used_itemtypes = |
745 |
Koha::CirculationRules->search( {}, { columns => ['itemtype'], distinct => 1, } )->get_column('itemtype'); |
748 |
Koha::CirculationRules->search( { branchcode => $humanbranch }, { columns => ['itemtype'], distinct => 1, } ) |
746 |
|
749 |
->get_column('itemtype'); |
747 |
my $humanbranch = ( $branch ne '*' ? $branch : undef ); |
|
|
748 |
|
750 |
|
749 |
my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); |
751 |
my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); |
750 |
my $definedbranch = $all_rules->count ? 1 : 0; |
752 |
my $definedbranch = $all_rules->count ? 1 : 0; |
751 |
- |
|
|