View | Details | Raw Unified | Return to bug 14662
Collapse All | Expand All

(-)a/cataloguing/additem.pl (-4 / +3 lines)
Lines 179-185 sub generate_subfield_form { Link Here
179
                }
179
                }
180
            }
180
            }
181
            elsif ( $subfieldlib->{authorised_value} eq "itemtypes" ) {
181
            elsif ( $subfieldlib->{authorised_value} eq "itemtypes" ) {
182
                  push @authorised_values, "" unless ( $subfieldlib->{mandatory} );
182
                  push @authorised_values, "";
183
                  my $itemtypes = Koha::ItemTypes->search_with_localization;
183
                  my $itemtypes = Koha::ItemTypes->search_with_localization;
184
                  while ( my $itemtype = $itemtypes->next ) {
184
                  while ( my $itemtype = $itemtypes->next ) {
185
                      push @authorised_values, $itemtype->itemtype;
185
                      push @authorised_values, $itemtype->itemtype;
Lines 195-201 sub generate_subfield_form { Link Here
195
                  #---- class_sources
195
                  #---- class_sources
196
            }
196
            }
197
            elsif ( $subfieldlib->{authorised_value} eq "cn_source" ) {
197
            elsif ( $subfieldlib->{authorised_value} eq "cn_source" ) {
198
                  push @authorised_values, "" unless ( $subfieldlib->{mandatory} );
198
                  push @authorised_values, "";
199
                    
199
                    
200
                  my $class_sources = GetClassSources();
200
                  my $class_sources = GetClassSources();
201
                  my $default_source = C4::Context->preference("DefaultClassificationSource");
201
                  my $default_source = C4::Context->preference("DefaultClassificationSource");
Lines 212-218 sub generate_subfield_form { Link Here
212
                  #---- "true" authorised value
212
                  #---- "true" authorised value
213
            }
213
            }
214
            else {
214
            else {
215
                  push @authorised_values, qq{} unless ( $subfieldlib->{mandatory} );
215
                  push @authorised_values, qq{};
216
                  my $av = GetAuthorisedValues( $subfieldlib->{authorised_value} );
216
                  my $av = GetAuthorisedValues( $subfieldlib->{authorised_value} );
217
                  for my $r ( @$av ) {
217
                  for my $r ( @$av ) {
218
                      push @authorised_values, $r->{authorised_value};
218
                      push @authorised_values, $r->{authorised_value};
219
- 

Return to bug 14662