Main Koha release repository
https://koha-community.org
Tomas Cohen Arazi
0b3b53e4f2
This patch deprecates the -x switch, making XML the default serialization format used by rebuild_zebra.pl. It doesn't remove the option switch, but raises a warning for the end user about the deprecation so they fix their cronjobs. Later we could remove it. To test: - Disable all indexing (daemon/cronjob) - Create 2 records - Edit one of them, delete the other one - Verify they are queued for updates in zebraqueue - sudo koha-mysql kohadev > SELECT * FROM zebraqueue WHERE done=0 ... | 265 | 265 | specialUpdate | biblioserver | 1 | 2016-05-13 14:23:45 | | 266 | 1 | recordDelete | biblioserver | 1 | 2016-05-16 14:14:33 | | 267 | 2 | specialUpdate | biblioserver | 1 | 2016-05-16 14:15:06 | +-----+--------------------+---------------+--------------+------+---------------------+ - Now go to koha-shell $ sudo koha-shell kohadev ; cd kohaclone - Run: $ misc/migration_tools/rebuild_zebra.pl -k -b -z You will get something similar to this: NOTHING cleaned : the export /tmp/jI0OeHy6Tn has been kept. You can re-run this script with the -s and -d /tmp/jI0OeHy6Tn parameters if you just want to rebuild zebra after changing the record.abs or another zebra config file - Verify * less /tmp/jI0OeHy6Tn/del_biblio/exported_records * less /tmp/jI0OeHy6Tn/upd_biblio/exported_records => FAIL: They contain the records you added/modified/deleted but they are in USMARC format - Apply the patch - Mark your records for indexing (in koha-mysql kohadev) > UPDATE zebraqueue SET done=0 WHERE id > 264 - Run: $ misc/migration_tools/rebuild_zebra.pl -k -b -z You will get something similar to this: <WARNINGS> [1] NOTHING cleaned : the export /tmp/jI0OeHy6Tn has been kept. You can re-run this script with the -s and -d /tmp/jI0OeHy6Tn parameters if you just want to rebuild zebra after changing the record.abs or another zebra config file - Verify * less /tmp/jI0OeHy6Tn/del_biblio/exported_records * less /tmp/jI0OeHy6Tn/upd_biblio/exported_records => SUCCESS: Data is correctly in XML format - Run: $ misc/migration_tools/rebuild_zebra.pl -k -b -z -noxml You will get something similar to this: <WARNINGS> [1] NOTHING cleaned : the export /tmp/jI0OeHy6Tn has been kept. You can re-run this script with the -s and -d /tmp/jI0OeHy6Tn parameters if you just want to rebuild zebra after changing the record.abs or another zebra config file - Verify * less /tmp/jI0OeHy6Tn/del_biblio/exported_records * less /tmp/jI0OeHy6Tn/upd_biblio/exported_records => SUCCESS: Data is correctly in USMARC format - Sign off :-D [1] Warnings covered by a followup Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> On top of Bug 16505 Work as described following test plan, usmarc default pre patch, post patch xml default and usmarc on request. No errors (all patchset) Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> |
||
---|---|---|
acqui | ||
admin | ||
api/v1 | ||
authorities | ||
basket | ||
C4 | ||
catalogue | ||
cataloguing | ||
circ | ||
course_reserves | ||
debian | ||
docs | ||
errors | ||
etc | ||
install_misc | ||
installer | ||
Koha | ||
koha-tmpl | ||
labels | ||
members | ||
misc | ||
offline_circ | ||
opac | ||
OpenILS | ||
patron_lists | ||
patroncards | ||
plugins | ||
reports | ||
reserve | ||
reviews | ||
rotating_collections | ||
selenium | ||
serials | ||
services | ||
skel | ||
sms | ||
suggestion | ||
svc | ||
t | ||
tags | ||
test | ||
tmp/modified_authorities | ||
tools | ||
virtualshelves | ||
xt | ||
.editorconfig | ||
.htaccess | ||
.mailmap | ||
about.pl | ||
changelanguage.pl | ||
edithelp.pl | ||
fix-perl-path.PL | ||
help.pl | ||
INSTALL | ||
install-CPAN.pl | ||
INSTALL.debian | ||
INSTALL.fedora7 | ||
INSTALL.opensuse | ||
INSTALL.ubuntu | ||
Koha.pm | ||
koha_perl_deps.pl | ||
kohaversion.pl | ||
LICENSE | ||
mainpage.pl | ||
Makefile.PL | ||
MANIFEST.SKIP | ||
README | ||
README.md | ||
README.robots | ||
rewrite-config.PL |
Koha is a free software integrated library system (ILS).
Koha is distributed under the GNU GPL version 3 or later.
Note: This is a synced mirror of the official Koha repo.
Note: Koha does not accept pull requests from git hosting sites.
Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-comminity.org.
For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch
The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook