Page MenuHomePhabricator

Describe the new front-end
Closed, ResolvedPublic

Event Timeline

Write a section in Wiki markup with the technical implementation solution based on the outcomes of T166513 and T166496.

Hjfocs triaged this task as Unbreak Now! priority.Jun 8 2017, 10:08 AM

Side note for input/output data formats: the front-end currently has bidirectional conversion functions between QuickStatements TSV and Wikibase API JSON calls:

  1. TSV to JSON: https://github.com/Wikidata/primarysources/blob/master/frontend/freebase2wikidata.js#L841;
  2. JSON to TSV: https://github.com/Wikidata/primarysources/blob/master/frontend/freebase2wikidata.js#L1041.

While we should keep this support, we also have to foresee RDF to Wikibase API conversion.

Based on a conversation with @thiemowmde (thanks a lot for your help!), the front-end should be implemented via the following steps:

  1. a MediaWiki extension for Wikibase. Fork the repo, add the extension as a folder in the project root;
  2. port the HTML templating code to PHP;
  3. refactor the JS code responsible for the interaction with the tool back-end and the users;
  4. write unit tests: in the future, they will be included into the Wikidata build, thus addressing T166499.
Hjfocs moved this task from Upcoming to Done on the Wikidata-primary-sources board.