[go: up one dir, main page]

Page MenuHomePhabricator

MediaViewer confuses different instances of the same image on the same page
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. go to https://www.mediawiki.org/wiki/Multimedia/About_Media_Viewer
  2. Click on the first image of the How does Media Viewer work? section.

Observe that the caption is missing.

MediaViewer actually opened the first instance of the same image (somewhat higher on the page, has no caption), but this is not obvious and can be quite confusing when the caption has important information (e.g. legend for a chart is often placed there) and the user is expecting it.


Version: unspecified
Severity: normal

Event Timeline

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

This was why we had MediaViewer/File:Foobar.jpg/6 instead of just MediaViewer/File:Foobar.jpg in the past - I made sure the index matched, so you got the same view no matter what.

Though we could at least be cognisant of the order when opening the lightbox. Seems not difficult.

That scheme had other problems (not stable enough, not to mention ugly :)
I would still go with MediaViewer/<filename>/<index relative to other thumbnails of the same file>, with MediaViewer/<filename>/1 being aliased to MediaViewer/<filename>.

Gilles subscribed.

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

Change 126153 had a related patch set uploaded (by Gergő Tisza):
[WIP] Add position handling to URLs

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

Jdlrobson changed the task status from Open to Stalled.Oct 9 2015, 12:59 AM
Jdlrobson subscribed.

Patch has been a WIP for some time now.

Aklapper changed the task status from Stalled to Open.Nov 1 2020, 10:00 PM
Aklapper edited projects, added Patch-Needs-Improvement; removed Patch-For-Review.

Anyone can rebase / improve a patch, hence removing stalled status.

Appears to be affecting the example presentation of multilingual images on a Commons template. See https://commons.wikimedia.org/wiki/Template_talk:Translate#New_Template%3A_Multilingual_Gallery.

Change #1029980 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/MultimediaViewer@master] Add position handling to URLs

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

Change #126153 abandoned by Jdlrobson:

[mediawiki/extensions/MultimediaViewer@master] [WIP] Add position handling to URLs

Reason:

A more recent patch has been posted so we will continue the conversation there: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MultimediaViewer/+/1029980

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

Change #1029980 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Add position handling to URLs

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

TheDJ subscribed.

This patch broke the resize event handler

[Error] TypeError: undefined is not an object (evaluating 'this.thumbs[this.currentIndex].title.getExtension')
	resize (load.php:2:801)
	(anonymous function) (load.php:12:560)
	dispatch (load.php:65:938)
	trigger (load.php:114:758)
	(anonymous function) (load.php:115:737)
	each (load.php:5:237)
	(anonymous function) (load.php:63:571)
	later (load.php:2:544)

Change #1034180 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/MultimediaViewer@master] Revert "Revert "Add position handling to URLs""

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

Change #1034180 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Revert "Revert "Add position handling to URLs""

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

Change #1043211 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/MultimediaViewer@master] LightboxImage.originalWidth needs to be a property

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

Change #1043211 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] LightboxImage.originalWidth needs to be a property

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

Jdlrobson added a subscriber: simon04.

@simon04 @TheDJ the issue here seems to be fixed, but clicking the first and third images in the page do not load mediaviewer - is that expected or am I doing something wrong?

https://www.mediawiki.org/wiki/Extension:Media_Viewer/About?safemode=1

@simon04 @TheDJ the issue here seems to be fixed, but clicking the first and third images in the page do not load mediaviewer - is that expected or am I doing something wrong?

https://www.mediawiki.org/wiki/Extension:Media_Viewer/About?safemode=1

They have the. noviewer class, because at some time people got confused when opening a screenshot of the interface in the same interface.

Thanks for explaining! that wasn't obvious :)