Bug 5069 - Auto-create authorities for unlinked headings
Summary: Auto-create authorities for unlinked headings
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: PC Linux
: P5 - low enhancement with 10 votes (vote)
Assignee: Chris Cormack
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 16:35 UTC by Christopher Chagal
Modified: 2023-08-27 09:32 UTC (History)
1 user (show)

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 Christopher Chagal 2010-07-28 16:35:51 UTC
When we originally migrated our data, we loaded ~ 40,000 auth records corresponding to ~ 200,000 bib records. I ran the link_bibs_to_authorities.pl script, but it appears that we have some bad data in our authorities (or our bibs?), because some did not link correctly.

I wonder if there's a way to utilize the process that creates authority records from the appropriate fields during the record creation process to generate authority records from unlinked headings of existing bibs.  In addition, we'd like to be able to delete the authorities we imported that have no bibs linked.

I asked this question yesterday on IRC#koha and Chris Cormack mentioned that a script could be written for both of these and it "might be a good koha code learning exercise for someone at catalyst."  He asked me to submit this enhancement and assign it to him.

One thing I should add is this:  If there is not already a duplicate auth record checking functionality built into the process which auto-generates authorities during the record creation process, it seems that this would be important for a command line script, since we wouldn't want to create a bunch of identical authorities (which would then not function correctly as authority records).  Perhaps the link_bibs_to_authorities.pl script contains the necessary dup finding code?

We're running 3.00.05.001 (on Debian Lenny), so it would be useful for us if the scripts were compatible with 3.0 & 3.2.  If necessary, we'd be willing to upgrade to 3.00.06 (we're hoping to do so soon, anyway, unless 3.2 becomes stable before we get around to it :) ).
Comment 1 Katrin Fischer 2013-04-13 19:50:15 UTC
A lot of the authority related code and especially the linking have been rewritten and improved since this bug was reported. But I am not sure if this can be closed or not - Jared, could you take a look maybe?
Comment 2 Katrin Fischer 2019-05-04 13:07:02 UTC
(In reply to Christopher Chagal from comment #0)
> When we originally migrated our data, we loaded ~ 40,000 auth records
> corresponding to ~ 200,000 bib records. I ran the
> link_bibs_to_authorities.pl script, but it appears that we have some bad
> data in our authorities (or our bibs?), because some did not link correctly.
> 
> I wonder if there's a way to utilize the process that creates authority
> records from the appropriate fields during the record creation process to
> generate authority records from unlinked headings of existing bibs.

That might be possible now - but not sure.

> In addition, we'd like to be able to delete the authorities we imported that
> have no bibs linked.

There is a script to delete unused authorities.

> I asked this question yesterday on IRC#koha and Chris Cormack mentioned that
> a script could be written for both of these and it "might be a good koha
> code learning exercise for someone at catalyst."  He asked me to submit this
> enhancement and assign it to him.
> 
> One thing I should add is this:  If there is not already a duplicate auth
> record checking functionality built into the process which auto-generates
> authorities during the record creation process, it seems that this would be
> important for a command line script, since we wouldn't want to create a
> bunch of identical authorities (which would then not function correctly as
> authority records).  Perhaps the link_bibs_to_authorities.pl script contains
> the necessary dup finding code?
> 
> We're running 3.00.05.001 (on Debian Lenny), so it would be useful for us if
> the scripts were compatible with 3.0 & 3.2.  If necessary, we'd be willing
> to upgrade to 3.00.06 (we're hoping to do so soon, anyway, unless 3.2
> becomes stable before we get around to it :) ).

I think there are several issues described here:
- duplicate check when auto-creating authorities
- create authority records for unlinked headings automatically

It might be worthwhile to split this into several more specific bugs if people are still interested.