https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28492

            Bug ID: 28492
           Summary: Hyphen in branchcode gives wrong search results
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Searching
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

A client noticed that when limiting by branch, some search results were wrong
and after a bit of digging, I found that it happens when the branchcode
contains a hyphen.

I was able to recreate the situation as follows:
1) Go to Administration > Libraries and add the libraries
  - Fairfield (branchcode FFL) -- if you have the default database, this
library should already exist
  - Fairfield North (branchcode FFL-N)
  - Fairfield South (branchcode FFLS)

2) Add an item to record A with holding branch FFL-N

3) Add an item to record B with holding branch FFLS

4) reindex if necessary

5) In Advanced search, search for record A and limit to Fairfield North library
-- record is in the results - OK

6) In Advanced search, search for record A and limit to Fairfield library 
-- record is in the results! - NOT OK

7) In Advanced search, search for record B and limit to Fairfield South library
-- record is in the results - OK

8) In Advanced search, search for record B and limit  to Fairfield library 
-- record is not in results - OK

As you can see, the search for branchcode FFL-N and for branchcode FFL give the
same results. 

The problem was originally found by a client using 18.05.03. I was able to
recreate in 20.05.08 and master (21.06.000), always with Zebra. I didn't try
with ES because mine is currently broken :(

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to