[Koha-bugs] [Bug 30985] New: Refine search doesn't work when item types contain same string (eg BK & BK-E)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 17 14:09:17 CEST 2022


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 at lists.koha-community.org
          Reporter: mcilwain at berlin-international.de
        QA Contact: testopia at 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.


More information about the Koha-bugs mailing list