Commit graph

491 commits

Author SHA1 Message Date
Dan Stillman
3e7995fee5 Workaround for "mimeType is undefined" import error 2009-05-14 18:39:35 +00:00
Dan Stillman
91459f95f7 2.0b3 megacommit
- Support for group libraries
- General support for multiple libraries of different types
- Streamlined sync support
  - Using solely libraryID and key rather than itemID, and removed all itemID-changing code
  - Combined two requests for increased performance and decreased server load
  - Added warning on user account change
  - Provide explicit error message on SSL failure
- Removed snapshot and link toolbar buttons and changed browser context menu options and drags to create parent items + snapshots
- Closes #786, Add numPages field
- Fixes #1063, Duplicate item with tags broken in Sync Preview
- Added better purging of deleted tags
- Added local user key before first sync
- Add clientDateModified to all objects for more flexibility in syncing
- Added new triples-based Relation object type, currently used to store links between items copied between local and group libraries
- Updated zotero.org translator for groups
- Additional trigger-based consistency checks
- Fixed broken URL drag in Firefox 3.5
- Disabled zeroconf menu option (no longer functional)

Developer-specific changes:

- Overhauled data layer
  - Data object constructors no longer take arguments (return to 1.0-like API)
  - Existing objects can be retrieved by setting id or library/key properties
  - id/library/key must be set for new objects before other fields
- New methods:
  - ZoteroPane.getSelectedLibraryID()
  - ZoteroPane.getSelectedGroup(asID)
  - ZoteroPane.addItemFromDocument(doc, itemType, saveSnapshot)
  - ZoteroPane.addItemFromURL(url, itemType)
  - ZoteroPane.canEdit()
  - Zotero.CollectionTreeView.selectLibrary(libraryID)
  - New Zotero.URI methods
- Changed methods
  - Many data object methods now take a libraryID
  - ZoteroPane.addAttachmentFromPage(link, itemID)
- Removed saveItem and saveAttachments parameters from Zotero.Translate constructor
- translate() now takes a libraryID, null for local library, or false to not save items (previously on constructor)
- saveAttachments is now a translate() parameter
- Zotero.flattenArguments() better handles passed objects
- Zotero.File.getFileHash() (not currently used)
2009-05-14 18:23:40 +00:00
Dan Stillman
490bd19f0d Skip WebDAV file downloads if server hasn't been updated since last local sync -- this should greatly reduce WebDAV load for people with lots of missing attachment files 2009-05-13 07:59:41 +00:00
Simon Kornblith
4c09cbb7ac - fix progress window issues with lookup and scraping
- prevent multiple lookups and fix error dialog
2009-05-06 07:58:28 +00:00
Dan Stillman
0ab3f1d2d6 Proper 3.5b4 fix for Zotero.File.getCharsetFromFile() 2009-05-06 07:07:47 +00:00
Dan Stillman
1532a1dd14 Addresses #635, In-content translator
Adds "Import from Clipboard" Actions menu option, based on original patch from en205

