zotero/chrome/chromeFiles/content/scholar/xpcom
Dan Stillman c50dedc90a Addresses #17, add filesystem/ability to store files
Not finished, but enough to give David something to work with

No BLOBs -- just linking/importing of files and loaded documents


New Scholar.Item methods:

incrementFileCount() (used internally)
decrementFileCount() (used internally)
isFile()
numFiles()
getFile() -- returns nsILocalFile or false if associated file doesn't exist (note: always returns false for items with LINK_MODE_LINKED_URL, since they have no files -- use getFileURL() instead)
getFileURL() -- returns URL string
getFileLinkMode() -- compare to Scholar.Files.LINK_MODE_* constants: LINKED_FILE, IMPORTED_FILE, LINKED_URL, IMPORTED_URL
getFileMimeType() -- mime type of file (e.g. text/plain)
getFileCharset() -- charsetID of file
getFiles() -- array of file itemIDs this file is a source for

New Scholar.Files methods:

importFromFile(nsIFile file [, int sourceItemID])
linkFromFile(nsIFile file [, int sourceItemID])
importFromDocument(nsIDOMDocument document [, int sourceItemID])
linkFromDocument(nsIDOMDocument document [, int sourceItemID])

New class Scholar.FileTypes -- partially implemented, not yet used

New class  Scholar.CharacterSets -- same as other *Types classes:
getID(idOrName)
getName(idOrName)
getTypes() (aliased to getAll(), which I'll probably change the others to as well)

Charsets table with all official character sets (copied from Mozilla source)

Renamed Item.setNoteSource() to setSource() and Item.getNoteSource() to getSource() and adjusted to handle both notes and files
2006-07-27 09:16:02 +00:00
..
cite.js references #110, implement CSL for citation styling 2006-07-22 01:25:46 +00:00
data_access.js Addresses #17, add filesystem/ability to store files 2006-07-27 09:16:02 +00:00
db.js Scholar DB now stored in scholar subfolder of profile directory 2006-07-27 08:45:48 +00:00
history.js Fixes #89, once an item is added to the library, the item list is no longer updated on delete 2006-06-27 05:42:35 +00:00
ingester.js closes #78, figure out import/export architecture 2006-07-17 04:06:58 +00:00
notifier.js Put square brackets around ids in notifier debug output if multiple ids passed 2006-06-05 21:51:21 +00:00
schema.js Addresses #17, add filesystem/ability to store files 2006-07-27 09:16:02 +00:00
scholar.js Scholar DB now stored in scholar subfolder of profile directory 2006-07-27 08:45:48 +00:00
translate.js closes #78, figure out import/export architecture 2006-07-17 04:06:58 +00:00
utilities.js closes #78, figure out import/export architecture 2006-07-17 04:06:58 +00:00