Add EPUB to Attachment File Type in Advanced Search (#3360)
This commit is contained in:
parent
1aa25964ba
commit
bdea76024b
4 changed files with 14 additions and 2 deletions
|
@ -3450,7 +3450,14 @@ Zotero.Schema = new function(){
|
|||
}
|
||||
}
|
||||
|
||||
// TEMP: When adding 122, check whether IA.authorName fix in items.js::_loadAnnotations()
|
||||
else if (i == 122) {
|
||||
await Zotero.DB.queryAsync("INSERT INTO fileTypes VALUES(8, 'ebook')");
|
||||
await Zotero.DB.queryAsync("INSERT INTO fileTypeMIMETypes VALUES(8, 'application/epub+zip')");
|
||||
// Incorrect, for compatibility
|
||||
await Zotero.DB.queryAsync("INSERT INTO fileTypeMIMETypes VALUES(8, 'application/epub')");
|
||||
}
|
||||
|
||||
// TEMP: When adding 123, check whether IA.authorName fix in items.js::_loadAnnotations()
|
||||
// can be updated due to update steps being indempodent
|
||||
|
||||
// If breaking compatibility or doing anything dangerous, clear minorUpdateFrom
|
||||
|
|
|
@ -668,6 +668,7 @@ fileTypes.audio = Audio
|
|||
fileTypes.video = Video
|
||||
fileTypes.presentation = Presentation
|
||||
fileTypes.document = Document
|
||||
fileTypes.ebook = Ebook
|
||||
|
||||
save.error.cannotMakeChangesToCollection = You cannot make changes to the currently selected collection.
|
||||
save.error.cannotAddFilesToCollection = You cannot add files to the currently selected collection.
|
||||
|
|
|
@ -117,6 +117,7 @@ INSERT INTO "fileTypes" VALUES(4, 'audio');
|
|||
INSERT INTO "fileTypes" VALUES(5, 'video');
|
||||
INSERT INTO "fileTypes" VALUES(6, 'document');
|
||||
INSERT INTO "fileTypes" VALUES(7, 'presentation');
|
||||
INSERT INTO "fileTypes" VALUES(8, 'ebook');
|
||||
|
||||
-- webpage
|
||||
INSERT INTO "fileTypeMIMETypes" VALUES(1, 'text/html');
|
||||
|
@ -156,6 +157,9 @@ INSERT INTO "fileTypeMIMETypes" VALUES(7, 'application/powerpoint');
|
|||
INSERT INTO "fileTypeMIMETypes" VALUES(7, 'application/vnd.oasis.opendocument.presentation');
|
||||
INSERT INTO "fileTypeMIMETypes" VALUES(7, 'application/x-kpresenter');
|
||||
INSERT INTO "fileTypeMIMETypes" VALUES(7, 'application/vnd.ms-powerpoint');
|
||||
-- ebook
|
||||
INSERT INTO "fileTypeMIMETypes" VALUES(8, 'application/epub+zip');
|
||||
INSERT INTO "fileTypeMIMETypes" VALUES(8, 'application/epub'); -- incorrect, for compatibility
|
||||
|
||||
INSERT INTO "syncObjectTypes" VALUES(1, 'collection');
|
||||
INSERT INTO "syncObjectTypes" VALUES(2, 'creator');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- 121
|
||||
-- 122
|
||||
|
||||
-- Copyright (c) 2009 Center for History and New Media
|
||||
-- George Mason University, Fairfax, Virginia, USA
|
||||
|
|
Loading…
Add table
Reference in a new issue