[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
Tue Mar 22 21:36:41 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30326

Aleisha Amohia <aleisha at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #131994|0                           |1
        is obsolete|                            |

--- Comment #3 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 132038
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132038&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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list