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 2756-2762 sub ModBiblioMarc { Link Here
2756
            foreach my $subfield ( $field->subfields ) {
2756
            foreach my $subfield ( $field->subfields ) {
2757
                my $key = $subfield->[0];
2757
                my $key = $subfield->[0];
2758
                my $value = $subfield->[1];
2758
                my $value = $subfield->[1];
2759
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
2759
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
2760
                $field->update( $key => $value );
2760
                $field->update( $key => $value );
2761
            }
2761
            }
2762
        }
2762
        }
(-)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 691-697 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
691
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
691
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
692
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
692
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
693
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
693
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
694
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records.','YesNo'),
694
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters and inner newlines from input fields when cataloguing bibliographic and authority records.','YesNo'),
695
('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'),
695
('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'),
696
('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'),
696
('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'),
697
('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
697
('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 191-197 Cataloging: Link Here
191
              choices:
191
              choices:
192
                  1: Strip
192
                  1: Strip
193
                  0: "Don't strip"
193
                  0: "Don't strip"
194
            - leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records. Whitespace characters include spaces, tabs, newlines and carriage returns.
194
            - 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.
195
    Display:
195
    Display:
196
        -
196
        -
197
            - 'Separate main entry and subdivisions with '
197
            - 'Separate main entry and subdivisions with '
198
- 

Return to bug 30358