Topic on Extension talk:MultimediaViewer

Retrieving Metadata from locally uploaded files

7
Summary by Tgr (WMF)
Kghbln (talkcontribs)

The CommonsMetadata extension allows to fetch the data from commons which is great. What does one have to do to fetch data from a locally uploaded file. Is there some guide around which I did not find so far? A pointer or some advice will be greatly appreciated. I guess that some specific templates will have to be set up for this to work.

Cheers

Kghbln (talkcontribs)
Tgr (WMF) (talkcontribs)
Kghbln (talkcontribs)

Hey, cool. Thank you very much for your information. This brings light into my dark. I did not find the template compatibility page before. Great since this gives me something to work on.

Kghbln (talkcontribs)

Something is going wrong. What I have done is to add the following to the template called "Datei":

<div class="fileinfotpl" style="display:none">
<span class="fileinfotpl_desc">{{{Beschreibung|}}}</span>
<span class="fileinfotpl_date">{{{Datum|}}}</span>
<span class="fileinfotpl_aut">{{{Schöpfer|}}}</span>
</div>

After that I added the template to the file's page, purged it again, edited it a second time to really meet the suggestion of the Q&A section on the help page. However, nothing happens.

Before that I accidentally added the license information to that very template too, but this broke everything. The only thing this proved is that the extension CommonsMetadata is actually trying to fetch something. Because of this I am puzzled that it is not working even though everything was done as instructed.

I am working with MW 1.23.1, MultimediaViewer of 2014-04-22 (e0d3c9e) and CommonsMetadata of 2014-06-03 (6b330e1).

Tgr (WMF) (talkcontribs)

CommonsMetadata follows the prescriptions of commons:COM:MRD very strictly: tables have to be tables, <td>s have to be <td>s, ids have to be ids and not classes. That was probably not a good idea, but that's how it is.

If you just want to test whether your system works at all, you can grab the information template from the export, that one is guranateed to work.

Kghbln (talkcontribs)

I was kinda hoping that just providing the correct class names and wrapping the necessary stuff with them will do the trick. Yesterday was not one of my best days, too. Now the situation is clear and it is not even hard to set all up to make it work. Thanks again for bearing with me. Works perfect!