Commit graph

1286 commits

Author SHA1 Message Date
Simon Kornblith
520a89a330 fix "this._streams is undefined" in translate.js 2009-07-17 20:29:30 +00:00
Dan Stillman
0def6c109f Update some triggers and fix inconsistent database entries that could cause sync errors 2009-07-17 07:07:27 +00:00
Dan Stillman
87969d106d - Don't show Mac clipboard warning in Create Bib window in Fx3.5, which supports HTML copy
- Remove warning from preferences window, because there's not enough room anyway
2009-07-15 21:54:29 +00:00
Dan Stillman
d106fc0313 - Add "Reset File Sync History" reset option to sync preferences
- Fix erroneous uploading of all files on storage history reset
- Fix re-verification of storage server after every opening of the preferences
2009-07-15 07:27:53 +00:00
Dan Stillman
9c8738dca0 Trailing letters in DOIs weren't linked in HTML bibliographies 2009-07-14 05:36:37 +00:00
Dan Stillman
882074e847 - Fix some collection sync issues 2009-07-14 04:04:39 +00:00
Simon Kornblith
40443c6b91 - add xml/e4x and xml/dom dataMode options
- parse XML encoding declarations in translate.js
- fix errors importing MODS from clipboard
2009-07-13 22:45:10 +00:00
Simon Kornblith
e3e8881282 Fix errors auto-detecting import formats 2009-07-13 20:16:13 +00:00
Dan Stillman
81b429420b Tweak to previous commit 2009-07-11 01:20:26 +00:00
Dan Stillman
28bbce4bf5 Trigger full reset on missing collection parent 2009-07-11 01:17:01 +00:00
Dan Stillman
0ac95bfacd - Don't send sourceItemKey if empty
- Remove stack trace on sync error, since it's mostly just annoying
2009-07-09 07:18:06 +00:00
Dan Stillman
7b998c355b Remove debug line that's breaking PubMed and other translators that return a document as an attachment 2009-07-08 20:32:08 +00:00
Dan Stillman
2408069055 Fix "cleanDOI:argument must be a string" error 2009-07-08 05:50:07 +00:00
Dan Stillman
b8c0dcebc5 Remove sync expiry 2009-07-08 05:29:52 +00:00
Dan Stillman
904a764b10 Fix erroneous username mismatch message 2009-07-08 05:18:07 +00:00
Dan Stillman
f76435a9b3 Fix metadata pane refresh issues 2009-07-08 05:10:53 +00:00
Dan Stillman
fffbd6e387 Fix horizontal orientation of attachment list in metadata pane 2009-07-08 04:42:21 +00:00
Dan Stillman
fe100d800b Item hierarchy in items pushed to server was lost 2009-07-08 04:11:43 +00:00
Dan Stillman
473e3a067a Fix for sync errors not stopping sync process (from 2.0b6 change) 2009-07-07 07:53:34 +00:00
Dan Stillman
d3b5553a73 Simultaneously fix and disable first run URL 2009-07-07 01:38:40 +00:00
Dan Stillman
c0fc3aeaaf Translator type comparison fix from Simon 2009-07-07 00:20:10 +00:00
Dan Stillman
5792b46409 Fix "Rename Attachment from Parent Metadata" on Linux 2009-07-06 21:52:27 +00:00
Dan Stillman
b619b2a010 Add "Create Parent Item from Selected Item" context menu option for attachments and notes -- creates a Document item based on the attachment/note title
This might eventually supersede "Retrieve Metadata from PDF", automatically recognizing PDFs and otherwise just creating parent items
2009-07-06 13:47:46 +00:00
Dan Stillman
eabd87864f Merge locales for 2.0b6 2009-07-06 12:40:24 +00:00
Dan Stillman
5c8f1c5661 Fix relative customized sizing of table cells and headings 2009-07-06 12:30:51 +00:00
Dan Stillman
04aa0581be Date portion of SQL datetimes entered into date fields would be lost on edit 2009-07-06 11:42:03 +00:00
Dan Stillman
9e9f8db1df - Fix sync error when a file of an attachment with tags was in conflict
- Missed file from previous commit
2009-07-06 11:27:44 +00:00
Dan Stillman
7008fa41cf - Fix error in previous commit
- Log stack trace to error console on sync errors
2009-07-06 10:40:10 +00:00
Dan Stillman
3341336232 Fix "Sync delete log starts after last sync date in Zotero.Sync.Server.sync()" error 2009-07-06 10:20:04 +00:00
Dan Stillman
41437738b0 - Add triggers for full sync on various errors
- Add Zotero.Error(message, error) constructor to create a throwable error object with an error code
- Allow only one automatic client reset between manual syncs
- Fix "Source item for keyed source doesn't exist in Zotero.Item.getSource()" error
- Object produced by item.serialize() now contains .sourceItemKey instead of .sourceItemID
- Better error logging for missing XPCOM files
2009-07-06 10:13:02 +00:00
Dan Stillman
f9aa9383cb - Automatically run a full sync when triggered by server, which should allow for auto-correction of a wide range of remaining sync errors (though not all cause server to trigger full sync yet)
- Display exclamation mark on sync icon if a background sync fails due to a conflict (which requires manual intervention)
2009-07-05 10:48:19 +00:00
Dan Stillman
31bf663b03 Fix a serious but hopefully rare upgrade bug since Sync Preview 1 that could cause a handful of creators to be turned into either empty strings or other creators (the latter being much less likely)
For libraries that have already been upgraded, this renames orphaned item creators to "[Missing Name]"
2009-07-04 09:00:44 +00:00
Dan Stillman
46b3b857fa Expose all translator metadata properties (needed by Rintze for Scaffold 2.0) 2009-07-03 23:07:40 +00:00
Dan Stillman
5318b9293b Fix "Unexpected status code 300 in Zotero.Sync.Storage.getStorageModificationTime()" error (likely due to mod_speling) 2009-07-03 22:51:58 +00:00
Dan Stillman
3f911faa07 Add "Full Sync" option to Zotero prefs 2009-07-03 22:40:50 +00:00
Dan Stillman
34732fe78e Missed file in previous commit 2009-07-03 11:11:56 +00:00
Dan Stillman
4e3b79f9bb Metadata pane tab fixes
- Connect tabs to pane
- Allow switching between metadata pane tabs using standard Firefox shortcuts (Ctrl-Tab, Ctrl-Shift-Tab)
- Fixed squished look in Firefox 3.5
- Remove some unnecessary padding, providing a little bit more room in the metadata pane

