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

(-)a/Koha/UI/Form/Builder/Biblio.pm (+3 lines)
Lines 316-321 sub build_authorized_values_list { Link Here
316
    }
316
    }
317
    elsif ( $category eq "itemtypes" ) {
317
    elsif ( $category eq "itemtypes" ) {
318
        push @authorised_values, "";
318
        push @authorised_values, "";
319
        $authorised_category{""} = $category;
319
320
320
        my $itemtype;
321
        my $itemtype;
321
        my $itemtypes = Koha::ItemTypes->search_with_localization;
322
        my $itemtypes = Koha::ItemTypes->search_with_localization;
Lines 328-333 sub build_authorized_values_list { Link Here
328
    }
329
    }
329
    elsif ( $category eq "cn_source" ) {
330
    elsif ( $category eq "cn_source" ) {
330
        push @authorised_values, "";
331
        push @authorised_values, "";
332
        $authorised_category{""} = $category;
331
333
332
        my $class_sources = GetClassSources();
334
        my $class_sources = GetClassSources();
333
335
Lines 360-365 sub build_authorized_values_list { Link Here
360
        );
362
        );
361
363
362
        push @authorised_values, "";
364
        push @authorised_values, "";
365
        $authorised_category{""} = $category;
363
366
364
        while ( my ( $value, $lib, $this_category ) = $authorised_values_sth->fetchrow_array ) {
367
        while ( my ( $value, $lib, $this_category ) = $authorised_values_sth->fetchrow_array ) {
365
            push @authorised_values, $value;
368
            push @authorised_values, $value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (+1 lines)
Lines 137-142 Link Here
137
                                    <li>
137
                                    <li>
138
                                        <label for="parent">Parent category:</label>
138
                                        <label for="parent">Parent category:</label>
139
                                        <select name="parent" id="parent_auth_value_categories">
139
                                        <select name="parent" id="parent_auth_value_categories">
140
                                            <option value="" selected>&nbsp;</option>
140
                                            [% FOR c IN category_names %]
141
                                            [% FOR c IN category_names %]
141
                                                <option value="[% c.category_name | html %]">[% c.category_name | html %]</option>
142
                                                <option value="[% c.category_name | html %]">[% c.category_name | html %]</option>
142
                                            [% END %]
143
                                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-3 / +2 lines)
Lines 1214-1220 $(document).ready(function(){ Link Here
1214
1214
1215
                                                            [% SET matched = 0 %]
1215
                                                            [% SET matched = 0 %]
1216
                                                            [% FOREACH aval IN mv.values %]
1216
                                                            [% FOREACH aval IN mv.values %]
1217
                                                                [% IF mv.avcs.$aval == mv.category %]
1217
                                                                [% IF ( mv.category AND mv.avcs.$aval == mv.category ) OR ( mv.avc AND mv.avcs.$aval == mv.avc.category_name ) %]
1218
                                                                [% IF aval == mv.default %]
1218
                                                                [% IF aval == mv.default %]
1219
                                                                    [% SET matched = 1 %]
1219
                                                                    [% SET matched = 1 %]
1220
                                                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
1220
                                                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
Lines 1229-1235 $(document).ready(function(){ Link Here
1229
                                                                </optgroup>
1229
                                                                </optgroup>
1230
                                                                <optgroup label="[% mv.avc.parent | html %]">
1230
                                                                <optgroup label="[% mv.avc.parent | html %]">
1231
                                                                [% FOREACH aval IN mv.values %]
1231
                                                                [% FOREACH aval IN mv.values %]
1232
                                                                    [% IF mv.avcs.$aval != mv.category %]
1232
                                                                    [% IF ( mv.category AND mv.avcs.$aval != mv.category ) OR ( mv.avc AND mv.avcs.$aval != mv.avc.category_name ) %]
1233
                                                                    [% IF aval == mv.default %]
1233
                                                                    [% IF aval == mv.default %]
1234
                                                                        [% SET matched = 1 %]
1234
                                                                        [% SET matched = 1 %]
1235
                                                                    <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
1235
                                                                    <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
1236
- 

Return to bug 35067