Bug 33296 - Linker should search for authority records with an appropriate 008/14,15,16 value
Summary: Linker should search for authority records with an appropriate 008/14,15,16 v...
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Authority data support (show other bugs)
Version: Main
Hardware: All All
: P3 enhancement
Assignee: Janusz Kaczmarek
QA Contact: Testopia
URL:
Keywords:
Depends on: 38494 33277
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-21 19:56 UTC by Phil Ringnalda
Modified: 2024-11-23 17:04 UTC (History)
3 users (show)

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


Attachments
Bug 33296: Linker should search for authority records with an appropriate 008/14,15,16 value (3.44 KB, patch)
2024-11-23 16:01 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 33296: Unit tests (3.83 KB, patch)
2024-11-23 16:01 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 33296: Linker should search for authority records with an appropriate 008/14,15,16 value (3.49 KB, patch)
2024-11-23 17:04 UTC, Roman Dolny
Details | Diff | Splinter Review
Bug 33296: Unit tests (3.88 KB, patch)
2024-11-23 17:04 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Ringnalda 2023-03-21 19:56:59 UTC
In an authority record, 008/14 = 'a' says it's appropriate for use as a main or added entry (1xx, 7xx), 008/15 = 'a' says it's appropriate for use as a subject entry, and 008/16 = 'a' says it's appropriate for use as a series entry (800-830, 440 since we still support it).

In a world where we support multiple subject thesauri, we need a way to tell the difference between a name entry which intends to be used as a main entry and one which intends to only be used as a subject authority, and the way the subject-only one should say that is by having 008/14 = 'b'
Comment 1 Phil Ringnalda 2023-03-22 02:02:49 UTC
Using 008/16 would be a bit more trouble since AutoCreateAuthorities has never bothered setting it since we've never used it, but we already need to teach it new lessons for bug 31925 too.
Comment 2 Phil Ringnalda 2024-03-05 15:57:44 UTC
But we do have the virtually unused LinkerOptions to let people opt in.
Comment 3 Phil Ringnalda 2024-11-20 21:38:37 UTC
*** Bug 38494 has been marked as a duplicate of this bug. ***
Comment 4 Janusz Kaczmarek 2024-11-23 16:01:26 UTC
Created attachment 174957 [details] [review]
Bug 33296: Linker should search for authority records with an appropriate 008/14,15,16 value

In an authority record, 008/14 = 'a' says it's appropriate for use as a
main or added entry (1xx, 7xx), 008/15 = 'a' says it's appropriate for
use as a subject entry, and 008/16 = 'a' says it's appropriate for use
as a series entry.

Test plan:
==========
1. Have a standard KTD environment. Have the patches from Bug 38494
   applied.
2. Set AutoLinkBiblios system preference to 'Do', and
   ConsiderHeadingUse to 'Do'.
3. Open an existing bibliographic record and add a new field 650. In
   subfield $a enter 'Application software' (without quotes), and in $x
   'Development.' (with final dot).
4. Save the record. In Normal view control that the entered subject
   heading entry has been linked with the existing authority record (note
   the magnifying glass icon).
5. Apply the patch ; restart all.
6. Repeat p. 3. Note that this time the newly entered subject heading
   entry has not been linked with the existing authority record. This is
   because the authority record has 008/15 = '|' while 'a' is required with
   ConsiderHeadingUse.
7. In Authorities, find the record for 'Application
   software--Development.' Modify it by changing 008/15 to 'a' (Heading
   use--subject added entry).
8. Return to the bibliographic record. Open it in the editor and save.
   The subject heading entry for 'Application software--Development.'
   should now be linked with the existing authority record.
Comment 5 Janusz Kaczmarek 2024-11-23 16:01:28 UTC
Created attachment 174958 [details] [review]
Bug 33296: Unit tests

Unit tests for Bug 33296.
Comment 6 Roman Dolny 2024-11-23 17:04:02 UTC
Created attachment 174959 [details] [review]
Bug 33296: Linker should search for authority records with an appropriate 008/14,15,16 value

In an authority record, 008/14 = 'a' says it's appropriate for use as a
main or added entry (1xx, 7xx), 008/15 = 'a' says it's appropriate for
use as a subject entry, and 008/16 = 'a' says it's appropriate for use
as a series entry.

Test plan:
==========
1. Have a standard KTD environment. Have the patches from Bug 38494
   applied.
2. Set AutoLinkBiblios system preference to 'Do', and
   ConsiderHeadingUse to 'Do'.
3. Open an existing bibliographic record and add a new field 650. In
   subfield $a enter 'Application software' (without quotes), and in $x
   'Development.' (with final dot).
4. Save the record. In Normal view control that the entered subject
   heading entry has been linked with the existing authority record (note
   the magnifying glass icon).
5. Apply the patch ; restart all.
6. Repeat p. 3. Note that this time the newly entered subject heading
   entry has not been linked with the existing authority record. This is
   because the authority record has 008/15 = '|' while 'a' is required with
   ConsiderHeadingUse.
7. In Authorities, find the record for 'Application
   software--Development.' Modify it by changing 008/15 to 'a' (Heading
   use--subject added entry).
8. Return to the bibliographic record. Open it in the editor and save.
   The subject heading entry for 'Application software--Development.'
   should now be linked with the existing authority record.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 7 Roman Dolny 2024-11-23 17:04:05 UTC
Created attachment 174960 [details] [review]
Bug 33296: Unit tests

Unit tests for Bug 33296.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>