Lines 178-186
sub build_authorized_values_list {
Link Here
|
178 |
} |
178 |
} |
179 |
} |
179 |
} |
180 |
elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
180 |
elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
181 |
push @authorised_values, "" |
181 |
push @authorised_values, ""; |
182 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} |
|
|
183 |
&& ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) ); |
184 |
|
182 |
|
185 |
my $itemtype; |
183 |
my $itemtype; |
186 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
184 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
Lines 191-198
sub build_authorized_values_list {
Link Here
|
191 |
$value = $itemtype unless ($value); |
189 |
$value = $itemtype unless ($value); |
192 |
} |
190 |
} |
193 |
elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { |
191 |
elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { |
194 |
push @authorised_values, "" |
192 |
push @authorised_values, ""; |
195 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
|
|
196 |
|
193 |
|
197 |
my $class_sources = GetClassSources(); |
194 |
my $class_sources = GetClassSources(); |
198 |
|
195 |
|
Lines 214-222
sub build_authorized_values_list {
Link Here
|
214 |
$branch_limit ? $branch_limit : (), |
211 |
$branch_limit ? $branch_limit : (), |
215 |
); |
212 |
); |
216 |
|
213 |
|
217 |
push @authorised_values, "" |
214 |
push @authorised_values, ""; |
218 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} |
|
|
219 |
&& ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) ); |
220 |
|
215 |
|
221 |
while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { |
216 |
while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { |
222 |
push @authorised_values, $value; |
217 |
push @authorised_values, $value; |
223 |
- |
|
|