Lines 84-89
if ( $op eq 'add_form' ) {
Link Here
|
84 |
my $field_separator = $input->param("field_separator"); |
84 |
my $field_separator = $input->param("field_separator"); |
85 |
my $subfield_separator = $input->param("subfield_separator"); |
85 |
my $subfield_separator = $input->param("subfield_separator"); |
86 |
my $encoding = $input->param("encoding"); |
86 |
my $encoding = $input->param("encoding"); |
|
|
87 |
my $opac_option = $input->param("opac_option"); |
87 |
|
88 |
|
88 |
if ($export_format_id) { |
89 |
if ($export_format_id) { |
89 |
my $csv_profile = Koha::CsvProfiles->find($export_format_id) |
90 |
my $csv_profile = Koha::CsvProfiles->find($export_format_id) |
Lines 97-102
if ( $op eq 'add_form' ) {
Link Here
|
97 |
$csv_profile->encoding($encoding); |
98 |
$csv_profile->encoding($encoding); |
98 |
$csv_profile->type($type); |
99 |
$csv_profile->type($type); |
99 |
$csv_profile->used_for($used_for); |
100 |
$csv_profile->used_for($used_for); |
|
|
101 |
$csv_profile->opac_option($opac_option); |
100 |
eval { $csv_profile->store; }; |
102 |
eval { $csv_profile->store; }; |
101 |
|
103 |
|
102 |
if ($@) { |
104 |
if ($@) { |
Lines 115-120
if ( $op eq 'add_form' ) {
Link Here
|
115 |
encoding => $encoding, |
117 |
encoding => $encoding, |
116 |
type => $type, |
118 |
type => $type, |
117 |
used_for => $used_for, |
119 |
used_for => $used_for, |
|
|
120 |
opac_option => $opac_option |
118 |
} |
121 |
} |
119 |
); |
122 |
); |
120 |
eval { $csv_profile->store; }; |
123 |
eval { $csv_profile->store; }; |
121 |
- |
|
|