www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 46b3b857faf5ecec887f2b43164d7ad32a507992
parent 5318b9293b593354e3620cd88a689affa167dd78
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  3 Jul 2009 23:07:40 +0000

Expose all translator metadata properties (needed by Rintze for Scaffold 2.0)


Diffstat:
Mchrome/content/zotero/xpcom/translate.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js @@ -212,7 +212,10 @@ Zotero.Translators = new function() { * @property {String} translatorID Unique GUID of the translator * @property {Integer} translatorType Type of the translator (use bitwise & with TRANSLATOR_TYPES to read) * @property {String} label Human-readable name of the translator + * @property {String} creator Author(s) of the translator * @property {String} target Location that the translator processes + * @property {String} minVersion Minimum Zotero version + * @property {String} maxVersion Minimum Zotero version * @property {Integer} priority Lower-priority translators will be selected first * @property {Boolean} inRepository Whether the translator may be found in the repository * @property {String} lastUpdated SQL-style date and time of translator's last update @@ -247,7 +250,7 @@ Zotero.Translator = function(file) { if(info) { var haveMetadata = true; // make sure we have all the properties - for each(var property in ["translatorID", "translatorType", "label", "target", "priority", "lastUpdated", "inRepository"]) { + for each(var property in ["translatorID", "translatorType", "label", "creator", "target", "minVersion", "maxVersion", "priority", "lastUpdated", "inRepository"]) { if(info[property] === undefined) { this.logError('Missing property "'+property+'" in translator metadata JSON object'); haveMetadata = false;