https://bugzilla.wikimedia.org/show_bug.cgi?id=28303
Summary: error in Vector.combined.js caused by a render
function checking for "perfectmatch"
Product: MediaWiki extensions
Version: any
Platform: All
URL: http://tianglo.thinkinnovation.de
OS/Version: All
Status: NEW
Severity: critical
Priority: Normal
Component: UsabilityInitiative
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Dear team,
I installed mediawiki version 1.16.2 (updated from 1.16.0).
Then I added the extension "Usability Initiative".
Problem: I would like to use $wgVectorUseSimpleSearch = true;
but it is not working correctly.
In contrary to this website, where they use mediawiki 1.16.0 and the Usability
Initiative extension and the simple search behaves as it should:
https://wiki.fh-giessen-friedberg.de/index.php/THM-Wiki
Trying to solve it ourselves,
we played a little around with the file
/extensions/UsabilityInitiative/Vector/Vector.combined.js
and found the lines
special: {
render: function( query ) {
var perfectMatch = true;
$j(this).closest( '.suggestions' ).find( '.suggestions-results
div' ).each( function() {
if ( $j(this).data( 'text' ) == query ) {
perfectMatch = true;
}
} );
if ( perfectMatch ) {
Disabling "perfectMatch" we were able to force that the fulltext suggestion
appearing in case the search string matches the start of a TITLE.
However we could not solve why the PAGE TEXT is not being considered.
No suggestion "containing..." displayed when typing a string.
Any idea where the problem originates from?
Thank you very much.
Markus
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l