| Vvjjkkii renamed this task from "#DefaultView:Map popup fields should preserve sequence from select statement" to "opbaaaaaaa". Vvjjkkii triaged this task as "High" priority. Vvjjkkii removed a subscriber: Aklapper. Vvjjkkii added projects: CheckUser, Connected-Open-Heritage-Batch-uploads (RAÄ-KMB_1_2017-02), Tamil-Sites, Gamepress, Hashtags, JADE, KartoEditor, Language-2018-Apr-June, New-Editor-Experiences, Mail, TCB-Team. Vvjjkkii updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
Item popups within the map view may show multiple field. Currently, their order seems to be not related to the list in the select clause. Example:
```lang=sparql
#defaultView:Map{"hide":"?geo"}
select ?image ?item ?itemLabel ?pobLabel ?viewer ?geo
where {
# occupation: economist
?item wdt:P106 wd:Q188094 ;
# with PM20 id
wdt:P4293 ?pm20Id ;
# with place of birth
wdt:P19 ?pob .
# geo coordinates for pob
?pob wdt:P625 ?geo .
# optional image
optional { ?item wdt:P18 ?image . }
# viewer link
bind(substr(?pm20Id, 4, 4) as ?numStub)
bind(substr(?pm20Id, 4, 6) as ?num)
bind(uri(concat('http://dfg-viewer.de/show/?tx_dlf[id]=http://zbw.eu/beta/pm20mets/pe/', ?numStub, 'xx/', ?num, '.xml')) as ?viewer)
# add labels
service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, de, fr, es, nl, pl, ru". }
}
```
This results in the non-sensical sequence:
- ?pobLabel
- ?viewer
- ?image
- ?item/?itemLabel
in the the popup.
Users should be able to enforce a certain field sequence via the select clause.26570726f6475636520796f757220627567207573696e67206120726563656e742076657273696f6e206f662074686520736f6674776172652c20746f2068652077696b6920636f6e74656e74206c616e67756167652e0a0a5468616e6b20796f752e0a546167730a436865636b557365720ad70a436f6e6e65637465642d4f70656e2d48657269746167652d42617463682d75706c6f61647320285241c42d4b4d425f315f323031372d3032290ad70a54616d696c2d53697465730ad70a47616d6570726573730ad70a48617368746167730ad70a4a4144450ad70a4b6172746f456469746f720ad70a4c616e67756167652d323031382d4170722d4a756e650ad70a4e65772d456469746f722d457870657269656e6365730ad70a4d61696c0ad70a5443422d5465616d0ad70a53756273637269626572730a4465736372697074696f6e20507265766965770a436f6e74656e77a6f6e652073657474696e6720696e20796f75722070726f66696c652c20636c69636b20746f207265636f6e63696c652e
```lang=sparql
#defaultView:Map{"hide":"?geo"}
select ?image ?item ?itemLabel ?pobLabel ?viewer ?geo
where {
# occupation: economist
?item wdt:P106 wd:Q188094 ;
# with PM20 id
wdt:P4293 ?pm20Id ;
# with place of birth
wdt:P19 ?pob .
# geo coordinates for pob
?pob wdt:P625 ?geo .
# optional image
optional { ?item wdt:P18 ?image . }
# viewer link
bind(substr(?pm20Id, 4, 4) as ?numStub)
bind(substr(?pm20Id, 4, 6) as ?num)
bind(uri(concat('http://dfg-viewer.de/show/?tx_dlf[id]=http://zbw.eu/beta/pm20mets/pe/', ?numStub, 'xx/', ?num, '.xml')) as ?viewer)
# add labels
service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, de, fr, es, nl, pl, ru". }
}
```
This results in the non-sensical sequence:
- ?pobLabel
- ?viewer
- ?image
- ?item/?itemLabel
in the the popup.
Users should be able to enforce a certain field sequence via the select clause.26570726f6475636520796f757220627567207573696e67206120726563656e742076657273696f6e206f662074686520736f6674776172652c20746f2068652077696b6920636f6e74656e74206c616e67756167652e0a0a5468616e6b20796f752e0a546167730a436865636b557365720ad70a436f6e6e65637465642d4f70656e2d48657269746167652d42617463682d75706c6f61647320285241c42d4b4d425f315f323031372d3032290ad70a54616d696c2d53697465730ad70a47616d6570726573730ad70a48617368746167730ad70a4a4144450ad70a4b6172746f456469746f720ad70a4c616e67756167652d323031382d4170722d4a756e650ad70a4e65772d456469746f722d457870657269656e6365730ad70a4d61696c0ad70a5443422d5465616d0ad70a53756273637269626572730a4465736372697074696f6e20507265766965770a436f6e74656e77a6f6e652073657474696e6720696e20796f75722070726f66696c652c20636c69636b20746f207265636f6e63696c652e
TASK DETAIL
EMAIL PREFERENCES
To: Vvjjkkii
Cc: Ayack, Jneubert, AndyTan, Zylc, 1978Gage2001, Lahi, Gq86, herron, pan199312, Lucas_Werkmeister_WMDE, GoranSMilovanovic, Chicocvenancio, alanajjar, QZanden, EBjune, Tbscho, merbst, LawExplorer, Lea_WMDE, Mattias_Ostmar-WMSE, Salgo60, JJMC89, Jseddon, Ryuch, Mkdw, RuyP, JEumerus, Jonas, Xmlizer, Trizek-WMF, KasiaWMDE, 0x010C, srodlund, Luke081515, grin, Bsadowski1, mys_721tx, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, Snowolf, aude, Tobias1984, Huji, Manybubbles, Gryllida, jayvdb, Tobi_WMDE_SW, Lydia_Pintscher, revi, scfc, He7d3r, Romaine, Mbch331, Jay8g, Glaisher, Krenair, chasemp, Aklapper
Cc: Ayack, Jneubert, AndyTan, Zylc, 1978Gage2001, Lahi, Gq86, herron, pan199312, Lucas_Werkmeister_WMDE, GoranSMilovanovic, Chicocvenancio, alanajjar, QZanden, EBjune, Tbscho, merbst, LawExplorer, Lea_WMDE, Mattias_Ostmar-WMSE, Salgo60, JJMC89, Jseddon, Ryuch, Mkdw, RuyP, JEumerus, Jonas, Xmlizer, Trizek-WMF, KasiaWMDE, 0x010C, srodlund, Luke081515, grin, Bsadowski1, mys_721tx, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, Snowolf, aude, Tobias1984, Huji, Manybubbles, Gryllida, jayvdb, Tobi_WMDE_SW, Lydia_Pintscher, revi, scfc, He7d3r, Romaine, Mbch331, Jay8g, Glaisher, Krenair, chasemp, Aklapper
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
