Page MenuHomePhabricator

Consider providing a way to export domain configurations as Zotero translator
Open, Needs TriagePublicFeature

Description

A Domain object may have an exportAsZotero method that converts translation configurations for a domain (including templates, patterns and tests) to a JavaScript Zotero translator. This automatically generated translator may serve as a basis for a translator to be added to Zotero's translators repository.

A translator generated this way would apply to all URLs of the domain.

We may ignore the fallback template, because a target requiring it is a target that would be better off with another translator.

One drawback may be that the translator's detectWeb function may require actually running the translation, which wouldn't be ideal (because I understand this function should run as fast as possible).

On the other hand, we may also have trouble with "Citoid" selection steps, as Citoid response is not exactly the same as Zotero response for a given target.