Page MenuHomePhabricator

Link to File: page in embed code if no licensing information can be extracted
Open, LowPublic

Description

Current behavior: If a file page contains no machine-readable attribution information, media viewer includes only a link to the project (e.g. Wikipedia itself) in the embed link.

Expected behavior: Media Viewer should provide best-available attribution information in the embed link. Since we don't know if the file requires attribution and cannot predictably extract the author, linking to the File: page is likely the best-available information.


Version: unspecified
Severity: normal

Details

Reference
bz69618

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:34 AM
bzimport set Reference to bz69618.
bzimport added a subscriber: Unknown Object (MLST).

Is this what Rich was hinting at in https://bugzilla.wikimedia.org/show_bug.cgi?id=69292#c3 or is it a separate bug?

I don't know what Rich was hinting at, he hasn't told us. :)

Yeah, I thought you might have insider information somehow. Thanks anyway!

Dumb question: doesn't mediaviewer simply mimic the existing behavior of the "use this file" gadget in this situation?

Possibly. Technically, the "use this file" gadget does not exist on local wikis (only on Commons), and this issue will be most common for local file uploads where templates haven't been adopted yet to emit machine-readable metadata. Example:

http://de.wikipedia.org/wiki/Datei:DFBEagle.svg

(We should help fix some more of those templates, but the issue will remain for files without any standard templates.)

Ugh. Yes, a link to the File: page would be much superior in that case.

@mark Holmquist - I am going from what I have read on de; Commons en: and meta: written by representatives of the respective communities that I trust.

I want to avoid us doing the wrong thing, legally, ethically, morally and technically, and it seems to me that being inflexible is not consistent with that aim.

Luis Villa (WMF Legal): I have commented on the legal aspect at https://bugzilla.wikimedia.org/show_bug.cgi?id=69292#c7

I am sure MV will be fabulous when it is finished.

Gilles triaged this task as Low priority.Nov 24 2014, 2:06 PM
Gilles added a subscriber: Gilles.
Tgr added a comment.Dec 28 2014, 8:15 AM

Do you have any recommendation for the exact text? Currently if there is no machine-readable attribution data (example), the attribution text will be something like

[thumbnail]
"[image name or caption]". Licensed under [license name] via [Wikimedia Commons]

with the links being

[thumbnail]: the file page with MediaYViewer opened
"[image name or caption]: the file page with MediaYViewer opened
[license name]: license-specific URL
[Wikimedia Commons]: Commons main page

What would be a better text?

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:09 PM
Restricted Application added subscribers: Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:09 PM

Mass-removing the Multimedia tag from MediaViewer tasks, as this is now being worked on by the Reading department, not Editing's Multimedia team.

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptApr 27 2016, 4:24 PM

I was looking into this on the latest code from git and it seems fixed to me. Here I what I get on a local image with no copyright tag:

<p><a href="http://dev.wiki.local.wmftest.net:8080/wiki/File:Ioan_Em._Florescu_-_Europeana.jpeg#/media/File:Ioan_Em._Florescu_-_Europeana.jpeg"><img src="http://dev.wiki.local.wmftest.net:8080/images/0/01/Ioan_Em._Florescu_-_Europeana.jpeg" alt="Ioan Em. Florescu - Europeana.jpeg" width="303" height="480"></a><br>By <a href="https://en.wikipedia.org/wiki/Carol_Szathmari" class="extiw" title="en:Carol Szathmari">Carol Szathmari</a> - <a rel="nofollow" class="external free" href="http://www.europeana.eu/portal/en/record/9200461/BibliographicResource_3000148673958.html?q=COUNTRY%3A%22romania%22">http://www.europeana.eu/portal/en/record/9200461/BibliographicResource_3000148673958.html?q=COUNTRY%3A%22romania%22</a>, Public Domain, <a href="http://dev.wiki.local.wmftest.net:8080/w/index.php?curid=9">Link</a></p>

The last part links directly to the file

Tgr removed a subscriber: Tgr.Jul 9 2019, 6:04 PM