Page MenuHomePhabricator

Only display Caption option in data extension dialog window when user types actual (existing, valid) language codes
Open, Needs TriagePublic

Description

Currently, when an OpenRefine user types any string starting with a C in the data extension dialog window, this option will be presented as a Caption option (see screenshot below)

image.png (378×581 px, 49 KB)

For instance, when I type Country, the dialog window will give me a Caption [ountry] option (as first option), thinking I want to retrieve a file caption in the 'ountry' language.

Would it be possible to let the Caption option only appear in those cases where the user actually types C+an existing language code? E.g. Cen / Cnl / Cja / etc.

Event Timeline

@Spinster Wouldn't that be a bit too limiting, potentially for the future, if any new properties are minted? I'm not sure myself so just asking about the full context here. My thoughts are that maybe allowing options for further constraints in this dialog like properties that are subclassed under https://www.wikidata.org/wiki/Q18616084 or https://www.wikidata.org/wiki/Q20824104 ? Maybe there could be an extra toggle filter in this dialog that says "Only languages" and it filters to only those properties under those 2 subclasses?

File captions on Commons are not properties. They are technically the equivalent of Labels on Wikidata.

I just checked, and retrieving Labels via data extension from the Wikidata reconciliation service behaves the same, it's also a bit confusing there :-)

image.png (532×720 px, 73 KB)