listeria_rs icon indicating copy to clipboard operation
listeria_rs copied to clipboard

Description is based on Wikidata item even when setting wikibase=Commons

Open lokal-profil opened this issue 4 years ago • 1 comments

When using columns=description together with wikibase=Commons the description is based on the Wikidata item with the Q-id that matches the numerical part of the M-id.

I.e. the description of Q21037022 is provided for M21037022.

See this table as an example

Note that by contrast columns=label provides the correct label ("caption" on Commons) albeit linking to Wikidata (see #56)

lokal-profil avatar Jan 20 '21 10:01 lokal-profil

Diging into this a bit more it looks like it is get_autodesc_description which is unaware that this object doesn't live on Wikidata.

Having had a think about what the expected behaviour is, description should probably always return a blank (or an error) since Structured data on Commons does not support it.

lokal-profil avatar Jan 20 '21 21:01 lokal-profil