Lines 135-146
sub copy_and_replace_field {
Link Here
|
135 |
|
135 |
|
136 |
if ( ! ( $record && $fromFieldName && $toFieldName ) ) { return; } |
136 |
if ( ! ( $record && $fromFieldName && $toFieldName ) ) { return; } |
137 |
|
137 |
|
138 |
if ( |
138 |
if ( ( !defined $fromSubfieldName or $fromSubfieldName eq '' ) |
139 |
( !defined $fromSubfieldName or $fromSubfieldName eq '' ) |
139 |
and ( !defined $toSubfieldName or $toSubfieldName eq '' ) ) |
140 |
and ( !defined $toSubfieldName or $toSubfieldName eq '' ) |
140 |
{ |
141 |
) { |
|
|
142 |
_copy_move_field( |
141 |
_copy_move_field( |
143 |
{ record => $record, |
142 |
{ |
|
|
143 |
record => $record, |
144 |
from_field => $fromFieldName, |
144 |
from_field => $fromFieldName, |
145 |
to_field => $toFieldName, |
145 |
to_field => $toFieldName, |
146 |
regex => $regex, |
146 |
regex => $regex, |
Lines 150-156
sub copy_and_replace_field {
Link Here
|
150 |
); |
150 |
); |
151 |
} else { |
151 |
} else { |
152 |
_copy_move_subfield( |
152 |
_copy_move_subfield( |
153 |
{ record => $record, |
153 |
{ |
|
|
154 |
record => $record, |
154 |
from_field => $fromFieldName, |
155 |
from_field => $fromFieldName, |
155 |
from_subfield => $fromSubfieldName, |
156 |
from_subfield => $fromSubfieldName, |
156 |
to_field => $toFieldName, |
157 |
to_field => $toFieldName, |