auth-to-auth linking broken when there are multiple 5xx entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.5 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
EG Master
On a clean install of master, I load in three authority records (shortened below to only show the 100/400/500 tags). I also loaded in some sample books that contain records written by all three authors.
Auth #1:
100 1\$aPeters, Elizabeth,
400 1\$aPiters, Ėlizabet,
500 1\$wnnnc$aMertz, Barbara
Auth #2:
100 1\$aMichaels, Barbara,$d1927-2013
500 1\$wnnnc$aMertz, Barbara
Auth #3:
100 1\$aMertz, Barbara
500 1\$wnnnc$aMichaels, Barbara,$d1927-2013
500 1\$wnnnc$aPeters, Elizabeth,
I run the following script, in order listed: (1) authority_
Note that Auth #3 has two 500 entries. However, after the linking process, when I view the authority record for Auth #3 via the staff client, I see the first 500 entry linked to Auth #1. But, there are two potential issues I see here:
(1) Only one 500 entry for Auth #3 is linked? Given some research, I was expecting to see both 500 entries linked to their associated named authority records.
(2) The first 500 entry for Auth #3 references Michaels, Barbara, from Auth #2, not Peters, Elizabeth from Auth #1. So, the only 500 entry for Auth #3 that is linked, appears to be linked to the wrong See Also reference.
Attached are the bibs and authorities I loaded into the empty database. All records were obtained from Library of Congress database (bibs from Z39.50 Client, authorities from online website). I have also attached screen captures of the resulting authority records after the linking process, as well as a screen capture of the authority.
------
Bib/Auth records loaded into DB
https:/
https:/
Screen Captures of Authority records after linking
https:/
https:/
https:/
https:/
------
Again, I am new to authorities in general, and the findings above might be due to my misunderstanding or incorrect system setup. But, just wanted to put this out there, in case it is a real issue.
Changed in evergreen: | |
importance: | Undecided → Medium |
milestone: | none → 2.6.1 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Update on findings:
In the file authority_ authority_ linker. pl, when the target marc is retrieved from the database like so...
my $target_rec = ($per_src_ target_ cache-> {$src} ||= authority_ record_ entry($ target) ) or
$e->retrieve_
die $e->die_event;
...the linking indicators (denoted by the $0) in the authority marc are incorrect.
However, when the target marc is retrieved like so...
my $target_rec = authority_ record_ entry($ target) or
$e->retrieve_
die $e->die_event;
...the linking indicators (denoted by the $0) in the authority marc are correct. The difference between the two calls to retrieve the marc is the removal of "($per_ src_target_ cache-> {$src}" in the working call.
I do not know the purpose of "($per_ src_target_ cache-> {$src}" , any thoughts? In the meantime, I am moving forward with the assumption that its removal is safe.