Bug 28117

Summary: Provide a way to strip special characters for placeholders in OPACOPACSearchForTitleIn
Product: Koha Reporter: Eugene Espinoza <eugenegf>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: OPACSearchForTitleIn

Description Eugene Espinoza 2021-04-09 03:33:41 UTC
Created attachment 119342 [details]
OPACSearchForTitleIn

In OPACSearchForTitleIn, we give a way for OPAC users to search for similar materials in other libraries. Placeholders available are: {BIBLIONUMBER}, {CONTROLNUMBER}, {TITLE}, {ISBN}, {ISSN} and {AUTHOR}. If for example the author is a conference name, this would mean this placeholder will have extra characters like open and close parenthesis: "(" ")" and semi-colons. If this search query will be passed to InternetArchive Scholar, it will have a query parser error because the query format is like below: 
author:('query search')
So if the author is "Jose Rizal National Centennial Commission (1961: Manila)", the corresponding search query will be:
author:('Jose Rizal National Centennial Commission "(1961:" Manila)')
So I propose for a new system preference that will let you add special characters to ignore for placeholders.