Last modified: 2013-07-25 07:04:58 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 T45066, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43066 - Replace search box with item selector
Replace search box with item selector
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Wikidata bugs
:
: 43774 (view as bug list)
Depends on:
Blocks: 44529 44674
  Show dependency treegraph
 
Reported: 2012-12-13 12:08 UTC by Daniel Kinzler
Modified: 2013-07-25 07:04 UTC (History)
7 users (show)

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


Attachments

Description Daniel Kinzler 2012-12-13 12:08:52 UTC
The search box on the wikidata repository is not very useful, as it only suggests page titles (i.e. Q12345), see bug 43020. Usually, people use that box to quickly go to a specific item - so, what is wanted is really an item selector. Which we already have.

The search box could be replaced by an item selector with a little bit of special sauce: if the quick lookup for a matching item fails, it should take the user to Special:Search for a full text search. Similarly, searching for the mepty string should take the user to Special:Search.
Comment 1 jeblad 2012-12-13 13:33:35 UTC
If there is something looking like a namespace with entities then use labels and aliases, otherwise use the ordinary opensearch. Keep the search box as close as possible to the existing one, that is have search in the lowermost entry.
Comment 2 Nemo 2013-01-13 10:28:26 UTC
*** Bug 43774 has been marked as a duplicate of this bug. ***
Comment 3 Nemo 2013-02-16 12:11:56 UTC
Gerrit change #49263
Comment 4 jeblad 2013-02-17 19:37:06 UTC
Tried the solution in the change, but at least it is missing some way to make the usual search work. It could be some additional field in the drop down that takes the user to the search page, but I think this solution (ie. item selector) should only be available when there are some indication that the namespace is not an entity namespace. That is the search "Wikidata:Project" should list the "Project chat" by using the ordinary title listing, and "Property:head" should list "Property:Head of state" by using the item selector.
Comment 5 Nemo 2013-02-17 21:02:02 UTC
(In reply to comment #4)
> Tried the solution in the change, but at least it is missing some way to make
> the usual search work. It could be some additional field in the drop down
> that
> takes the user to the search page, but I think this solution (ie. item
> selector) should only be available when there are some indication that the
> namespace is not an entity namespace. That is the search "Wikidata:Project"
> should list the "Project chat" by using the ordinary title listing, and
> "Property:head" should list "Property:Head of state" by using the item
> selector.

[[mw:Extension:SearchExtraNS]] does something like that (changing search behaviour depending on keyword prefix), maybe it could help. There was also consensus that it should be merged to core (or MWSearch?), in case that helps recycling its logic.
Comment 6 abraham.taherivand 2013-02-20 16:57:40 UTC
Verified in Wikidata demo sprint 33

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


Navigation
Links