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

(-)a/authorities/authorities.pl (-2 / +4 lines)
Lines 92-98 sub build_authorized_values_list { Link Here
92
            "select itemtype,description from itemtypes order by description");
92
            "select itemtype,description from itemtypes order by description");
93
        $sth->execute;
93
        $sth->execute;
94
        push @authorised_values, ""
94
        push @authorised_values, ""
95
        unless ( $tagslib->{$tag}->{$subfield}->{mandatory} );
95
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory}
96
            && ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) );
96
        
97
        
97
        my $itemtype;
98
        my $itemtype;
98
        
99
        
Lines 109-115 sub build_authorized_values_list { Link Here
109
            $tagslib->{$tag}->{$subfield}->{authorised_value} );
110
            $tagslib->{$tag}->{$subfield}->{authorised_value} );
110
111
111
        push @authorised_values, ""
112
        push @authorised_values, ""
112
        unless ( $tagslib->{$tag}->{$subfield}->{mandatory} );
113
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory}
114
            && ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) );
113
115
114
        while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) {
116
        while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) {
115
            push @authorised_values, $value;
117
            push @authorised_values, $value;
(-)a/cataloguing/addbiblio.pl (-3 / +4 lines)
Lines 192-198 sub build_authorized_values_list { Link Here
192
            "select itemtype,description from itemtypes order by description");
192
            "select itemtype,description from itemtypes order by description");
193
        $sth->execute;
193
        $sth->execute;
194
        push @authorised_values, ""
194
        push @authorised_values, ""
195
          unless ( $tagslib->{$tag}->{$subfield}->{defaultvalue} and $tagslib->{$tag}->{$subfield}->{mandatory} );
195
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory}
196
            && ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) );
196
          
197
          
197
        my $itemtype;
198
        my $itemtype;
198
        
199
        
Lines 229-235 sub build_authorized_values_list { Link Here
229
        );
230
        );
230
231
231
        push @authorised_values, ""
232
        push @authorised_values, ""
232
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory} );
233
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory}
234
            && ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) );
233
235
234
        while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) {
236
        while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) {
235
            push @authorised_values, $value;
237
            push @authorised_values, $value;
236
- 

Return to bug 11313