https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28316

Nick Clemens <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from Nick Clemens <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to