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

(-)a/C4/ImportExportFramework.pm (-1 / +9 lines)
Lines 977-982 sub _import_table_csv Link Here
977
                    } elsif ($fields->[$j] eq 'frameworkcode' && $value ne $frameworkcode) {
977
                    } elsif ($fields->[$j] eq 'frameworkcode' && $value ne $frameworkcode) {
978
                        $dataFields{$fields->[$j]} = $frameworkcode;
978
                        $dataFields{$fields->[$j]} = $frameworkcode;
979
                        push @values, $frameworkcode;
979
                        push @values, $frameworkcode;
980
                    } elsif ($fields->[$j] eq 'isurl' && defined $value && $value eq q{}) {
981
                        $dataFields{$fields->[$j]} = undef;
982
                        push @values, undef;
980
                    } else {
983
                    } else {
981
                        $dataFields{$fields->[$j]} = $value;
984
                        $dataFields{$fields->[$j]} = $value;
982
                        push @values, $value;
985
                        push @values, $value;
Lines 1094-1100 sub _getDataFields Link Here
1094
            if ($ok) {
1097
            if ($ok) {
1095
                $data //= '';
1098
                $data //= '';
1096
                $data = '' if ($data eq '#');
1099
                $data = '' if ($data eq '#');
1097
                $data = $frameworkcode if ($fields->[$i] eq 'frameworkcode');
1100
                if ( $fields->[$i] eq 'frameworkcode' ) {
1101
                    $data = $frameworkcode;
1102
                }
1103
                elsif ( $fields->[$i] eq 'isurl' ) {
1104
                    $data = undef if defined $data && $data eq q{};
1105
                }
1098
                $dataFields->{$fields->[$i]} = $data;
1106
                $dataFields->{$fields->[$i]} = $data;
1099
                push @dataFieldsA, $data;
1107
                push @dataFieldsA, $data;
1100
                $i++;
1108
                $i++;
(-)a/t/db_dependent/data/frameworks/biblio_framework.csv (-2 / +1 lines)
Lines 7-13 Link Here
7
"#-#","#-#","#-#","#-#","#-#","#-#","#-#"
7
"#-#","#-#","#-#","#-#","#-#","#-#","#-#"
8
8
9
"tagfield","tagsubfield","liblibrarian","libopac","repeatable","mandatory","kohafield","tab","authorised_value","authtypecode","value_builder","isurl","hidden","frameworkcode","seealso","link","defaultvalue","maxlength"
9
"tagfield","tagsubfield","liblibrarian","libopac","repeatable","mandatory","kohafield","tab","authorised_value","authtypecode","value_builder","isurl","hidden","frameworkcode","seealso","link","defaultvalue","maxlength"
10
"000","@","fixed length control field","fixed length control field","0","1","","0","","","marc21_leader.pl","0","0","","","","","24"
10
"000","@","fixed length control field","fixed length control field","0","1","","0","","","marc21_leader.pl","","0","","","","","24"
11
"001","@","control field","control field","0","0","","0","","","","0","0","","","","","9999"
11
"001","@","control field","control field","0","0","","0","","","","0","0","","","","","9999"
12
"003","@","control field","control field","0","1","","0","","","marc21_orgcode.pl","0","0","","","","","9999"
12
"003","@","control field","control field","0","1","","0","","","marc21_orgcode.pl","0","0","","","","","9999"
13
"005","@","control field","control field","0","1","","0","","","marc21_field_005.pl","0","0","","","","","9999"
13
"005","@","control field","control field","0","1","","0","","","marc21_field_005.pl","0","0","","","","","9999"
14
- 

Return to bug 27968