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

(-)a/Koha/SimpleMARC.pm (-2 / +2 lines)
Lines 164-170 sub update_field { Link Here
164
164
165
    if ( ! ( $record && $fieldName ) ) { return; }
165
    if ( ! ( $record && $fieldName ) ) { return; }
166
166
167
    if ( not $subfieldName or $subfieldName eq '' ) {
167
    if ( not defined $subfieldName or $subfieldName eq '' ) {
168
        # FIXME I'm not sure the actual implementation is correct.
168
        # FIXME I'm not sure the actual implementation is correct.
169
        die "This action is not implemented yet";
169
        die "This action is not implemented yet";
170
        #_update_field({ record => $record, field => $fieldName, values => \@values });
170
        #_update_field({ record => $record, field => $fieldName, values => \@values });
Lines 296-302 sub read_field { Link Here
296
    my $subfieldName = $params->{subfield};
296
    my $subfieldName = $params->{subfield};
297
    my $field_numbers = $params->{field_numbers} // [];
297
    my $field_numbers = $params->{field_numbers} // [];
298
298
299
    if ( not $subfieldName or $subfieldName eq '' ) {
299
    if ( not defined $subfieldName or $subfieldName eq '' ) {
300
        _read_field({ record => $record, field => $fieldName, field_numbers => $field_numbers });
300
        _read_field({ record => $record, field => $fieldName, field_numbers => $field_numbers });
301
    } else {
301
    } else {
302
        _read_subfield({ record => $record, field => $fieldName, subfield => $subfieldName, field_numbers => $field_numbers });
302
        _read_subfield({ record => $record, field => $fieldName, subfield => $subfieldName, field_numbers => $field_numbers });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-4 / +3 lines)
Lines 133-146 Link Here
133
133
134
                                            field
134
                                            field
135
135
136
                                            [% ActionsLoo.from_field | html %][% IF ( ActionsLoo.from_subfield ) %]$[% ActionsLoo.from_subfield | html %][% END %]
136
                                            [% ActionsLoo.from_field | html %][% IF ( ActionsLoo.from_subfield.length ) %]$[% ActionsLoo.from_subfield | html %][% END %]
137
137
138
                                            [% IF ( ActionsLoo.field_value ) %]
138
                                            [% IF ( ActionsLoo.field_value ) %]
139
                                                with value <i>[% ActionsLoo.field_value | html %]</i>
139
                                                with value <i>[% ActionsLoo.field_value | html %]</i>
140
                                            [% END %]
140
                                            [% END %]
141
141
142
                                            [% IF ( ActionsLoo.to_field ) %]
142
                                            [% IF ( ActionsLoo.to_field ) %]
143
                                                to [% ActionsLoo.to_field | html %][% IF ( ActionsLoo.to_subfield ) %]$[% ActionsLoo.to_subfield | html %][% END %]
143
                                                to [% ActionsLoo.to_field | html %][% IF ( ActionsLoo.to_subfield.length ) %]$[% ActionsLoo.to_subfield | html %][% END %]
144
144
145
                                                [% IF ( ActionsLoo.to_regex_search ) %]
145
                                                [% IF ( ActionsLoo.to_regex_search ) %]
146
                                                     using RegEx s<strong>/[% ActionsLoo.to_regex_search | html %]/[% ActionsLoo.to_regex_replace | html %]/[% ActionsLoo.to_regex_modifiers | html %]</strong>
146
                                                     using RegEx s<strong>/[% ActionsLoo.to_regex_search | html %]/[% ActionsLoo.to_regex_replace | html %]/[% ActionsLoo.to_regex_modifiers | html %]</strong>
Lines 151-157 Link Here
151
                                                [% IF ( ActionsLoo.conditional_if ) %] if [% END %]
151
                                                [% IF ( ActionsLoo.conditional_if ) %] if [% END %]
152
                                                [% IF ( ActionsLoo.conditional_unless ) %] unless [% END %]
152
                                                [% IF ( ActionsLoo.conditional_unless ) %] unless [% END %]
153
153
154
                                                [% ActionsLoo.conditional_field | html %][% IF ( ActionsLoo.conditional_subfield ) %]$[% ActionsLoo.conditional_subfield | html %][% END %]
154
                                                [% ActionsLoo.conditional_field | html %][% IF ( ActionsLoo.conditional_subfield.length ) %]$[% ActionsLoo.conditional_subfield | html %][% END %]
155
155
156
                                                [% IF ( ActionsLoo.conditional_comparison_exists ) %] exists [% END %]
156
                                                [% IF ( ActionsLoo.conditional_comparison_exists ) %] exists [% END %]
157
                                                [% IF ( ActionsLoo.conditional_comparison_not_exists ) %] does not exist [% END %]
157
                                                [% IF ( ActionsLoo.conditional_comparison_not_exists ) %] does not exist [% END %]
158
- 

Return to bug 17510