Last modified: 2011-03-29 10:44:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30303, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28303 - error in Vector.combined.js caused by a render function checking for "perfectmatch"
error in Vector.combined.js caused by a render function checking for "perfect...
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
UsabilityInitiative (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Trevor Parscal
http://tianglo.thinkinnovation.de
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-29 10:32 UTC by Markus
Modified: 2011-03-29 10:44 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Markus 2011-03-29 10:32:54 UTC
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
Comment 1 Roan Kattouw 2011-03-29 10:44:01 UTC
This is fixed in 1.17. A release candidate for 1.17 is slated to be released this week.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links