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

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 663-669 sub AddAuthority { Link Here
663
            foreach my $subfield ( $field->subfields ) {
663
            foreach my $subfield ( $field->subfields ) {
664
                my $key = $subfield->[0];
664
                my $key = $subfield->[0];
665
                my $value = $subfield->[1];
665
                my $value = $subfield->[1];
666
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
666
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
667
                $field->update( $key => $value );
667
                $field->update( $key => $value );
668
            }
668
            }
669
        }
669
        }
(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 2816-2822 sub ModBiblioMarc { Link Here
2816
            foreach my $subfield ( $field->subfields ) {
2816
            foreach my $subfield ( $field->subfields ) {
2817
                my $key = $subfield->[0];
2817
                my $key = $subfield->[0];
2818
                my $value = $subfield->[1];
2818
                my $value = $subfield->[1];
2819
                $value =~ s/^\s+|\s+$|^\n+|\n+$|^\r+|\r+$|^\t+|\t+$//g;
2819
                $value =~ s/^\s+|\s+$|\n+|\r+|^\t+|\t+$//g;
2820
                $field->update( $key => $value );
2820
                $field->update( $key => $value );
2821
            }
2821
            }
2822
        }
2822
        }
(-)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 698-704 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
698
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
698
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
699
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
699
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
700
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
700
('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo'),
701
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records.','YesNo'),
701
('StripWhitespaceChars','0',NULL,'Strip leading and trailing whitespace characters and inner newlines from input fields when cataloguing bibliographic and authority records.','YesNo'),
702
('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'),
702
('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'),
703
('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'),
703
('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'),
704
('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
704
('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 210-216 Cataloging: Link Here
210
              choices:
210
              choices:
211
                  1: Strip
211
                  1: Strip
212
                  0: "Don't strip"
212
                  0: "Don't strip"
213
            - leading and trailing whitespace characters from input fields when cataloguing bibliographic and authority records. Whitespace characters include spaces, tabs, newlines and carriage returns.
213
            - 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.
214
    Display:
214
    Display:
215
        -
215
        -
216
            - 'Separate main entry and subdivisions with '
216
            - 'Separate main entry and subdivisions with '
217
- 

Return to bug 30358