[Koha-bugs] [Bug 28316] Cannot search with square brackets []
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 27 15:47:35 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28316
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |victor at tuxayo.net
--- Comment #8 from Nick Clemens <nick at bywatersolutions.com> ---
This is a great improvement, I have been playing with this and bug 28326.
I found most things work, but QueryAutoTruncate does play some role here.
Title of record:
The ideas behind the chess openings "fox quick"~5 tag:{alpha TO omega}
With QueryAutoTruncate = only if * is added:
The ideas behind the chess openings "fox quick"~5 tag:{alpha TO omega} => No
results
Quote it:
"The ideas behind the chess openings "fox quick"~5 tag:{alpha TO omega}" =>
Results!
With QueryAutoTrunacte = automatically:
The ideas behind the chess openings "fox quick"~5 tag:{alpha TO omega} =>
Error: Unable to perform your search
Quote it:
"The ideas behind the chess openings "fox quick"~5 tag:{alpha TO omega} " =>
Results
I find that with this patch, and then adding quotes around the search in bug
28326:
diff --git a/catalogue/detail.pl b/catalogue/detail.pl
index 8d06f0da51..b11346162c 100755
--- a/catalogue/detail.pl
+++ b/catalogue/detail.pl
@@ -132,7 +132,7 @@ if ( $xslfile ) {
my $query =
( C4::Context->preference('UseControlNumber') and $record->field('001')
)
? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR
bib-level:b)'
- : "Host-item:$cleaned_title";
+ : 'Host-item:"'.$cleaned_title.'"';
Most things work.
I am pinging Victor as he has been finding ways to fail all of these, but I
think we are on a good track
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list