zotero/chrome/chromeFiles/content/scholar
Dan Stillman d6fa0455e1 Fixes #29, independent notes
- Added 'note' item type

- Updated API to support independent note creation

Notes are, more or less, just regular items, with an item type of 1. They're created through Scholar.Notes.add(text, sourceItemID), which returns the itemID of the new note. sourceItemID is optional--if left out, an independent note will be created. (There's currently nothing stopping you from doing getNewItemByType(1) yourself, but the note would be contentless and broken, so you shouldn't do that.) Note data could've been stuffed into itemData, but I kept it separate in itemNotes to keep metadata searching faster and to keep things cleaner.

Methods calls that can be called on all items:

isNote() (same as testing for itemTypeID 1)

Method calls that can be called on source items only:

numNotes()
getNotes() (array of note itemIDs for a source)

Method calls that can be called on note items only:

updateNote(text)
setNoteSource(sourceItemID) (for changing source--use empty or false to make independent, which is currently what happens when you delete a note--will get option with #91)
getNote() (note content)
getNoteSource() (sourceItemID of a note)

Calling the above methods on the wrong item types will throw an error.


*** This will break note creation/display until David updates interface code. ***
2006-06-27 15:14:07 +00:00
..
admin A rough interface to add, remove and reorder item type fields -- at the moment just to make my life easier, but eventually could be adapted to allow end-user type/field editing, if we decide that's necessary 2006-06-24 08:23:54 +00:00
ingester closes #68, figure out way to have scrapers work for gated resources behind proxies. most institutions use EZProxy for their proxy needs (or a more transparent proxy, which we support natively). this implementation is significantly better than the old one, which refused to work after you'd already logged in once, and is also simpler, because it's stateless. it has to observe every HTTP request, but there's no noticeable speed hit. it also still doesn't work when there's a link from one gated site to another gated site, but as far as i can tell, this only happens on the Gale Group site. 2006-06-27 04:08:21 +00:00
test Sorting on a colum: Much, much, much, better. (hope)fully implemented! 2006-06-05 15:49:11 +00:00
xpcom Fixes #29, independent notes 2006-06-27 15:14:07 +00:00
collectionTreeView.js [interface] Although commented out, code in place to accept URL drags into collections (waiting on an Ingester.scrapeURL function) 2006-06-15 22:35:48 +00:00
customControls.xml [interface] Custom textbox binding: multiline and timed together. 2006-06-16 14:39:18 +00:00
include.js - Implemented singleton XPCOM component to store core Scholar objects 2006-05-27 00:20:27 +00:00
itemPane.js Several little interface bugs fixed regarding Notes. 2006-06-26 14:46:21 +00:00
itemPane.xul Several little interface bugs fixed regarding Notes. 2006-06-26 14:46:21 +00:00
itemTreeView.js Treeview: Fixes problem with added items 2006-06-26 18:41:58 +00:00
note.js Fixes #25, add metadata to top of note 2006-06-26 19:38:56 +00:00
note.xul Several little interface bugs fixed regarding Notes. 2006-06-26 14:46:21 +00:00
overlay.js Fixes #27, collapsable/hierarchical notes in center pane. 2006-06-26 17:51:18 +00:00
overlay.xul Fixes #27, collapsable/hierarchical notes in center pane. 2006-06-26 17:51:18 +00:00
preferences.js Added Scholar.Prefs, a front-end to the preferences service with simple get(pref) and set(pref, value) methods that will retrieve and set based on the type of the default value, which I believe should generally should fine -- for more fine-grained control, use Scholar.Prefs.prefBranch to access the branch directly 2006-06-25 07:31:01 +00:00
preferences.xul Command-shift-S should now work as soon as you start Firefox. 2006-06-21 23:22:37 +00:00