Lines 231-236
sub generate_subfield_form {
Link Here
|
231 |
id => $subfield_data{id}, |
231 |
id => $subfield_data{id}, |
232 |
maxlength => $subfield_data{maxlength}, |
232 |
maxlength => $subfield_data{maxlength}, |
233 |
value => $value, |
233 |
value => $value, |
|
|
234 |
not_in_av => ( ( grep { $_ eq $value } @authorised_values ) ? 0 : 1 ), |
234 |
( ( grep { $_ eq $subfieldlib->{authorised_value}} ( qw(branches itemtypes cn_source) ) ) ? () : ( category => $subfieldlib->{authorised_value}) ), |
235 |
( ( grep { $_ eq $subfieldlib->{authorised_value}} ( qw(branches itemtypes cn_source) ) ) ? () : ( category => $subfieldlib->{authorised_value}) ), |
235 |
}; |
236 |
}; |
236 |
} |
237 |
} |
Lines 241-246
sub generate_subfield_form {
Link Here
|
241 |
values => \@authorised_values, |
242 |
values => \@authorised_values, |
242 |
labels => \%authorised_lib, |
243 |
labels => \%authorised_lib, |
243 |
default => $value, |
244 |
default => $value, |
|
|
245 |
not_in_av => ( ( grep { $_ eq $value } @authorised_values ) ? 0 : 1 ), |
244 |
( ( grep { $_ eq $subfieldlib->{authorised_value}} ( qw(branches itemtypes cn_source) ) ) ? () : ( category => $subfieldlib->{authorised_value}) ), |
246 |
( ( grep { $_ eq $subfieldlib->{authorised_value}} ( qw(branches itemtypes cn_source) ) ) ? () : ( category => $subfieldlib->{authorised_value}) ), |
245 |
}; |
247 |
}; |
246 |
} |
248 |
} |