Afnecors added a comment.
working branch https://github.com/afnecors/mediawiki-extensions-Wikibase/commits/PrimarySources-extension (currently stopped)TASK DETAILhttps://phabricator.wikimedia.org/T168251EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AfnecorsC
Afnecors added a comment.
Refactoring function:
createPrimarySourcesRandomMenuItem()
create and append an element to list in left menu
API call when the user click on it
show content
New PrimarySources _javascript_ object (accessible via mw.PrimarySources), has:
qid: id of current item
API: