bug 2258 - new script to sync embedded items
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 19 Jun 2008 14:03:37 +0000 (09:03 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 19 Jun 2008 14:06:15 +0000 (09:06 -0500)
commit56356ced1a3d0836e91a575037fefcfc97a4d390
tree07093284f389c0903ad3f0e2c1067bf8b4b710c9
parentc5bfa4584408a1bf71a7ca1a8db4f8e49f417213
bug 2258 - new script to sync embedded items

Created a new script, sync_items_to_marc_bib.pl,
to replace the item tags embedded in the MARC bib
records with fresh versions taken from the items table.

This script should be run as follows:

maintenance/sync_items_to_marc_bib.pl --run-update

Assuming that you're using Zebra, rebuild_zebra.pl -b -z
or rebuild_zebra.pl -b -r should be run after running
this script.

This script should be run if you have used
link_bibs_to_authorities.pl prior to the first
patch for bug 2258.  It can also be used if there
is any reason to suspect that the embedded item tags
do not reflect the items table.

With this script I am creating a maintenance/ subdirectory of
misc/ to hold scripts that are meant to fix problems
in the database but are not (or should not be, anyway) necessary
for regular use.

Documentation: add to documentation for server side scripts

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
misc/maintenance/sync_items_in_marc_bib.pl [new file with mode: 0755]