Last modified: 2014-10-07 01:55:25 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 T73700, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71700 - DateTimeOriginal field is ignored in non-multilang mode.
DateTimeOriginal field is ignored in non-multilang mode.
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:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-06 08:22 UTC by Tisza Gergő
Modified: 2014-10-07 01:55 UTC (History)
5 users (show)

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


Attachments

Description Tisza Gergő 2014-10-06 08:22:36 UTC
The {{Information}} template value for DateTimeOriginal is parsed correctly in multilang mode but ignored in single-language mode:

http://commons.wikimedia.org/w/api.php?action=query&format=jsonfm&prop=imageinfo&titles=File%3APelican_in_its_piety%2Ejpg&iiprop=extmetadata&iiextmetadatafilter=DateTimeOriginal&iiextmetadatamultilang=1

"DateTimeOriginal": {
    "value": "<span style=\"white-space:nowrap\"><time class=\"dtstart\" datetime=\"2006-03-25\">25 March 2006</time></span> (original upload date)",
    "source": "commons-desc-page"
}

(correct)

vs

http://commons.wikimedia.org/w/api.php?action=query&format=jsonfm&prop=imageinfo&titles=File%3APelican_in_its_piety%2Ejpg&iiprop=extmetadata&iiextmetadatafilter=DateTimeOriginal&iiextmetadatalanguage=en

"DateTimeOriginal": {
    "value": "2006:03:19 10:29:45",
    "source": "file-metadata"
}

(incorrect, falls back to EXIF value)

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


Navigation
Links