Last modified: 2014-09-05 12:37:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71914, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69914 - data labels in imageinfo API don't make sense
data labels in imageinfo API don't make sense
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CommonsMetadata (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 57189 57847
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-22 18:00 UTC by Ryan Kaldari
Modified: 2014-09-05 12:37 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Kaldari 2014-08-22 18:00:44 UTC
The data currently returned by the imageinfo API assigns the author to "artist" and the source to "credit". Both of these are incorrectly labeled. In particular these labels make it difficult to figure out the proper attribution for the image, as it sounds like you should use "credit", but you should actually use "artist".

https://en.m.wikipedia.org/w/api.php?action=query&format=json&prop=imageinfo&titles=File%3ALiber_Eliensis%2EPNG&iiprop=url%7Cextmetadata
Comment 1 Brad Jorsch 2014-08-22 18:43:14 UTC
Not an API bug, it's just returning what deeper layers of MediaWiki give it. It sounds like you want the CommonsMetadata extension.
Comment 2 Tisza Gergő 2014-08-22 21:07:47 UTC
See bug 57189 comment 1 for the rationale behind the field names. In hindsight, I agree it was the wrong decision, but I am not sure it is worth changing all the field names now - the API has other serious limitations and will be eventually superseded by the structured data API when wikibase will be introduced to Commons.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links