Needs a little testing

Closes #711, Improve keyboard support
2009-07-03 11:11:13 +00:00
Dan Stillman
37abd1658a Fixes collection arrow persisting after subcollection delete 2009-07-03 09:59:34 +00:00
Dan Stillman
e636fe0f65 Fixes #1444, Attachment arrow/count persists after delete
This was fixed but then broken again for trashed items. Now fixed again.
2009-07-03 08:40:29 +00:00
Dan Stillman
2bfb5af205 Change "Documentation" to "Support and Documentation" and update URL 2009-07-03 07:04:13 +00:00
Dan Stillman
52dda8ae0b Don't throw error on database backup failure, which was breaking some upgrades for unknown reasons 2009-07-03 05:11:22 +00:00
Dan Stillman
2f2441bbf7 Upgrade TinyMCE to 3.2.5
- Added paste plugin to fix messy pastes from Word
- Added context menu plugin to allow copy/paste via mouse

Closes #1490, Upgrade TinyMCE to 3.2.4.1
2009-07-03 04:49:50 +00:00
Dan Stillman
48fc3fd742 Better debug and error messages for "not an error" messages (most of which should now be fixed via server) 2009-07-03 03:19:28 +00:00
Dan Stillman
e3e14a3f92 Extend expiry date 2009-07-02 07:57:38 +00:00
Simon Kornblith
7b25756416 use objects instead of arrays in serialize.js 2009-06-24 22:05:34 +00:00
Simon Kornblith
7da8c036d7 Use RDF store from Tabulator (http://www.w3.org/2005/ajar/tab) instead of Mozilla RDF support, along with a modified version of their RDF serializer. Our RDF export should now be much cleaner, but still backward compatible with 1.0. 2009-06-24 20:42:41 +00:00
Simon Kornblith
7b58475df7 - closes #1512, RTF Scan: Page Numbers
- closes #1513, RTF Scan: {Bib} Placemarker Flexibility
- switches citations from parentheses to brackets, to make it easier to distingush between what was reformatted and what wasn't
- adds a list of example citations to RTF scan dialog
2009-06-23 19:49:56 +00:00
Dan Stillman
6126ceb323 Use base-mapped title in progress window 2009-06-23 16:34:10 +00:00
Dan Stillman
ad01177eaf Clarify group attachment file syncing message 2009-06-17 21:13:09 +00:00
Dan Stillman
4ad2a4f5bf Fix broken documents after syncing for the first time with 2.0b5 2009-06-16 06:52:17 +00:00
Dan Stillman
e59bb3078f Speed up large SELECT operations a bit 2009-06-10 08:22:00 +00:00
Dan Stillman
03023e6265 Speed up initial items pane load (tested at ~20% faster with 5400 items) 2009-06-10 07:55:16 +00:00
Dan Stillman
ad965b1675 Fix possible "syncDeleteLog not empty and no timestamp in Zotero.Sync.delete()" error after upgrading 2009-06-10 07:28:30 +00:00
Dan Stillman
ebf6447351 Add Zotero.Translators.save(metadata, code) 2009-06-06 18:03:04 +00:00
Dan Stillman
cd1ac2e802 Use base-mapped date field in rename format string 2009-06-04 19:22:45 +00:00
Dan Stillman
63586518df - Add "Rename File[s] from Parent Metadata" context menu option to child file attachments, using extensions.zotero.attachmentRenameFormatString
- Only rename attachment title if it was already identical to filename

Somebody should probably test this.
2009-06-04 09:34:43 +00:00
Dan Stillman
9c28c6bb9c Fixes "this._IDMap is undefined" error from Embedded RDF translator 2009-06-04 08:32:26 +00:00
Dan Stillman
57fe6361d1 Remove valid username check from client 2009-06-04 00:58:50 +00:00
Dan Stillman
f681730e75 - Automatically check for and remove invalid characters in filenames on a sync upload error
- Add newline and characters not valid in XML (mostly control characters) to filename blacklist
- Strip invalid characters when user is renaming a file manually
2009-06-02 11:13:41 +00:00
Dan Stillman
5b7923c71d - Update file mod time when renaming so that new names sync
- Display file timestamp in conflict resolution box
2009-06-02 08:20:41 +00:00
Dan Stillman
51f6e1650d Better (and centralized) DOI parsing 2009-06-01 20:13:09 +00:00
Dan Stillman
6a28e8b040 - Make note font size configurable through preferences
- Make note font configurable through extensions.zotero.note.fontFamily hidden pref (for now)
- Additional CSS rules can be added through extensions.zotero.note.css hidden pref
- Give TinyMCE note body #zotero-tinymce-note id for more specific external customization
- Remove status bar position option from visible preferences...
2009-06-01 08:23:16 +00:00
Dan Stillman
68c6162fc8 - Don't use modifier keys to control tab/window opening behavior when double-clicking items list, because the modifier keys are already bound to behaviors
- Add viewOnDoubleClick hidden pref to disable double-click functionality
2009-06-01 02:53:03 +00:00
Dan Stillman
99ffa76e6f Better error message for a sync error (not yet fixed) 2009-05-31 20:19:49 +00:00
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