[Bug 30985] New: Refine search doesn't work when item types contain same string (eg BK & BK-E)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30985 Bug ID: 30985 Summary: Refine search doesn't work when item types contain same string (eg BK & BK-E) Change sponsored?: --- Product: Koha Version: 21.11 Hardware: All OS: Linux Status: NEW Severity: normal Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: mcilwain@berlin-international.de QA Contact: testopia@bugs.koha-community.org When trying to a refine search for books only (no ebooks), I noticed nothing was happening; I was still geting all books AND ebooks. Upon further inspection I realized that the authorized values for books was BK and eBooks was BK-E. I realized that Koha was probably simply not being very strict when narrowing results by item type and was returning BK and BK-E because they both contained the string 'BK'. I tested whether this was the case with other item types and didn't have an issue. I then tested by creating a new item type with authorized value EPUB and manually switched some BK-E records to the new item type (both 942$c and 952$y) and that resolved the issue. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30985 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- That's because - is treated as a space. So the search for BK is ALSO a search for BK E. This has been reported often, but is actually more of a configuration issue. It's recommended to not use spaces or hyphens in your itemtype, collection and location codes. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org