Bug 38032 - Make bulkmarcimport.pl -a respect embedded authtypecode
Summary: Make bulkmarcimport.pl -a respect embedded authtypecode
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Authority data support (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-30 10:48 UTC by Magnus Enger
Modified: 2024-10-16 12:47 UTC (History)
0 users

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 Magnus Enger 2024-09-30 10:48:25 UTC
I have generated some authority records from some data exported from another ILS, and am trying to import them into Koha. I have put an authtypecode in 942$a, and thought that would be enough to get them into the categories I want. But it seems C4::AuthoritiesMarc::GuessAuthTypeCode() is overruling me, and assigning authorities to authtypecodes based on the fields present in the records. 

It would be nice if there was at least a command line switch to say 942$a should be respected.
Comment 1 Katrin Fischer 2024-10-01 13:52:02 UTC
Can you explain the use case? Why is the sorting by heading field not working in this case?
Comment 2 Magnus Enger 2024-10-16 12:47:55 UTC
(In reply to Katrin Fischer from comment #1)
> Can you explain the use case? Why is the sorting by heading field not
> working in this case?

The problem is that I have different categories of authorities, say "Corporation" and "Coprporation as subject". So one could be used to say "this document was published by CorpX" and the other to say "this document is about CorpX". (Maybe the same authority record could be used for both of these? But this is how the data was structured in the customer's Legacy System.)

Both "Authority types" use 110 as the "Auth field copied". But when I import these auth records, Koha sees there is data in 110, and puts all the auths in the same category, regarless of what I put in 942$a.