Bug 30527

Summary: Limits are not correctly parsed when query contains CCL
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Searching - ZebraAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low CC: magnus
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2022-04-13 14:52:59 UTC
This was made more apparent by bug 17170 - when a special limit that needs parsing is passed along witha query containing CCL indexes then the limits are not parsed (with exception of 'available' which is handled)

This is due to a clause the prevents the normal parsing in C4::Search::buildQuery

To test:
1 - Perform advanced search in staff client
2 - Select 'More options'
3 - In first box with keyword as index type 'ti:a'
4 - Enter a year into Limits
5 - Search
6 - You see only 'ti:a' in description, and search fails

with bug 17170
1 - Save a search filter visible in staff client
2 - Perform a search like 'ti:a'
3 - Attempt to filter using custom filter
4 - In plack intranet error log:
[2022/04/13 14:14:51] [WARN] WARNING: query problem with ti=a and search_filter=94 ZOOM error 10014 "CCL parsing error" (addinfo: "Unknown qualifier") from diag-set 'ZOOM' at /kohadevbox/koha/C4/Search.pm line 352.
Comment 1 Magnus Enger 2022-04-29 07:33:37 UTC

*** This bug has been marked as a duplicate of bug 30528 ***