Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Go to file
Dan Stillman b7b5ff2933 Closes #431, Add Notifier trigger hook to DB.commitTransaction() and queue notifications during transactions
unlock = Zotero.Notifier.begin(lock)
Zotero.Notifier.commit(unlock)
Zotero.Notifier.reset()
Zotero.DB.addCallback(type, callback)

begin(), commit() and reset() are added to beginTransaction(), commitTransaction() and rollbackTransaction(), respectively, on startup, so notifications are now automatically queued during DB transactions -- this has the potential to make complex operations dramatically faster

begin() can also be called manually -- pass true to indicate that intermediate commit()'s (e.g. called from commitTransaction()) shouldn't run the event queue, and pass the value returned to the matching commit() call. (The return value of commit() will be true if it is the first begin() to request a lock and false otherwise -- this allows multiple begin(true) calls to be nested without the nested ones triggering notification.

This does make trigger() order a bit less predictable, but I'm ordering events and types (e.g. calling modify events after add and before delete) in an attempt to avoid problems. We'll see if this works or we need a more sophisticated ordering/grouping scheme.
2006-12-08 19:40:54 +00:00
chrome Closes #431, Add Notifier trigger hook to DB.commitTransaction() and queue notifications during transactions 2006-12-08 19:40:54 +00:00
components Addresses #400, Report generation 2006-12-01 06:01:26 +00:00
defaults/preferences Added prefs extensions.zotero.debug.log and extensions.zotero.debug.level to determine terminal logging, defaulting to off 2006-11-28 19:34:56 +00:00
chrome.manifest Added Chinese (simplified) and German localizations from BabelZilla translators. Updated chrome.manifest to reflect new localizations. These localizations are not 100% complete or correct, but I expect that we will get corrections quickly as users spot mistakes. Currently there is a UI issue where the Chinese characters spill off of the tabs in the item details pane. 2006-10-27 17:28:45 +00:00
install.rdf Version numbers to b3.r1 2006-11-26 08:46:36 +00:00
license.txt Closes #63, Add ECL license info to source code 2006-10-04 17:16:56 +00:00
scrapers.sql Replaces SIRSI -2003 and SIRSI 2003+ translators with single SIRSI translator. Handles WebCat, iLink, and iBistro interfaces. Ready for Emory test XPI but needs some refinement to handle other library view preferences as noted in #381 2006-12-07 04:22:57 +00:00
system.sql Improve date field handling 2006-11-03 09:23:24 +00:00
update.rdf Version numbers to b3.r1 2006-11-26 08:46:36 +00:00
userdata.sql Refs #362, Support abstracts 2006-12-07 00:46:30 +00:00