sanitize_records - This script sanitizes a record.


sanitize_records.pl [-h|--help] [-v|--verbose] [-c|--confirm] [--biblionumbers=BIBLIONUMBER_LIST] [-f|--filename=FILENAME] [--auto-search] [--reindex] [--fix-ampersand]

You can either give some biblionumbers or a file with biblionumbers or ask for an auto-search.



Print a brief help message


Verbose mode.


This flag must be provided in order for the script to actually sanitize records. If it is not supplied, the script will only report on the record list to process.


Give a biblionumber list using this parameter. They must be separated by commas.


Give a biblionumber list using a filename. One biblionumber by line or separate them with a whitespace character.


Automatically search records containing "&amp;" in biblio_metadata.metadata or in the specified fields.


Replace '&amp;' by '&' in the records. Replace '&amp;amp;amp;etc.' with '&amp;' in the records.


Reindex the modified records.


Alex Arnaud <alex.arnaud@biblibre.com> Christophe Croullebois <christophe.croullebois@biblibre.com> Jonathan Druart <jonathan.druart@biblibre.com>


Copyright 2014 BibLibre


This file is part of Koha.

# Koha is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Koha is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Koha; if not, see <http://www.gnu.org/licenses>.