Commit graph

561 commits

Author SHA1 Message Date
Simon Kornblith
7a3a7d86bf - use URIs in word processing documents. needs testing to make sure migration of custom bibliography entries and uncited items included in bibliographies from 1.0 works.
- remove old key-based functionality from csl.js
2009-05-24 04:38:57 +00:00
Dan Stillman
305d5e18a7 Fix error clearing full-text cache files and update deprecated calls 2009-05-22 04:48:12 +00:00
Dan Stillman
4228132af2 Shift key toggles snapshot pref when clicking "Create New Item from Current Page" 2009-05-22 02:28:07 +00:00
Dan Stillman
f93f7384a6 Fix incorrectly entered MIME types and the DB bug in 2.0b4 that caused it 2009-05-22 02:07:22 +00:00
Dan Stillman
ad14b44335 Additional safeguard in Zotero.Attachments.getStorageDirectory() 2009-05-21 15:23:50 +00:00
Dan Stillman
b8599d0414 Add a safeguard into Zotero.Attachments.getStorageDirectory(itemID) to make sure it returns an actual item directory 2009-05-21 14:27:36 +00:00
Dan Stillman
6f09d392bd Fix sync error "Creator id null does not match item creator in Zotero.Sync.Server.Data.xmlToItem()" 2009-05-20 05:33:48 +00:00
Dan Stillman
1ae61a7ac4 Fix sync error after editing group item and leaving/deleting group 2009-05-20 00:58:34 +00:00
Dan Stillman
168ab9ca98 Speed up initial opening of Zotero pane with many collections -- this can be much faster, but not for Beta 4 2009-05-19 21:31:47 +00:00
Dan Stillman
f73e2ceb58 Closes #955, Don't generate bibliography when dragging many items
Default limit set to 50, configurable in the Export pane
2009-05-18 19:51:36 +00:00
Dan Stillman
3ca64f746a - Remove empty creators from the database -- they shouldn't exist and were causing sync errors for some people
- Better logging for errors in metadata pane
2009-05-18 10:15:19 +00:00
Dan Stillman
f018e7d433 - Fix an error with translate.translate(true)
- Add Zotero.Libraries.isEditable(libraryID) (currently unused)
- Addresses #1444, Attachment arrow/count persists after delete, for items (problem probably remains for collections)
- Dragging PDF favicon or link or clicking Create New Item from Current Page when viewing a PDF creates a top-level PDF -- this is a temporary solution that allows "Retrieve PDF Metadata" to be used until it can be run automatically
- Allow PDF child snapshots to be dragged out of parents
- Dragging a link to a collection now creates parent item and child snapshot
- ZoteroPane.newItem(), addItemFromDocument(), addItemFromPage(), addItemFromURL(), and canEdit() now all take an optional row parameter
2009-05-18 09:05:11 +00:00
Dan Stillman
fa348d346c Fix saved searches and trash not display on collapse/expand of My Library 2009-05-17 08:29:46 +00:00
Dan Stillman
7ab0a62e38 Fix dragging of items with old creators with NULL values into group libraries, and store (currently unused) shortName and birthYear fields as '' and NULL, respectively 2009-05-17 07:54:42 +00:00
Dan Stillman
643376769a Automatically hard-code NULL bound parameters (e.g., convert "WHERE foo=?" to "WHERE foo IS NULL" and "SET foo=?" to "SET foo=NULL") 2009-05-17 07:52:05 +00:00
Dan Stillman
2d619ff561 Fix broken snapshot pref 2009-05-17 02:55:44 +00:00
Dan Stillman
83facaeb44 Fix typo 2009-05-16 05:32:02 +00:00
Dan Stillman
add589a744 Remove missing "Enable file syncing" checkbox... 2009-05-15 20:23:05 +00:00
Dan Stillman
c867994095 Fix blank progress window when save via translator to root of library 2009-05-15 07:01:42 +00:00
Dan Stillman
c04ddc8389 Fix broken PDF metadata recognition in 2.0b3 2009-05-15 06:19:23 +00:00
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
Dan Stillman
e2dc73c75b Don't copy item storage folder to orphaned-files every time the file changes via storage sync 2009-03-15 17:39:09 +00:00
Dan Stillman
6dbcc678c8 Fix a possible error purging orphaned storage server files if WebDAV server strips trailing slash 2009-03-15 16:07:52 +00:00
Dan Stillman
d5de9c7a4a Always show PDF recognize option when appropriate, and prompt to install PDF tools first if necessary 2009-03-15 06:00:59 +00:00
Dan Stillman
7c1cc3b3d0 Update auto-sync expiry date 2009-03-14 23:21:38 +00:00
Dan Stillman
95e3bb7a3a Better debugging for Zotero.Utilities.trim() error 2009-03-14 22:17:23 +00:00
Dan Stillman
f0def44c29 Fix repeated unlock requests, probably (and remove old request limiting code, which was never finished) 2009-03-14 22:13:20 +00:00
Dan Stillman
d904470200 Fixes #1393, "Error when adding existing tag beginning with certain extended characters to an item", but not properly
SQLite's COLLATE NOCASE doesn't work for Unicode characters, so it won't find existing tag "Äbc" if "äbc" is entered and will allow a duplicate tag to be created
2009-03-14 21:48:47 +00:00
Dan Stillman
7107be3cdd Fix error opening Zotero pane after tag deletion 2009-03-14 20:19:44 +00:00
Dan Stillman
41aad110c7 Support single-field mode in translators (with .fieldMode=1) 2009-03-10 00:34:16 +00:00
Dan Stillman
0746824c0f Addresses #1146, Check for duplicate items functionality
Ben's duplicate detection code, with the integration reworked a bit

