Bug 31508 - Authorities don't link for newly created authority types
Summary: Authorities don't link for newly created authority types
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 21.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-01 17:13 UTC by victor
Modified: 2023-01-18 03:32 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description victor 2022-09-01 17:13:46 UTC
I created a new field MARC 697 – local subject
I also created a “local subjectc” authority type and then linked it to field MARC 697.
I imported some records and authorities with the information into the appropriate fields.
I ran the misc/link_bibs_to_authorities.pl script to link the authorities with the records information.
Fields 650, 100, etc. were linked normally, but field 697 was not linked.
Is this a bug in the system?
Is Koha not linking newly created MARCS fields?
Comment 1 Katrin Fischer 2022-09-06 12:01:08 UTC
What are you using for the main heading field in your local authority type?

I think they cannot be doubled up with the normal ones and there might also be a hardcoded mapping of main heading MARC field to authority type in the code somewhere.
Comment 2 victor 2022-09-06 12:22:50 UTC

Field marc created 

      697
   
I tested the creation of Subfields
   
     197 $a

     150 $a

Did not link to any of the subfields
Comment 3 victor 2022-09-06 12:24:47 UTC
(In reply to victor from comment #2)
> 
> Field marc created 
> 
>       697
>    
> I tested the creation of Subfields
>    
>      197 $a
> 
>      150 $a
> 
> Did not create links and links for any of the subfields
Comment 4 David Cook 2023-01-18 03:32:57 UTC
This is a known issue in Koha, and I don't think it's a critical bug. 

I think it's arguably an enhancement. 

I think C4/Biblio.pm and C4/Heading/MARC21.pm need to be updated. 

Locally, I've added an authority type, but it required coding to do it.

At some point, it would be a good idea for us to move out of hardcoding a lot of authority type logic and rely on configuration instead.