This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
dev:translators:priority [2014/12/09 06:37]
zuphilip add sentences for other translator types
dev:translators:priority [2014/12/09 17:50]
Line 1: Line 1:
 +Translator priority determines which order the translators are called for detect* and do* stages of translation. The lower the priority value the earlier the translator is called.
 +==== Web Translators ====
 The priority for a [[https://​www.zotero.org/​support/​dev/​translators/​coding#​web_translators|web translator]] should be chosen according to the following guidelines: The priority for a [[https://​www.zotero.org/​support/​dev/​translators/​coding#​web_translators|web translator]] should be chosen according to the following guidelines:
Line 11: Line 13:
 (see [[https://​github.com/​aurimasv/​translators/​commit/​5b4ef451a9c3c14fa9b2b8d5bce37a8bf7c1a3f2]] for more information) (see [[https://​github.com/​aurimasv/​translators/​commit/​5b4ef451a9c3c14fa9b2b8d5bce37a8bf7c1a3f2]] for more information)
-Moreover, ​the priority is very important for [[https://​www.zotero.org/​support/​dev/​translators/​coding#​search_translators|search translators]] if we have multiple ​translators ​for and identifyer ​(e.g. ISBN or doi). It's somewhat ​relevant ​for [[https://​www.zotero.org/​support/​dev/​translators/​coding#​import_translators|import translators]] - especially the various RDF versions which need to be run in the right order. It doesn'​t apply to export ​at all.+Higher priority (lower value) translators will override translators for detectWeb even in other frames of the web page window and will become the translator invoked by the URL bar icon. 
 +==== Import Translators ==== 
 +The priority ​for import translators ​is mostly ​important for automatic detection of translators when importing metadata from filesThe first translator that matches in detectImport stage will be used for importGenerally, different metadata formats will not match against different ​translators, but where this is a possibility,​ the translator priority may be important. 
 +==== Search Translators ==== 
 +Priority is important to consider for search translators, where several ​translators ​may match against given metadata. In this case, lower priority value should be assigned to translators that have more broadly applicable databases ​(e.g. Library of Congress vs Lulu for ISBNor CrossRef vs mEDRA for DOIand preferably to APIs with fast response times. 
 +==== Export Translators ==== 
 +Priorities are not relevant to export ​translators.
dev/translators/priority.txt · Last modified: 2017/12/07 13:34 by bwiernik