[Koha-bugs] [Bug 34965] New: Authority match failing due to possible encoding conflicts
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 29 19:21:58 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34965
Bug ID: 34965
Summary: Authority match failing due to possible encoding
conflicts
Change sponsored?: ---
Product: Koha
Version: 22.11
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: esther.melander at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
Created attachment 156415
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156415&action=edit
Example authority
In this scenario, the authority record was prepared by Marcive with MARC 8,
however the record itself shows that it is UTF-8 in the leader.
To recreate:
1. Ensure there is a record match rule:
Authority 010$a
Match threshold: 1000
Record Type: Authority
Add Match Point
Search index: LC-cardnumber
Score: 1000
Tag: 010
Subfields: a
Offset: 0
Length: 0
Normalization rule: None
Add Match Check
Incoming record check
Tag: blank
Subfields: blank
Offset: 0
Length: 0
Normalization rule: None
2. Stage and import the authority.
Record type: Authority
Encoding: UTF-8 (Default)
Do not look for matching records
The record will import correctly. Check the leader and see that the encoding is
UTF-8 (UCS/Unicode).
3. Stage and import the authority again, but look for matching records.
Record type: Authority
Encoding: UTF-8 (Default)
Record matching rule Authority 010$a
Replace the existing record with incoming
Notice the file will not stage, or in other words fail.
4. Delete the example authority from the system.
5. Stage and Import the authority but select MARC 8 for the encoding, no
matching. See that it successfully imports. The encoding in the leader still
says UTF-8 (UCS/Unicode).
6. Stage and Import the authority using MARC 8 encoding, Authority 010$a
matching rule to replace existing. See that the authority successfully stages,
matches, and overlays the existing authority.
It is possible there is something unique in the way the authority was prepared
as a MARC 8. In other words, if it was prepared as a MARC 8, it should be
imported as a MARC 8, regardless of the encoding in the leader. However, the
authority did successfully import as a UTF-8 encoded file minus the matching
rule. It should be possible to import and overlay the same authority as a UTF-8
encoded authority with a match rule. Other than the encoding statement in the
leader, I can't see anything else unique about the authority.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list