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 191-197 sub build_authorized_values_list { Link Here
191
            "select itemtype,description from itemtypes order by description");
191
            "select itemtype,description from itemtypes order by description");
192
        $sth->execute;
192
        $sth->execute;
193
        push @authorised_values, ""
193
        push @authorised_values, ""
194
          unless ( $tagslib->{$tag}->{$subfield}->{defaultvalue} and $tagslib->{$tag}->{$subfield}->{mandatory} );
194
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory}
195
            && ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) );
195
          
196
          
196
        my $itemtype;
197
        my $itemtype;
197
        
198
        
Lines 228-234 sub build_authorized_values_list { Link Here
228
        );
229
        );
229
230
230
        push @authorised_values, ""
231
        push @authorised_values, ""
231
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory} );
232
          unless ( $tagslib->{$tag}->{$subfield}->{mandatory}
233
            && ( $value || $tagslib->{$tag}->{$subfield}->{defaultvalue} ) );
232
234
233
        while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) {
235
        while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) {
234
            push @authorised_values, $value;
236
            push @authorised_values, $value;
235
- 

Return to bug 11313