Comment 7 for bug 887263

Revision history for this message
Jason Stephenson (jstephenson) wrote :

We have found this seems to be a problem mostly with 008 tags because our marc templates start with 6 blanks in the 008. (We have since changed this.)

The attached script will find invalid 008 tags in your database. It will fix those that it thinks it can and will output to standard output a list of the record ids of those that it can't fix. This list could be used to manually fix the records with bad 008s.

You'll probably want to run this at night sometime, maybe via at, and capture the output in a file.