Very rough, so currently requires creation of a boolean extensions.zotero.debugShowDuplicates pref to view the Actions menu option
2009-03-06 21:44:47 +00:00
Dan Stillman
accce9f2b4 Properly scope a couple variables in Frank's patch 2009-03-06 19:49:13 +00:00
Dan Stillman
4f6491d6ad Speed up sync XML generation by a factor of a lot 2009-03-04 06:00:22 +00:00
Dan Stillman
7edfd0aa03 Modifying an attachment with a missing file and then performing a storage sync would erase the attachment path on the sync server 2009-03-04 02:38:57 +00:00
Sean Takats
17d07b37bc Checking in Frank Bennett's single-to-multiple citation dialog fix. 2009-02-28 23:11:10 +00:00
Dan Stillman
7e3d8a8319 Fix overflow problem with long attachment filenames 2009-02-23 08:31:10 +00:00
Dan Stillman
ff24aec739 Apply r3954 to trunk 2009-02-23 08:03:16 +00:00
Dan Stillman
035cdd9e5a Closes #1371, Add "Create account" and "Lost password?" links to Sync pane 2009-02-23 05:01:35 +00:00
Dan Stillman
66a92a5f43 Hide another idle message 2009-02-23 04:54:26 +00:00
Dan Stillman
664b17190a Delete one numbered backup lower on DB upgrade 2009-02-23 04:32:08 +00:00
Dan Stillman
b39054ddda Don't show debug message every 10 seconds of idle 2009-02-23 04:27:58 +00:00
Dan Stillman
df8e1f15f8 Cap numBackups at 24 2009-02-23 02:40:17 +00:00
Dan Stillman
dd230b278b Closes #972, Keep additional backups of zotero.sqlite
Closes #984, Switch database backup to use mozIStorageConnection.backupDB()
2009-02-23 02:34:40 +00:00
Dan Stillman
744d6a5a0a Fixes #1320, Last synced tool tip should tell how long ago a sync occurred 2009-02-22 10:30:01 +00:00
Dan Stillman
fb0202fef9 Add server-based auto-sync throttling to client 2009-02-22 09:56:11 +00:00
Dan Stillman
4d1081be1a Fix FK constraint error with tags, often after the tag conflict window 2009-02-21 22:13:57 +00:00
Dan Stillman
5f60f6043c - Fix problem that was causing lots of sync errors on upload, and adjust a previous attempted fix that was making it worse
- Should also keep timestamps from going too far into the future when saving many items at once (which they were after my previous fix), though this can still be improved
2009-02-21 04:23:50 +00:00
Dan Stillman
d7d4bc01d7 Fixed "getFile() can only be called on attachment items" error whent here was a conflict set with both a regular item and an attachment 2009-02-19 20:35:04 +00:00
Dan Stillman
7572703065 Auto-sync on idle every hour and when coming back from an idle of more than 15 minutes 2009-02-19 05:26:48 +00:00
Dan Stillman
26e6125450 - More efficient purging logic -- instead of purging all objects whenever an item is deleted, flag just the object type and do the necessary purge when the Zotero pane is next opened. This also fixes a sync error edge case due to purging during synced item deletions.
- Disable unresponsive script warning during items list refresh
- Zotero.UnresponsiveScriptIndicator.disable() now returns true if it disables the indicator and false if it was already disabled
2009-02-18 03:09:39 +00:00
Dan Stillman
fd1ac3104a - Fix "creator.serialize() is not a function" sync error
- Added Zotero.Utilities.isEmpty(obj)
2009-02-12 08:00:29 +00:00