Lines 32-38
my $authorised_values = {};
Link Here
|
32 |
my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered }; |
32 |
my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered }; |
33 |
$authorised_values->{branches} = []; |
33 |
$authorised_values->{branches} = []; |
34 |
foreach my $thisbranch ( sort keys %$branches ) { |
34 |
foreach my $thisbranch ( sort keys %$branches ) { |
35 |
push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch}->{'branchname'} }; |
35 |
push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch} }; |
36 |
} |
36 |
} |
37 |
|
37 |
|
38 |
$authorised_values->{itemtypes} = [ $schema->resultset( "Itemtype" )->search( undef, { |
38 |
$authorised_values->{itemtypes} = [ $schema->resultset( "Itemtype" )->search( undef, { |
39 |
- |
|
|