Lines 209-222
sub generate_subfield_form {
Link Here
|
209 |
} |
209 |
} |
210 |
elsif ( $subfield->{authorised_value} eq "itemtypes" ) { |
210 |
elsif ( $subfield->{authorised_value} eq "itemtypes" ) { |
211 |
push @authorised_values, ""; |
211 |
push @authorised_values, ""; |
212 |
my $itemtypes; |
212 |
my $itemtypes = Koha::ItemTypes->new; |
213 |
if ($branch_limit) { |
213 |
if ($branch_limit) { |
214 |
$itemtypes = Koha::ItemTypes->search_with_localization( |
214 |
$itemtypes = $itemtypes->search_with_library_limits({}, {}, $branch_limit); |
215 |
{ branchcode => $branch_limit } ); |
|
|
216 |
} |
217 |
else { |
218 |
$itemtypes = Koha::ItemTypes->search_with_localization; |
219 |
} |
215 |
} |
|
|
216 |
$itemtypes = $itemtypes->order_by_translated_description; |
220 |
while ( my $itemtype = $itemtypes->next ) { |
217 |
while ( my $itemtype = $itemtypes->next ) { |
221 |
push @authorised_values, $itemtype->itemtype; |
218 |
push @authorised_values, $itemtype->itemtype; |
222 |
$authorised_lib{ $itemtype->itemtype } = |
219 |
$authorised_lib{ $itemtype->itemtype } = |
223 |
- |
|
|