Last modified: 2012-11-25 23:23:47 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 T44407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42407 - Include file license data in API results
Include file license data in API results
Status: RESOLVED DUPLICATE of bug 25624
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-24 10:33 UTC by Ralf Hilgenstock
Modified: 2012-11-25 23:23 UTC (History)
6 users (show)

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


Attachments

Description Ralf Hilgenstock 2012-11-24 10:33:01 UTC
The Learning Management System Moodle is using the Media Wiki API for searching Mediawiki Commons content. Users in Moodle systems can use the search to include sources from Commons into their courses. 

During a discussion with Wikipedia Germany we found that the information about author and licence is not transfered into Moodle after selecting a search result. The Wikipedia licence defines that author and licence have to be added if the sources are used anywhere else.

The Moodle developer wrote that the API didn't transfer these data. There is an entry in the Moodle bug tracker at http://tracker.moodle.org/browse/MDL-22756.

The Moodle program code for Wikiemedia Commons repository plugin is available here: http://git.moodle.org/gw?p=moodle.git;a=tree;f=repository/wikimedia. They are connecting to http://commons.wikimedia.org/w/api.php 

Are there any processes to get these required data or can you expand the API functions.

Cross posting in Moodle bug tracker will be ok.  I will will add an information at Moodle bug racker aboutthis post.

Ralf
Comment 1 Alex Monk 2012-11-24 13:21:21 UTC
Commons stores licensing data in the wikitext of a page (which can be as structured as a forum post). The API is not able to get it without attempting to parse that.
Comment 2 Andre Klapper 2012-11-24 23:41:35 UTC
Wondering whether to move this to "MediaWiki > API"
Comment 3 Ralf Hilgenstock 2012-11-25 13:34:28 UTC
Andre, is there a better place for this ticket?
Comment 4 Alex Monk 2012-11-25 13:36:14 UTC
(In reply to comment #2)
> Wondering whether to move this to "MediaWiki > API"

I think that's a good idea, so done.
Comment 5 Brad Jorsch 2012-11-25 23:23:47 UTC

*** This bug has been marked as a duplicate of bug 25624 ***

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


Navigation
Links