Bug 28892

Summary: Item search treats lower and upper case subfields as the same
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SearchingAssignee: Bugs List <koha-bugs>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20689
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2021-08-23 23:31:15 UTC
At the moment when you are using upper case subfields in items and your bibliographic records, this will work in the frameworks, in cataloguing and in searching with Zebra. 

But as the item search uses SQL and ExtractValue, it will always return the contents of the lower and upper case subfield, no matter what you configured for your additional item search fields.

Example: 520$a, 520$A
Comment 1 Katrin Fischer 2021-08-23 23:55:09 UTC
Sadly I am not sure we will be able to fix this.

The biblio_metadata has a case insensitive collation right now. Which I think is what we want when searching for example for a title or author in the record. 

I am not sure we can treat the attributes (MARC fields and subfields) in the MARCXML record as case sensitive, while treating the contents of the elements as case insensitive at the same time.