Bug 38494

Summary: Koha should consider authority heading use in cataloging
Product: Koha Reporter: Janusz Kaczmarek <januszop>
Component: MARC Authority data supportAssignee: Janusz Kaczmarek <januszop>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P3 CC: phil
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33296
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 38494: Add 'ConsiderHeadingUse' system preference
Bug 38494: Koha should consider authority heading use in cataloging
Bug 38494: Add 'ConsiderHeadingUse' system preference
Bug 38494: Koha should consider authority heading use in cataloging

Description Janusz Kaczmarek 2024-11-20 12:56:11 UTC
In MARC 21 authority records, three bytes (008/14-16) indicate what the heading can be used for (main/added entry, subject entry, series entry).  Koha should be able to respect the record's intended use in authority search during cataloging, provided that the authority file is well formed.  Also, we should be able to decide between more strict but correct behavior and current lax behavior.
Comment 1 Phil Ringnalda 2024-11-20 21:38:37 UTC
I think so too :)

I can't remember whether I actually looked at whether you could do it with LinkerOptions rather than yet another pref, though.

*** This bug has been marked as a duplicate of bug 33296 ***
Comment 2 Janusz Kaczmarek 2024-11-20 23:11:09 UTC
This is not a duplicate to Bug 33296.  Automated linker will be the next step.  This is for cataloging authority finder, which is, technically, not connected with the linker.
Comment 3 Janusz Kaczmarek 2024-11-20 23:12:57 UTC
Created attachment 174863 [details] [review]
Bug 38494: Add 'ConsiderHeadingUse' system preference

Add new system preference 'ConsiderHeadingUse' to by able to consider
the intended use of authority records (008/14-16) during cataloging
and linking.
Comment 4 Janusz Kaczmarek 2024-11-20 23:12:59 UTC
Created attachment 174864 [details] [review]
Bug 38494: Koha should consider authority heading use in cataloging

In MARC 21 authority records, three bytes (008/14-16) indicate what the
heading can be used for (main/added entry, subject entry, series entry).
Koha should be able to respect the record's intended use in authority
search during cataloging, provided that the authority file is well
formed.  Also, we should be able to decide between more strict but
correct behavior and current lax behavior.

Test plan:
----------
1. Apply the patch; updatedatabase ; restart_all
2. Set the ShowHeadingUse system preference to ‘Show’
3. Go to the Cataloging editor and open the authority finder plugin for
   the 100 field. Search for Peter. With standard ktd test data you should
   get 9 results, some with ‘v’ before Main/Added Entry, some with ‘x’.
   These with ‘x’ are not to be used in this context, provided you use a
   well-formed authority file
4. Set ConsiderHeadingUse system preference to ‘Do’
5. Repeat p. 3.  You should get now only 4 Peters – those with ‘v’
   before Main/Added Entry (008/14 = ‘a’)
6. You can repeat the test for subject headings (6XX) and series
   headings (sometimes you would have to modify the test data, e.g. there
   are few authority records with 008/16 = ‘a’ (series use)
7. This should work equally with Zebra and with Elasticsearch
Comment 5 Janusz Kaczmarek 2024-11-20 23:16:58 UTC
Created attachment 174865 [details] [review]
Bug 38494: Add 'ConsiderHeadingUse' system preference

Add new system preference 'ConsiderHeadingUse' to be able to consider
the intended use of authority records (008/14-16) during cataloging
and linking.

Sponsored-by: Ignatianum University in Cracow
Comment 6 Janusz Kaczmarek 2024-11-20 23:17:00 UTC
Created attachment 174866 [details] [review]
Bug 38494: Koha should consider authority heading use in cataloging

In MARC 21 authority records, three bytes (008/14-16) indicate what the
heading can be used for (main/added entry, subject entry, series entry).
Koha should be able to respect the record's intended use in authority
search during cataloging, provided that the authority file is well
formed.  Also, we should be able to decide between more strict but
correct behavior and current lax behavior.

Test plan:
----------
1. Apply the patch; updatedatabase ; restart_all
2. Set the ShowHeadingUse system preference to ‘Show’
3. Go to the Cataloging editor and open the authority finder plugin for
   the 100 field. Search for Peter. With standard ktd test data you should
   get 9 results, some with ‘v’ before Main/Added Entry, some with ‘x’.
   These with ‘x’ are not to be used in this context, provided you use a
   well-formed authority file
4. Set ConsiderHeadingUse system preference to ‘Do’
5. Repeat p. 3.  You should get now only 4 Peters – those with ‘v’
   before Main/Added Entry (008/14 = ‘a’)
6. You can repeat the test for subject headings (6XX) and series
   headings (sometimes you would have to modify the test data, e.g. there
   are few authority records with 008/16 = ‘a’ (series use)
7. This should work equally with Zebra and with Elasticsearch

Sponsored-by: Ignatianum University in Cracow
Comment 7 Katrin Fischer 2024-11-21 09:20:10 UTC
I need to investigate a bit more how it represents in MARC for us, but I know that for GND records you can use the same records for both main/added and subject. So we don't have that differentiation in our authority file I believe.