[Bug 43488] New: The location field contains parentheses: `Boadilla del Monte (Madrid)`. If these are not properly escaped or enclosed in quotes from the parser's perspective, the system might misinterpret the inner closing parenthesis `)` as the end of a command group ra
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43488 Bug ID: 43488 Summary: The location field contains parentheses: `Boadilla del Monte (Madrid)`. If these are not properly escaped or enclosed in quotes from the parser's perspective, the system might misinterpret the inner closing parenthesis `)` as the end of a command group ra Initiative type: --- Sponsorship --- status: Product: Koha Version: 26.05 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: angel.duran@coria.org QA Contact: testopia@bugs.koha-community.org Target Milestone: --- WARNING: query problem with (rk=(kw,wrdl,rtrn="ccl=pl:"Boadilla del Monte (Madrid)" and se:El barco de vapor. [Serie blanca] and se:Serie Pupi and (( (allrecords,AlwaysMatches='') and (not-onloan-count,st-numeric >= 1) and (lost,st-numeric=0) )) and au=Menéndez-Ponte, MarÃÂa" )) and se=El barco de vapor. [Serie blanca] ZOOM error 10014 "CCL parsing error" (addinfo: "')' expected") from diag-set 'ZOOM' at /usr/share/koha/lib/C4/Search.pm line 383. From Gemini IA This is a database search error from an integrated library system (Koha) using the ZOOM CCL (Common Command Language) parser. ## What the Error Means * **Error Code:** `ZOOM error 10014` * **Message:** `"CCL parsing error" (addinfo: "')' expected")` * **Cause:** The search query string contains a **mismatched or missing parenthesis (`(` or `)`)**. The parser expected a closing parenthesis to complete an expression block, but it reached the end of the query or encountered an unexpected character instead. --- ## How to Fix It 1. **Check Parentheses Matching:** Look closely at the nested parentheses in your query structure, particularly around the availability limits: `(( (allrecords,AlwaysMatches='') and (not-onloan-count,st-numeric >= 1) and (lost,st-numeric=0) ))` Make sure every opening parenthesis has a corresponding closing parenthesis. 2. **Check Special Characters in Fields:** The location field contains parentheses: `Boadilla del Monte (Madrid)`. If these are not properly escaped or enclosed in quotes from the parser's perspective, the system might misinterpret the inner closing parenthesis `)` as the end of a command group rather than plain text. 3. **Simplify the Query:** Try running the search with fewer filters (e.g., just searching for the author `Menéndez-Ponte, María` and series `El barco de vapor`) and add the availability or location constraints step-by-step to see where the syntax breaks. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43488 --- Comment #1 from Angel Durán <angel.duran@coria.org> --- Check the search string before performing the search by analyzing whether it contains these characters, in order to enclose them in quotation marks. For example, if a user enters: Boadilla del Monte (Madrid) The OPAC should change it to: Boadilla del Monte "("Madrid")" before executing the search. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43488 --- Comment #2 from Angel Durán <angel.duran@coria.org> --- Another possible solution would be to remove the parentheses and any symbols that might cause problems, but I leave that to the experts in library science; I am an IT specialist. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43488 Angel Durán <angel.duran@coria.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Searching |OPAC Assignee|koha-bugs@lists.koha-commun |oleonard@myacpl.org |ity.org | -- 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=43488 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|OPAC |Searching - Zebra Assignee|oleonard@myacpl.org |koha-bugs@lists.koha-commun | |ity.org -- 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