Bug 31278

Summary: ISBN and ISSN searching should quote the query terms
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: SearchingAssignee: Tomás Cohen Arazi <tomascohen>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: katrin.fischer, nick
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 23919    
Bug Blocks:    

Description Tomás Cohen Arazi 2022-08-01 18:00:39 UTC
It doesn't. To reproduce:
1. Open your logs:
   $ restart_all ; tail -f /var/log/koha/kohadev/*.log
2. Open the advanced search page
3. Search on ISBN and/or ISSN, for the term 123:456=789
=> FAIL: The logs =~ m/
[WARN] WARNING: query problem with nb=(rk=(123:456=789))  ZOOM error 10014 "CCL parsing error" (addinfo: "Unknown qualifier") from diag-set 'ZOOM' at /kohadevbox/koha/C4/Search.pm line 350.
Comment 1 Katrin Fischer 2022-08-02 12:24:34 UTC
Quoting works nicely where we construct the searches from data int he records, but not sure about auto-quoting manual inputs because I believe this disables truncation with * in Zebra and possibly in Elasticsearch has a similar effect?