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 2914-2920 sub ModBiblioMarc { Link Here
2914
            foreach my $subfield ( $field->subfields ) {
2914
            foreach my $subfield ( $field->subfields ) {
2915
                my $key = $subfield->[0];
2915
                my $key = $subfield->[0];
2916
                my $value = $subfield->[1];
2916
                my $value = $subfield->[1];
2917
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
2917
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
2918
                $field->update( $key => $value );
2918
                $field->update( $key => $value );
2919
            }
2919
            }
2920
        }
2920
        }
(-)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 659-665 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
659
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
659
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
660
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
660
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
661
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
661
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
662
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records.','YesNo'),
662
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters and inner newlines from input fields when cataloguing bibliographic and authority records.','YesNo'),
663
('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'),
663
('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'),
664
('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'),
664
('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'),
665
('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
665
('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 170-176 Cataloging: Link Here
170
              choices:
170
              choices:
171
                  1: Strip
171
                  1: Strip
172
                  0: "Don't strip"
172
                  0: "Don't strip"
173
            - leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records. Whitespace characters include spaces, tabs, newlines and carriage returns.
173
            - 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.
174
    Display:
174
    Display:
175
        -
175
        -
176
            - 'Separate main entry and subdivisions with '
176
            - 'Separate main entry and subdivisions with '
177
- 

Return to bug 30358