Zotero utility code common across various codebases such as the Zotero client, Zotero translation architecture and others.
Item utility functions require:
- Loading the Zotero
schema.json. You will need to callZotero.Schema.init(data)with theschema.jsonfor it to work. - Loading
resource/zoteroTypeSchemaData.jsbeforecachedTypes.jsor in Node.js runninglet CachedTypes = require('./cachedTypes') CachedTypes.setTypeSchema(require('./resource/zoteroTypeSchemaData'))
Please bundle the Zotero schema file with your repository, do not load it remotely.