Page MenuHomePhabricator

Return the number of authors from multiple Information templates
Closed, ResolvedPublic

Description

When there are multiple {{Information}}-like templates on a file page (a typical pairing is {{Artwork}} + {{Photograph}}), CommonsMetadata only returns author information from one of them, which might result in misleading attribution texts (e.g. one is PD, the other not, and CommonsMetadata returns the first one).

As an ugly hack, return in a new field the number of authors (i.e. the number of {{Information}}-like templates with author fields). Clients can use this information to show some sort of warning. (Proper solution of this issue will have to wait for [[c:Commons:Structured_data]].)


Version: master
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:55 AM
bzimport added a project: CommonsMetadata.
bzimport set Reference to bz72081.
bzimport added a subscriber: Unknown Object (MLST).
Gilles triaged this task as Medium priority.Nov 24 2014, 1:50 PM
Gilles subscribed.

Change 176215 had a related patch set uploaded (by Gerg? Tisza):
Refactor information template parsing to better support multiple templates

https://gerrit.wikimedia.org/r/176215

Patch-For-Review

Tgr moved this task from Untriaged to Ready for testing on the Multimedia board.

Change 176215 merged by jenkins-bot:
Refactor information template parsing to better support multiple templates

https://gerrit.wikimedia.org/r/176215