Also available via keyboard shortcut (Cmd-Shift-V/Ctrl-Alt-V)
2009-05-06 01:45:57 +00:00
Dan Stillman
091c3227d9 Fix "TypeError: cases[l].indexOf is not a function" upgrade error 2009-05-05 05:17:04 +00:00
Dan Stillman
b99bcff855 Add ability to translate from iframes 2009-05-05 00:02:18 +00:00
Dan Stillman
77b06e695f Create Zotero.isFx35 test and alias isFx31 to it until we get around to fixing the old references 2009-05-03 09:31:14 +00:00
Simon Kornblith
ac53f35056 Adds RTF scan feature. this could probably use some more testing. Acceptable citations are in the form
(Smith, 2006)
The database is scanned for each citation, and positioning is adjusted automatically for footnotes. Currently, this won't work with names with accents, but I'll get to that.
2009-05-01 11:46:07 +00:00
Dan Stillman
e619cab8f3 Clarify expiry message 2009-05-01 02:32:23 +00:00
Dan Stillman
a606332de5 Update expiry date 2009-05-01 02:30:31 +00:00
Simon Kornblith
65cb00e26b FF3.5 fixes for attachment and file operations 2009-04-30 00:52:48 +00:00
Simon Kornblith
9b5679fa14 Make PDF recognizer compatible with FF 3.5, and tweak regexp 2009-04-30 00:34:51 +00:00
Simon Kornblith
1cf83d1760 - fixes processDocuments() under Firefox 3.5
- makes translator progress window work a little better with translators that call Zotero.done() incorrectly, and complains when item.complete() is called after Zotero.done()
2009-04-30 00:10:03 +00:00
Simon Kornblith
d2a4cf7680 Fixes a bug where transparent proxies wouldn't be transparent until Zotero is restarted 2009-04-29 20:58:26 +00:00
Dan Stillman
a2ce69aee1 Fix error when a linked file appears twice in an export (e.g., in two subcollections) 2009-04-27 01:45:15 +00:00
Dan Stillman
b0e5b1763a Don't try to delete downloaded ZIP file if it doesn't exist 2009-04-24 22:13:10 +00:00
Dan Stillman
b76fdd8e43 Set tag/creator purge flag on removals from items, and run purge on sync 2009-04-24 06:16:19 +00:00
Dan Stillman
7bddca9121 Add advertising domain to blacklist 2009-04-22 00:36:29 +00:00
Dan Stillman
c9618b8a08 Fix deletion method for old DB backups on schema update 2009-04-16 10:30:55 +00:00
Dan Stillman
5cd7b3840e - Add translator/style deleting mechanism (without repo)
- Fix style saving from repo (updated styles were saved without .csl extension, so updates were ignored)
- Don't update from repository on every load of SVN build with missing symlinked style targets
- Remove deleted "Open Worldcat (Search)" and "Worldcat.org" translators
2009-04-16 10:07:48 +00:00
Simon Kornblith
34cd1103a0 - merge WorldCat translators and fix search (for ISBNs, at least)
- make lookup button
- podcast icon is now ipod_cast.png and radioBroadcast icon is now transmit.png, both from famfamfam
2009-04-15 09:15:58 +00:00
Dan Stillman
f38f5e9c7c The previous items list nsITreeView object wasn't being destroyed when changing collections. This could cause slow expand/collapse operations (since it was trying to expand each item in each collection you'd viewed since starting Zotero the number of times you'd viewed the collection) and was also causing a potentially large memory leak. 2009-04-11 07:54:17 +00:00
Simon Kornblith
14862edb2c commit missing files 2009-04-11 04:03:23 +00:00
Simon Kornblith
dad84abe97 - adds "Lookup by Identifier..." option under add item. currently works for DOIs and PMIDs, but not ISBNs, since our Open WorldCat search translator is broken. with a working ISBN search translator, ISBNs would work, too.
- fixes NCBI PubMed translator type (should be 12, since it's a search translator as well as a web translator)
- fixes a bug passing multiple translators to translate.setTranslator()
- increases priority of CrossRef translator
- makes sync animated arrow progress indicator into a general CSS class (zotero-small-progress-indicator) so that the same progress indicator can be used for lookup. if this is confusing, we could use something else instead.
2009-04-11 04:00:31 +00:00
Dan Stillman
ebeb9976d2 getByKey() doesn't take an array 2009-04-09 20:54:28 +00:00
Simon Kornblith
b1b0bd47a0 add a platform attribute to the Zotero pane and make border fix work with Firefox 3.1 2009-04-09 07:58:29 +00:00
Simon Kornblith
e8ce1d30d2 make fake window border gray when window is inactive on OS X 2009-04-09 07:16:41 +00:00
Simon Kornblith
c351486ed2 remove debug statement 2009-04-09 05:55:27 +00:00
Simon Kornblith
7f8fe0ce78 restore toolbars properly when Zotero pane is closed 2009-04-09 05:54:05 +00:00
Simon Kornblith
f5b2f77a3a hide toolbars when Zotero is in fullscreen mode. this doesn't look quite right on OS X, but I can't figure out how to fix it. 2009-04-09 05:28:41 +00:00
Simon Kornblith
593d2958f0 actually pass nonblocking parameter as a flag 2009-04-04 23:05:45 +00:00
Dan Stillman
f9f6e5340c Add lastName search condition (API only, not in the search UI) 2009-04-04 20:52:44 +00:00
Simon Kornblith
24654a8bce shouldn't actually need bibliography-Integration at all 2009-04-04 07:10:29 +00:00
Simon Kornblith
41d8b7b341 -addresses #1213, Bibliography customization broken (change to plug-in also needed)
-uses blocking IO to send integration responses to fix problems with very large documents on slow machines
2009-04-04 07:07:55 +00:00
Dan Stillman
ff5631d9ec Addresses #1239, Add options to Locate button
When an item has a URL, turn Locate button into a menu and allow lookup via Wayback Machine

Support for additional user-configurable providers is forthcoming
2009-03-31 09:12:24 +00:00
Dan Stillman
96f836f58d Fix "attachmentSyncState can only be set for snapshots and imported files" error 2009-03-26 20:40:23 +00:00
Dan Stillman
240637e044 Fix "attachmentPath cannot be set for link attachments" CR error 2009-03-26 19:31:37 +00:00
Dan Stillman
d78c31eb2b Fix URL-linking regexp a bit 2009-03-24 03:55:56 +00:00
Simon Kornblith
1f0d24ceef - use DOIs for PDF metadata lookup when available (needs testing)
- fix accessibility of createContextObject in Zotero.Utilities
- improved CrossRef translator
2009-03-24 02:08:08 +00:00
Simon Kornblith
9ca461c59b Proxy system overhaul
- Only one preference for recognizing proxies for transparent redirection
- Blacklists sites and http://%h/%p
- Fixes to EZProxy

This will clear all existing proxies from Zotero
2009-03-23 19:55:57 +00:00
Dan Stillman
5aae6bc9ce Hack to wrap URLs and DOIs in HTML bibliography output in <a href=""> links -- regexps might need to be improved 2009-03-21 20:08:57 +00:00
Elena Razlogova
20a42741cf Addresses #842, Mappings required
Addresses #1408, Incorect format for legal case citations in CMS note without biblography style
On the trunk, maps court in case item type to authority, a new CSL variable
2009-03-20 12:40:37 +00:00
Dan Stillman
78365a095f Add Zotero.Utilities.processAsync(sets, callbacks, onDone) -- this can be used from translators to make it easier to correctly chain sets of asynchronous callbacks, since most translators that require multiple callbacks currently do it incorrectly.
This function definition will be automatically prepended to translators sent to older clients from the repo.
2009-03-19 22:25:00 +00:00
Dan Stillman
d5a092da42 Don't exec pdfinfo if pdfMaxPages is 0 2009-03-17 20:36:47 +00:00
Dan Stillman
551c8a36a7 Fix upgrade error "counts[0] is undefined" (or "counts[1]") 2009-03-17 08:23:45 +00:00
Dan Stillman
0df7f4afd4 Always show "Reindex item", even if item is indexed, and flicker the refresh icon briefly on click to show that it's doing something 2009-03-17 07:59:41 +00:00
Dan Stillman
468cd16534 Fix error: "[QUERY: DELETE FROM creatorData WHERE creatorDataID=?] [ERROR: constraint failed]" 2009-03-16 07:09:30 +00:00
Dan Stillman
4e7dfbad42 Proper locale-based sorting of saved searches 2009-03-15 22:58:44 +00:00