Commit graph

1172 commits

Author SHA1 Message Date
Dan Stillman
017713716e Fixes #1317, Sort triangle icon points in wrong direction in Firefox 3.1
Also fixes initial items pane sort, which was previously descending until a column was clicked
2009-05-31 07:15:55 +00:00
Dan Stillman
5ec339c9df Fix group collection sort 2009-05-31 05:57:43 +00:00
Dan Stillman
7ba742779e Fix "not a valid field for type" sync (conflict) errors 2009-05-31 03:26:23 +00:00
Dan Stillman
2d0a197293 - Remember last long tag delimiter
- Select delimiter field when switching to Split mode
- Escape special regexp characters
- Fix a window resize bug
2009-05-30 22:37:28 +00:00
Dan Stillman
4ea030b458 - Changed View/View Snapshot logic to following order: oldest PDF attachment matching parent URL, oldest non-PDF attachment matching parent URL, oldest PDF attachment not matching URL, old non-PDF attachment not matching URL, live URL, resolved DOI
- Double-clicking My Library takes you to online library
- Triple-clicking, rather than double-clicking, now expands/collapses parent items, which no one will notice or care about because I'm apparently the only person in the world who previously double-clicked to expand parent items. I feel so alone.

Closes #905, "ability to set primary attachment for the "view" button in the parent item" -- I think this is as close as we're gonna get.
2009-05-30 22:11:52 +00:00
Dan Stillman
a6478d7dd5 - Display snapshot first when double-clicking on an item, to make it consistent with the View button
- Check DOI field for View button
- Return false in Zotero.Item.getLocalFileURL() if file is missing rather than throwing error
2009-05-30 08:53:44 +00:00
Dan Stillman
211d5f3b62 - Double-clicking an item now takes you to its associated web page if there is a URL or DOI value
The tree expand/collapse behavior still happens concurrently, which is a little awkward.

- Double-clicking a group no longer expands/collapses the group while taking you to the group page
2009-05-30 08:13:04 +00:00
Dan Stillman
e305dff598 Allow possibly useless multi-character delimiters, so that ahoward stops bothering me 2009-05-29 21:38:31 +00:00
Dan Stillman
1c429dc33c Fix to prevent delimiters > 1 character 2009-05-29 21:19:01 +00:00
Dan Stillman
e86686aeaa Fix skipped first tag 2009-05-29 21:17:00 +00:00
Dan Stillman
18568d8153 Prevent buttons from going off bottom of window in long tag fixer, maybe 2009-05-29 21:02:52 +00:00
Dan Stillman
2eb5416620 - Run long tag fixer on first sync error, and then check locally for tags > 255 characters to avoid repeated sync attempts
- Don't run long tag fixer on background sync
2009-05-29 20:47:44 +00:00
Dan Stillman
93703c68d1 Fix PDF dragging to collections (from r4559) 2009-05-29 20:05:48 +00:00
Dan Stillman
481d847951 Long tag fixer tool -- runs automatically if server returns a long tag error, giving the option to split, edit, or delete the offending tag
Needs testing and refinement

- Also fixes server unlock after sync errors
2009-05-29 11:49:55 +00:00
Dan Stillman
921fa8c0fa - Make DOI label clickable in metadata pane
- Restore hand cursor when hovering over DOI/URL labels (which wasn't working in Fx3.5)
2009-05-29 08:43:52 +00:00
Sean Takats
388c90dfac Fixes Hungarian string according to advice in http://forums.zotero.org/discussion/310 2009-05-28 19:43:14 +00:00
Dan Stillman
017342a85e Fix Open/Save dialog and use of hidden browser when saving file types not handled natively using "Save Link as Zotero Snapshot" or drag-and-drop to create a standalone item
This need testing.
2009-05-28 09:52:52 +00:00
Dan Stillman
8712f49426 Fix "childItems.concat is not a function" sync error 2009-05-27 09:51:38 +00:00
Dan Stillman
53d798c345 - Remove unused code from Zotero.Groups
- Adjust Zotero.Items.getAll(onlyTopLevel) to take a libraryID in the second parameter and only search local library otherwise -- this has the side effect of no longer exporting group items when using Export Library, which may or may not be what we want
2009-05-27 04:18:37 +00:00
Dan Stillman
e0f1ef7646 Automatically correct missing item server errors by flagging missing items for update on next sync 2009-05-27 04:13:25 +00:00
Dan Stillman
6de3c02301 Fix problems with imported files in 2.0b4 due to incorrect NULL handling 2009-05-27 03:52:18 +00:00
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
1db1de2257 Merged locales 2009-05-14 16:01:17 +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
Sean Takats
d1945d79b4 Fixes odious problem in French translation. Nous nous excusons! 2009-05-07 12:52:30 +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