Bug 8900 - link_bibs_to_authorities.pl --test updates auth_header records with AutoAddAuthorites on
Summary: link_bibs_to_authorities.pl --test updates auth_header records with AutoAddAu...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 19:01 UTC by wajasu
Modified: 2012-10-10 19:01 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wajasu 2012-10-10 19:01:06 UTC
I noticed that when i ran link_bibs_to_authorites.pl with --test, it calls LinkBibHeadingsToAuthorities in Biblio.pm, which if you have the AutoAddAuthorities syspref enabled, calls AddAuthority, which results in auth_header being inserted/updated.

So the --test option won't prevent updates.  This can burn someone if run in production.

It correctly skips ModBiblio in the link_bibs_to_authorites.pl script.

I was doing a test run migration from 3.0 to pre-3.10 master(2012-10-10) and had deleted all my auth_header records.  Of course after rebuilding my biblio/auth zebra index (-b -a -r)  I ran the script with --test, but saw auth_header records were added.

Since my library only had machine generated auth records, and I needed to clean up duplicate authority records from 3.0 behaviors, I was taking this route since no deduplication script exists, yet.