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

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 631-637 sub AddAuthority { Link Here
631
            foreach my $subfield ( $field->subfields ) {
631
            foreach my $subfield ( $field->subfields ) {
632
                my $key = $subfield->[0];
632
                my $key = $subfield->[0];
633
                my $value = $subfield->[1];
633
                my $value = $subfield->[1];
634
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
634
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
635
                $field->update( $key => $value );
635
                $field->update( $key => $value );
636
            }
636
            }
637
        }
637
        }
(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 2897-2903 sub ModBiblioMarc { Link Here
2897
            foreach my $subfield ( $field->subfields ) {
2897
            foreach my $subfield ( $field->subfields ) {
2898
                my $key = $subfield->[0];
2898
                my $key = $subfield->[0];
2899
                my $value = $subfield->[1];
2899
                my $value = $subfield->[1];
2900
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
2900
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
2901
                $field->update( $key => $value );
2901
                $field->update( $key => $value );
2902
            }
2902
            }
2903
        }
2903
        }
(-)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 641-647 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
641
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
641
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
642
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
642
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
643
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
643
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
644
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records.','YesNo'),
644
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters and inner newlines from input fields when cataloguing bibliographic and authority records.','YesNo'),
645
('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'),
645
('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'),
646
('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'),
646
('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'),
647
('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
647
('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