[Koha-bugs] [Bug 13414] Enable right truncation with search by relevance

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 17 14:52:56 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13414

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #18 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
QA Comment:
Thanks for sending your patch. I have been thinking about your patch a while.

But in the end it seems to me that we should not be mixing the features ranking
and truncation in one syspref. Search.pm is already hard to maintain. 

A crucial piece of your code: 
-        $weighted_query .= " or wrdl,r9=\"$operand\"";
-
+        } elsif ( $weight_fields == 2 ) {
+            $weighted_query .= " or wrdl,right-Truncation,r9=\"$operand\"";
+        } else {
+            $weighted_query .= " or wrdl,r9=\"$operand\"";

Question: Could you think of another way to determine when we want right
truncation in the deleted first line? Do we really need an adjusted pref? 

Since this is a complicated patch (changing Search.pm), I would also like a
thorough test plan. There is no test plan now.
And I would appreciate to hear from the one who signed off: What did you
exactly test?

Small stuff: 
[1] Add type choice in the pref file.
[2] There is no print statement in the db rev.

Moving this to Failed QA for now.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list