Add annotation type to schema

This commit is contained in:
Dan Stillman 2021-03-03 03:33:52 -05:00
parent bffefe6644
commit d98fabc5ab
3 changed files with 3 additions and 11 deletions

View file

@ -344,18 +344,9 @@ Zotero.Schema = new function(){
* @return {Object}
*/
async function _readGlobalSchemaFromFile() {
var data = JSON.parse(
return JSON.parse(
await Zotero.File.getResourceAsync('resource://zotero/schema/global/schema.json')
);
// TEMP: Add annotation to schema
// TODO: Move to schema.json
data.itemTypes.push({
itemType: "annotation",
fields: [],
creatorTypes: []
});
data.locales['en-US'].itemTypes.annotation = 'Annotation';
return data;
}

View file

@ -407,6 +407,7 @@ pane.context.noNotes = No notes
noteEditor.editNote = Edit Note
itemTypes.note = Note
itemTypes.annotation = Annotation
itemTypes.attachment = Attachment
itemTypes.book = Book
itemTypes.bookSection = Book Section

@ -1 +1 @@
Subproject commit 68ad875567b6bed4b6ebb2b5ee08bc6a272c2302
Subproject commit 7a5019893a1af246f9ea53d9ceb927aee4d95c6c