Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
dev:translators:priority [2014/12/08 17:04] – created zuphilip | dev:translators:priority [2014/12/09 17:50] – aurimas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | The priority for a [[https:// | + | 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:// | ||
* 100 = specific journal/ | * 100 = specific journal/ | ||
* 150 = multi-journal sites with different subdomains, but all journals would look practically the same | * 150 = multi-journal sites with different subdomains, but all journals would look practically the same | ||
* 200 = multi-journal sites with different subdomains and some journals may have somewhat different layout | * 200 = multi-journal sites with different subdomains and some journals may have somewhat different layout | ||
- | * 250 = CMS/Library Catalog with no specific domain, but either a very unique URL or unique checks in detectWeb (for all possible detection options). | + | * 250 = CMS/Library Catalog with no specific domain, but either a very unique URL or unique checks in detectWeb (for all possible detection options). |
* 260 = CMS/Library Catalog with no specific domain, but somewhat unique detectWeb checks (mostly URL-based checks). | * 260 = CMS/Library Catalog with no specific domain, but somewhat unique detectWeb checks (mostly URL-based checks). | ||
* 270 = CMS/Library Catalog with no specific domain and rather generic URL checks (conceivably, | * 270 = CMS/Library Catalog with no specific domain and rather generic URL checks (conceivably, | ||
- | * 300+ = Translators to be run on every page in order of metadata quality | + | * 300+ = Translators to be run on every page. Priority numbers should be in order of metadata quality. |
(see [[https:// | (see [[https:// | ||
+ | |||
+ | 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 files. The first translator that matches in detectImport stage will be used for import. Generally, different metadata formats will not match against different translators, | ||
+ | |||
+ | ==== Search Translators ==== | ||
+ | Priority is important to consider for search translators, | ||
+ | |||
+ | ==== Export Translators ==== | ||
+ | Priorities are not relevant to export translators. |