Page MenuHomePhabricator

#DefaultView:Map popup fields should preserve sequence from select statement
Open, Needs TriagePublic

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:

#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.

Event Timeline

Hi @Jneubert, thanks for taking the time to report this!
Which software project is this about exactly? Where to see/find "Item popups within the map view"?

Vvjjkkii renamed this task from #DefaultView:Map popup fields should preserve sequence from select statement to opbaaaaaaa.Jul 1 2018, 1:06 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from opbaaaaaaa to #DefaultView:Map popup fields should preserve sequence from select statement.Jul 1 2018, 11:02 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.