Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI to submit captions #2297

Closed
amire80 opened this issue Jan 14, 2019 · 17 comments
Closed

UI to submit captions #2297

amire80 opened this issue Jan 14, 2019 · 17 comments

Comments

@amire80
Copy link
Contributor

amire80 commented Jan 14, 2019

Summary:

Now that Structured Data On Commons (a.k.a. "Captions" or "WikibaseMediaInfo") are deployed, it would be nice to submit something from the app also to structured data.

Steps to reproduce:

Post an image with all fields filled. Check the result. Currently it posts nothing to the WikibaseMediaInfo captions.

Commons app version:

2.9.0.164

@nicolas-raoul

This comment has been minimized.

@amire80

This comment has been minimized.

@addshore
Copy link
Collaborator

This should be pretty easy from the App.

All you need is one or many calls to the wbsetlabel API module on commons.
The parameters should be pretty straight forward, the entity ID that you will need to use is the media info entity ID. This is currently the pageid prefixed with an M, so for a page with pageid = 77, the mediainfo ID would be M77. This assumption is likely to never change.

@nicolas-raoul
Copy link
Member

nicolas-raoul commented Jan 14, 2019

Captions are a bit like a title, but multilingual, and limited to 255 characters. More at https://www.mediawiki.org/wiki/Help:File_captions

The underlying idea is that filenames are risky to modify (all links break at each typo correction) and they are not translatable, so when showing a picture the software would show this caption under it, rather than the filename (which might be in Swahili) or the description (which might be a huge wall of text).

Example

  • Now: I take a picture of Obama in Nepal, and upload it with the title "Obama in Nepal" and the English description "I randomly stumbled upon Barrack Obama in Solma (Nepal) in the afternoon of December 10, 2018, after his speech at the Eco Summit 2018."
  • After: I take a picture of Obama in Tibet, and upload it with the English caption "Obama in Nepal" and the English description "I randomly stumbled upon Barrack Obama in Solma (Nepal) in the afternoon of December 10, 2018, after his speech at the Eco Summit 2018."

I suggest we just:

  1. Rename the current filename field to "Caption"
  2. Make it multilingual
  3. When uploading, just take the first caption and use it as the filename

@nicolas-raoul
Copy link
Member

nicolas-raoul commented Jan 14, 2019

A description is a collection of peculiar details, some of whom might be of interest to a fraction of the readers. Thus I think a description does not make a good caption in the sense of a string of text to put under an image.

Take this example:
screenshot from 2019-01-14 20-49-54

https://commons.wikimedia.org/wiki/File:R%C3%A9union_publique_de_La_R%C3%A9publique_En_Marche_!_Japon,_avec_le_d%C3%A9put%C3%A9_C%C3%A9dric_Villani_le_jeudi_26_novembre_de_%C3%A0_Akasaka,_Tokyo.jpg

Mock-up of the new user interface, with 4 steps instead of 3

Step 1:
screenshot_20190114-210914

Step 2:
screenshot_20190114-211518

@amire80
Copy link
Contributor Author

amire80 commented Jan 14, 2019

To be honest, I don't have a strong opinion, as long as something useful is submitted. The Commons Android app can be an excellent source for submitting to Structured Data. Perhaps the designers and the PMs of Structured Data have a more educated opinion? I'll invite them to this discussion.

@nicolas-raoul nicolas-raoul changed the title Submit description to Structured Data On Commons Submit caption to Structured Data Jan 14, 2019
@abhishekd08
Copy link

Can I work on this improvement ?
I read about the issue and what I understood is caption, which is short most relevant information about the picture, is to be included along with description, which is detailed information about the picture.
The work on the app is:

  1. add UI to include captions in multiple languages
  2. upload this data with mediaInfo ID.

Is that right ? or Is there something I misunderstood ?
@amire80 @nicolas-raoul

@nicolas-raoul
Copy link
Member

@abhishekd08 Yes, it is yours :-)
Yes, you are right. Please refer to my UI mocks at #2297 (comment) . Please also remove the "Title" field in the first screen. The first caption is used as a filename.
Thanks!

@amire80
Copy link
Contributor Author

amire80 commented Jan 26, 2019

1. add UI to include captions in multiple languages

There should probably be a default field for a caption in the language in which the app is being used, and a reasonably easy way to add more captions in other languages.

@nicolas-raoul
Copy link
Member

@amire80 Yes, exactly like what is done currently for descriptions :-)

@abhishekd08
Copy link

abhishekd08 commented Feb 1, 2019

I am getting this gradle sync error. I tried but cannot understand the problem, can anyone tell how to solve this it please ?

error.txt

Can anyone please tell how to solve the build error ?

@nicolas-raoul
Copy link
Member

nicolas-raoul commented Feb 10, 2019

We must get the user's approval that caption are licensed CC0 (independently from the image's license).
Here is how the upload wizard does that: https://commons.wikimedia.org/wiki/Commons_talk:Structured_data#CC0_licensing_mockups
uw_selected_license_ not_own_work

@nicolas-raoul
Copy link
Member

Assigned to @vanshikaarora (GSoC 2019). Anyone interested in collaborating on this task or offering tips, don't hesitate to post here :-)

@Tpt
Copy link

Tpt commented Nov 21, 2019

I just released a new version of WikidataToolkit that supports MediaInfo editing. It should also work on Android if it helps. I have also made two examples, one for retrieval and one for edit.

@misaochan
Copy link
Member

Thanks @Tpt ! :)

@nicolas-raoul
Copy link
Member

Below is the structured-data branch right now.
Things to fix in the UI:

  • Remove the obsolete "Caption (Required)" field.
  • When the "+" button is tapped, a new language (caption+description fields couple) is added at the bottom, but somehow it does not seem to appear immediately, I have to tap around a bit before being able to see it, not sure why.
    Screenshot_20200316-231105_Commons

@nicolas-raoul nicolas-raoul changed the title Submit caption to Structured Data UI to submit captions to Structured Data Mar 16, 2020
@nicolas-raoul nicolas-raoul changed the title UI to submit captions to Structured Data UI to submit captions Mar 16, 2020
@nicolas-raoul
Copy link
Member

Closing this, issues created for each of the two remaining problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants