[Koha-bugs] [Bug 30326] Cronjob that checks biblios for MARC errors
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 23 13:49:41 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30326
Owen Leonard <oleonard at myacpl.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #132038|0 |1
is obsolete| |
--- Comment #4 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 132053
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132053&action=edit
Bug 30326: check_marc_errors.pl script which prints MARC errors
This new check_marc_errors.pl script uses the MARC::Lint package to
check bibliographic records for MARC errors, and print any errors
found. The script can check all biblios, or specified biblios.
To test:
1. Run the script from your commandline. This should not be run from
within your koha shell. Replace the --intranet parameter with your
staff client URL.
sudo koha-shell kohadev -c "misc/cronjobs/check_marc_errors.pl --intranet
http://localhost:8081/" > /tmp/marc_errors.html
2. The above command will run the script for all biblios in your
database and print the output to a file /tmp/marc_errors.html. View
the file and confirm it has been populated as expected, with errors!
cat /tmp/marc_errors.html
3. Run the script again, this time specify one or more biblionumbers.
sudo koha-shell kohadev -c "misc/cronjobs/check_marc_errors.pl --bibnum 1
--bibnum 2 --bibnum 3 --intranet http://localhost:8081/" >
/tmp/marc_errors.html
4. Confirm the file is populated as expected
cat /tmp/marc_errors.html
Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard at myacpl.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list