Lines 30-36
foreach my $tag ( sort keys %$tagslib ) {
Link Here
|
30 |
my $schema = Koha::Database->new->schema; |
30 |
my $schema = Koha::Database->new->schema; |
31 |
my $authorised_values = {}; |
31 |
my $authorised_values = {}; |
32 |
|
32 |
|
33 |
my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered }; |
33 |
my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered->as_list }; |
34 |
$authorised_values->{branches} = []; |
34 |
$authorised_values->{branches} = []; |
35 |
foreach my $thisbranch ( sort keys %$branches ) { |
35 |
foreach my $thisbranch ( sort keys %$branches ) { |
36 |
push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch} }; |
36 |
push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch} }; |
37 |
- |
|
|