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

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 646-652 sub AddAuthority { Link Here
646
            foreach my $subfield ( $field->subfields ) {
646
            foreach my $subfield ( $field->subfields ) {
647
                my $key = $subfield->[0];
647
                my $key = $subfield->[0];
648
                my $value = $subfield->[1];
648
                my $value = $subfield->[1];
649
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
649
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
650
                $field->update( $key => $value );
650
                $field->update( $key => $value );
651
            }
651
            }
652
        }
652
        }
(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 2757-2763 sub ModBiblioMarc { Link Here
2757
            foreach my $subfield ( $field->subfields ) {
2757
            foreach my $subfield ( $field->subfields ) {
2758
                my $key = $subfield->[0];
2758
                my $key = $subfield->[0];
2759
                my $value = $subfield->[1];
2759
                my $value = $subfield->[1];
2760
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
2760
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
2761
                $field->update( $key => $value );
2761
                $field->update( $key => $value );
2762
            }
2762
            }
2763
        }
2763
        }
(-)a/installer/data/mysql/atomicupdate/bug_30358_-_add_StripWhitespaceChars_syspref.pl (-1 / +1 lines)
Lines 7-12 return { Link Here
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('StripWhitespaceChars', '0', NULL, 'Strip leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records.', 'YesNo') });
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('StripWhitespaceChars', '0', NULL, 'Strip leading and trailing whitespace characters and inner newlines from input fields when cataloguing bibliographic and authority records.', 'YesNo') });
11
    },
11
    },
12
};
12
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 683-689 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
683
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
683
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
684
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
684
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
685
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
685
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
686
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records.','YesNo'),
686
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters and inner newlines from input fields when cataloguing bibliographic and authority records.','YesNo'),
687
('SubfieldsToAllowForRestrictedBatchmod','','Define a list of subfields for which edition is authorized when items_batchmod_restricted permission is enabled, separated by spaces. Example: 995\$f 995\$h 995\$j',NULL,'Free'),
687
('SubfieldsToAllowForRestrictedBatchmod','','Define a list of subfields for which edition is authorized when items_batchmod_restricted permission is enabled, separated by spaces. Example: 995\$f 995\$h 995\$j',NULL,'Free'),
688
('SubfieldsToAllowForRestrictedEditing','','Define a list of subfields for which edition is authorized when edit_items_restricted permission is enabled, separated by spaces. Example: 995\$f 995\$h 995\$j',NULL,'Free'),
688
('SubfieldsToAllowForRestrictedEditing','','Define a list of subfields for which edition is authorized when edit_items_restricted permission is enabled, separated by spaces. Example: 995\$f 995\$h 995\$j',NULL,'Free'),
689
('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
689
('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-2 / +1 lines)
Lines 183-189 Cataloging: Link Here
183
              choices:
183
              choices:
184
                  1: Strip
184
                  1: Strip
185
                  0: "Don't strip"
185
                  0: "Don't strip"
186
            - leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records. Whitespace characters include spaces, tabs, newlines and carriage returns.
186
            - leading and trailing whitespace characters (including spaces, tabs, line breaks and carriage returns) and inner newlines from input fields when cataloguing bibliographic and authority records.
187
    Display:
187
    Display:
188
        -
188
        -
189
            - 'Separate main entry and subdivisions with '
189
            - 'Separate main entry and subdivisions with '
190
- 

Return to bug 30358