[Koha-bugs] [Bug 8218] Add a script to sanitize entity where "&" character was wrongly replaced with "& "
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 17 14:35:26 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8218
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #26755|0 |1
is obsolete| |
Attachment #29792|0 |1
is obsolete| |
--- Comment #25 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 29793
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29793&action=edit
Bug 8218 : Add a maintenance script to sanitize biblio records
This patch adds:
- a new maintenance script batch_sanitize_records
- a new subroutine C4::Charset::SanitizeRecord
- new unit tests for the new subroutine
Test plan:
1/ prove t/db_dependent/Charset.t
2/ Create a record containing "&" (could be follow with as many
'amp;' as you want) in one of its fields and the same for the field
linked to biblioitems.url.
The url should not be sanitized, it cans contain "&".
3/ Launch the maintenance script with the -h paramters to see how to use
it.
4/ Launch the script using the different parameters:
--filename=FILENAME
--biblionumbers='XXX'
--auto-search
The auto-search permits to sanitize all records containing "&" in
the marcxml field.
Use the verbose flag for testing.
Without the --confirm flag, nothing is done.
5/ Use the --confirm flag and verify in the biblioitems.marcxml field
that the record has been sanitized.
6/ Try the --reindex flag to reindex records which have been modified.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list