[koha-commits] main Koha release repository branch master updated. v3.16.00-1026-g3443056
Git repo owner
gitmaster at git.koha-community.org
Tue Nov 11 19:41:24 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via 3443056e15d7f2cc36e137a5ac50580375f3e1e4 (commit)
via a7b41eac76837dc37a4d892367f4338132f4740a (commit)
via 299a8a69972a6d4b2a77de9047cb39718d2a5278 (commit)
from 84de1f143be9a91682c58e34116d91a24fb465ff (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3443056e15d7f2cc36e137a5ac50580375f3e1e4
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Wed Nov 5 16:09:04 2014 +0100
Bug 8218: qa followup
This patch
- rename _entity_clean as _clean_ampersand
- rename the script to sanitize_records.pl
- add a --fix-ampersand switch (the only one FOR NOW, enabled by
default) so it is obvious what the script does.
- make POD and usage reflect this changes.
Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
commit a7b41eac76837dc37a4d892367f4338132f4740a
Author: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date: Thu Jul 17 13:54:27 2014 +0200
Bug 8218: Follow-up for some small typos
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
commit 299a8a69972a6d4b2a77de9047cb39718d2a5278
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Fri Sep 28 15:23:37 2012 +0200
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 may contain "&".
3/ Launch the maintenance script with the -h parameter 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.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
-----------------------------------------------------------------------
Summary of changes:
C4/Charset.pm | 64 ++++++++++
misc/maintenance/sanitize_records.pl | 233 ++++++++++++++++++++++++++++++++++
t/db_dependent/Charset.t | 51 ++++++++
3 files changed, 348 insertions(+)
create mode 100755 misc/maintenance/sanitize_records.pl
create mode 100644 t/db_dependent/Charset.t
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list