|
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, } )->get_column('categorycode'); |
| 744 |
my @used_itemtypes = |
746 |
my @used_itemtypes = |
| 745 |
Koha::CirculationRules->search( {}, { columns => ['itemtype'], distinct => 1, } )->get_column('itemtype'); |
747 |
Koha::CirculationRules->search( { branchcode => $humanbranch }, { columns => ['itemtype'], distinct => 1, } )->get_column('itemtype'); |
| 746 |
|
|
|
| 747 |
my $humanbranch = ( $branch ne '*' ? $branch : undef ); |
| 748 |
|
748 |
|
| 749 |
my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); |
749 |
my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); |
| 750 |
my $definedbranch = $all_rules->count ? 1 : 0; |
750 |
my $definedbranch = $all_rules->count ? 1 : 0; |
| 751 |
- |
|
|