Commit graph

1027 commits

Author SHA1 Message Date
Dan Stillman
2197efc2df Add creator XML as glue if not already included in sync session 2008-10-27 18:48:41 +00:00
Dan Stillman
41a3756102 Restore EndNote® import 2008-10-27 18:16:45 +00:00
Dan Stillman
95024e50d5 Update sync expiry 2008-10-27 18:04:54 +00:00
Dan Stillman
8070a22d08 Load TinyMCE as chrome to avoid NoScript blockage 2008-10-27 16:39:18 +00:00
Dan Stillman
11b05a5a41 Fix upgrade error with empty data values and tags 2008-10-26 22:58:44 +00:00
Dan Stillman
8660095c54 Fixes #1182, Translator priority is ignored 2008-10-25 20:55:02 +00:00
Dan Stillman
5688acbdc9 Fix truncated default terms when using custom <terms> element (http://forums.zotero.org/discussion/4384/) 2008-10-25 10:51:01 +00:00
Dan Stillman
d2118dc5fc Apparently we still use this (in csledit.xul and cslpreview.xul) 2008-10-25 10:47:01 +00:00
Dan Stillman
310e233480 Merged r3581-3616 from 1.0 branch, plus some report tweaks 2008-10-25 08:01:43 +00:00
Dan Stillman
01edde493f Fix error toggling RIS/Refer intercept pref 2008-10-25 07:39:32 +00:00
Dan Stillman
93bbed579e Missed file from r3450-3580 merge from 1.0 branch 2008-10-25 07:38:50 +00:00
Dan Stillman
0f0c531247 Merged r3450-3580 from 1.0 branch 2008-10-25 07:37:47 +00:00
Dan Stillman
f50a5fe603 Run storage server verification automatically when clicking sync button
If there's a storage error, it either needs to be resolved or file sync needs to be disabled for regular sync to proceed.
2008-10-25 04:01:36 +00:00
Dan Stillman
99f9bcb79d More tag/space handling 2008-10-25 03:10:50 +00:00
Dan Stillman
6a20d690e0 Fix errors adding tags with leading or trailing spaces to items (since yesterday) 2008-10-25 02:47:47 +00:00
Dan Stillman
7a6656ae5c Fix error from previous commit 2008-10-25 02:09:59 +00:00
Dan Stillman
4f2bcb15d5 Fix error when purging tags that have already been erased 2008-10-24 23:03:53 +00:00
Dan Stillman
56eb416e3e Fix error in doc prefs window if lastStyle is set to an invalid style 2008-10-24 21:08:44 +00:00
Dan Stillman
7a2d7594d4 Fixes #1194, RDF Export fails to export files in 1.5 2008-10-24 20:11:34 +00:00
Dan Stillman
a7f73f0d82 Fix sync regression from previous commit 2008-10-24 11:29:08 +00:00
Dan Stillman
85087c4859 Fix upgrade error from previous commit 2008-10-24 11:14:16 +00:00
Dan Stillman
108fd304ab Fixed lots of sync bugs
- All string values are now trimmed going into the DB (with a migration step for existing values) -- this fixes erroneous conflicts due to leading/trailing whitespace in sync XML being ignored
- Case disambiguation fixed on server
- Added basic diff ability to collections and tags so that identical objects won't trigger conflicts
- Fixed various other bugs that could cause erroneous conflicts
- Moved string fields in serialize() objects into a 'fields' object for consistency with Zotero.Item

Upshot of most of the above is that identical pre-upgrade libraries should now merge cleanly

Also reorganized/simplified/modularized parts of the sync code
2008-10-24 11:10:05 +00:00
Dan Stillman
3fdb212dd6 Fix for some attachment directories not being properly migrated to keys
Also migrates remaining files for past upgrades on the trunk (assuming their ids haven't been changed by syncing--if the item that has a given id already has a directory or if there is no attachment item with that id, the directory will be moved to orphaned-files)
2008-10-22 07:45:27 +00:00
Dan Stillman
25f8b8350c Fix broken note window when opened without an associated item 2008-10-21 19:19:18 +00:00
Dan Stillman
405c5114b8 Debugging for TinyMCE page load 2008-10-20 22:11:33 +00:00
Dan Stillman
7c0bc7035b Some debug lines for key upgrade process testing 2008-10-17 21:49:43 +00:00
Dan Stillman
0c01dc2d6e - Fix note saving on Windows
- Remove some extra stuff from read-only note page
2008-10-17 20:39:39 +00:00
Elena Razlogova
cda9ced2a5 Adds "sub verbo" locator to the trunk 2008-10-17 18:18:27 +00:00
Dan Stillman
df8d13df84 Revert unnecessary change from r3562 2008-10-17 17:37:33 +00:00
Dan Stillman
9373e19aa8 Fix error saving automatic tags 2008-10-17 17:31:34 +00:00
Dan Stillman
d5215618aa Additional debugging for setStorageModificationTime() error 2008-10-17 00:33:22 +00:00
Dan Stillman
994de2e65c Fix TinyMCE in XPI builds 2008-10-16 22:29:26 +00:00
Dan Stillman
4de529c03f Fixed a couple tag-related errors (from caching change) 2008-10-16 17:12:33 +00:00
Dan Stillman
1fad45da63 Fix erroneous caching of attachment path after relinking 2008-10-15 06:27:52 +00:00
Dan Stillman
5b3a3a1ad2 Fix missing space after formatted words in custom citations 2008-10-15 06:14:12 +00:00
Dan Stillman
ad5ac7ba64 - Fix error saving attachments
- Increase default separate note window height
2008-10-15 05:30:59 +00:00
Dan Stillman
1d6dea45ec Remove our plaintext timed textarea 2008-10-15 05:26:16 +00:00
Dan Stillman
2bbf3d7c80 - Restored read-only mode for notes (using a separate HTML file, for lack of a better way)
- HTML file is now loaded on-demand the first time it's required
2008-10-15 05:24:38 +00:00
Dan Stillman
5e1ca7172a - Reduced TinyMCE to two rows
- Removed font-family, font-size, full justify
- Restored outdent and indent
- Some style improvements, including quotation marks around blockquotes
2008-10-14 03:02:26 +00:00
Dan Stillman
31ef0eab13 Moved 'tiny_mce' directory to 'tinymce' 2008-10-13 23:31:53 +00:00
Dan Stillman
ea5d51b93d - Remove indent/outdent buttons
- Remove extraneous debugging
2008-10-13 23:27:57 +00:00
Dan Stillman
9dfca12594 Fix creator breakage from object caching changes 2008-10-13 22:33:28 +00:00
Dan Stillman
8f2a7524e7 Fix error during creator add (since data caching change) 2008-10-13 22:05:27 +00:00
Dan Stillman
47285a0567 Convert plaintext notes on the fly, to deal with multi-version syncing issues 2008-10-13 21:12:55 +00:00
Dan Stillman
71ca2c1b2c Fix previous commit 2008-10-13 20:12:19 +00:00
Dan Stillman
80dc7be1be Allow SVN builds without SVN root to still start 2008-10-13 20:11:43 +00:00
Dan Stillman
651bcf2380 Adds rich text support to notes
- Still a few issues
- Converts plaintext notes to HTML on upgrade
2008-10-13 19:51:53 +00:00
Dan Stillman
b46860f6a4 - Switch to uncompressed JS files for TinyMCE so we can debug and make changes if necessary
- Add utils directory containing scripts needed for various features
2008-10-12 07:51:40 +00:00
Dan Stillman
7f1677d726 Fix error on object delete 2008-10-11 22:11:15 +00:00
Dan Stillman
1434b8aa7a Reworked and standarized data object caching -- this should fix problems of long-term references containing stale, orphaned versions of data objects 2008-10-10 01:48:19 +00:00
Dan Stillman
5f0aa6aa9f Better handling of missing attachments and empty attachment paths 2008-10-08 18:49:48 +00:00
Dan Stillman
675184d160 Firefox 3.1 compatibility fix (from Simon) 2008-10-07 02:56:06 +00:00
Dan Stillman
e32e6aa2f5 Fix csledit and cslpreview with new styles architecture -- dependent styles will not be displayed 2008-10-06 21:43:16 +00:00
Dan Stillman
f8a5ddc047 All creator types defaulted to author on import 2008-10-06 21:07:59 +00:00
Dan Stillman
f4a8822ea7 Fix "constraint failed" error when trying to delete attachment with annotations/highlights 2008-10-03 19:33:59 +00:00
Dan Stillman
6256d6fee8 Fix excessive updating of translators and styles in XPI builds 2008-10-02 22:11:23 +00:00
Simon Kornblith
ac551b3a2f use TinyMCE for styled-textbox.xml 2008-09-24 23:44:34 +00:00
Simon Kornblith
de013f0c02 - closes #921: Revise handling of deleted citations. Upon encountering a deleted citation, the plug-in now highlights the citation and allows the user to reselect the item (which applies to all places the item is cited), to delete all citations of the item from the document, or to cancel the update
- adds syntax checking to build script
- only display the last 5 lines of the python error/traceback
2008-09-23 23:11:27 +00:00
Dan Stillman
e65473d618 Missing locale line 2008-09-23 03:57:19 +00:00
Dan Stillman
cb38ee8b02 Merge locales 2008-09-23 02:34:57 +00:00
Dan Stillman
4f87dd1323 Merged r3351-3450 from 1.0 branch 2008-09-23 02:11:56 +00:00
Dan Stillman
b4ac8b949e More explicit error when responseXML is null 2008-09-22 21:55:14 +00:00
Dan Stillman
9b9a450527 Disable EndNote® style support 2008-09-22 21:45:50 +00:00
Simon Kornblith
ac75376d51 use fewer xmlns attributes when serializing integration XML 2008-09-19 19:08:45 +00:00
Dan Stillman
a9dc3301af Move debug line in sync error handler to a more helpful place in the output 2008-09-18 09:37:25 +00:00
Dan Stillman
44c2783c76 Don't display session id in debug output 2008-09-18 09:32:36 +00:00
Dan Stillman
ac5071e94e - Handle URL encoding of 'href' value in PROPFIND response when purging files
- Fix a scoping issue that could prevent some property files from being purged
- Properly handle systems with millisecond-level file mod time granularity (clearing of storage sync history is required)
- Fix issue that might have erroneously removed property files
2008-09-17 19:35:37 +00:00
Dan Stillman
083bdd4753 - Switch to using separate property files for storage sync rather than WebDAV properties, which aren't supported on all servers
- Fix potential security issues with symlinks in ZIP files due to Firefox brokenness
- Zotero.Utilities.HTTP.doGet() can now take a URI instead (and doesn't display the password that way for authenticated requests)
- For now, delete orphaned files immediately when using "Purge Orphaned Storage Files" instead of waiting a day
- Properly remove deleted files from delete log
- Better debugging of various things
2008-09-17 11:27:36 +00:00
Dan Stillman
be47357e48 Fix restore of Quick Copy pref in preferences 2008-09-17 04:51:07 +00:00
Simon Kornblith
3ae7cc308f don't install text/x-csl files as hidden 2008-09-17 04:25:18 +00:00
Dan Stillman
854842c003 Localize version header pref 2008-09-17 03:13:05 +00:00
Simon Kornblith
cccdbdb8e5 Zotero.Style.delete -> Zotero.Style.remove 2008-09-17 00:45:14 +00:00
Dan Stillman
e5bdfbb019 Full comment 2008-09-16 21:44:23 +00:00
Dan Stillman
21e7fe1fbc Handle URL-encoded 'href' values in PROPFIND request 2008-09-16 21:43:11 +00:00
Dan Stillman
d0e4852be6 Don't fail if SVN style symlink points to missing file 2008-09-16 21:39:02 +00:00
Dan Stillman
340f54c8b0 Add X-Zotero-Version header to HTTP requests to zotero.org 2008-09-16 20:11:27 +00:00
Simon Kornblith
bf8e4eae28 - implement Zotero.Styles.install, refine Zotero.Style.delete, and restore functionality to Styles prefpane
- allow deletion of multiple styles simultaneously
- split Zotero.Styles/Zotero.Style and Zotero.CSL into style.js and csl.js respectively
- add Zotero.File.getBinaryContents for binary-safe file reading
- add Zotero.MIMETypeHandler to provide a unified interface for registering observers and capturing MIME types with Zotero
2008-09-16 19:14:52 +00:00
Dan Stillman
0769e0e1f8 Accept 200 for PROPPATCH (and now compatible with Air Sharing iPhone app) 2008-09-16 06:25:44 +00:00
Dan Stillman
edad44c2db Allow 200 status code on DELETE in one other place 2008-09-16 04:34:48 +00:00
Dan Stillman
c9a3d49a5e - Add 'styles' directory with symlinks to actual styles for default styles
- Change schema.js to use 'styles' directory
2008-09-15 20:13:33 +00:00
Dan Stillman
1ab118c9af Don't throw error if there's no Zotero.Styles.lastCSL 2008-09-15 19:54:09 +00:00
Dan Stillman
b7fc5e66f2 Adds support for Microsoft IIS (5.1) WebDAV 2008-09-15 10:40:10 +00:00
Dan Stillman
eac0c1a94d - Remove overriding OPTIONS response to text/plain -- the problem is incorrect status codes generated by IIS that result in "No element found" errors
- Replace passwords in malformed XML messages when generating error reports
2008-09-15 09:48:27 +00:00
Dan Stillman
1619491157 Don't log XML error to console if OPTIONS response isn't XML 2008-09-15 08:57:23 +00:00
Dan Stillman
86678aba27 Install/upgrade support for flat-file translators and styles
Files are copied from translators.zip and styles.zip (or, for SVN installs, 'translators' and (for now) 'csl' directories) in the installation directory to 'translators' and 'styles' directories in the data directory. A build_zip file is provided for testing translators.zip (which will take precedence over a 'translators' directory) but isn't required.

The timestamp stored in repotime.txt is stored in the database and is sent to the server for updates since that time.

Updating a file in [install-dir]/translators or [install-dir]/styles automatically copies all files in that directory to the data directory.
2008-09-12 22:09:54 +00:00
Simon Kornblith
85290b6c95 add hidden property to styles 2008-09-11 23:38:34 +00:00
Dan Stillman
79ef2eac4d Better startup error debugging 2008-09-11 23:19:23 +00:00
Simon Kornblith
ca1cf1c8a3 use more consistent function names 2008-09-11 22:58:18 +00:00
Simon Kornblith
a4032fe817 remove debug code 2008-09-11 22:07:57 +00:00
Simon Kornblith
d2c3f0fa12 add support for parent/child relationships 2008-09-11 22:06:31 +00:00
Simon Kornblith
f06ce2705c implements Zotero.Styles and Zotero.Style using flat files 2008-09-11 21:29:05 +00:00
Simon Kornblith
f6b1d6e56e better handling of invalid JSON objects 2008-09-11 20:53:15 +00:00
Simon Kornblith
7d9493827e fix bug in translator caching 2008-09-11 20:45:01 +00:00
Simon Kornblith
89e7d6a1ef don't run translators on about: URIs 2008-09-11 19:40:38 +00:00
Simon Kornblith
492d3a8cb2 shuffle around initialization code 2008-09-11 19:35:53 +00:00
Simon Kornblith
d6f0dc28ef use Zotero.log instead of calling consoleService.logMessage() directly 2008-09-11 18:04:56 +00:00
Simon Kornblith
643ada4905 Convert translator architecture to use files
This will break translation for the dev XPI and on the trunk until Dan commits his part of this (or you copy the translators dir in SVN to the zotero dir in your profile dir)
2008-09-11 17:35:56 +00:00
Dan Stillman
f85f21db32 Merge r3371 to trunk 2008-09-11 17:30:40 +00:00
Dan Stillman
4648ae0f3b Zotero.getStylesDirectory(), Zotero.getTranslatorsDirectory(), and Zotero.File.createDirectoryIfMissing(dir) 2008-09-11 17:20:09 +00:00
Dan Stillman
6a3c62c23c Tweak to previous commit -- use 'this' instead of full chain 2008-09-10 16:55:45 +00:00
Dan Stillman
7f76b35ab4 Clear last sync error when starting sync 2008-09-10 16:53:11 +00:00
Dan Stillman
62290e0bcd Additional debugging for unexpected status code storage error 2008-09-10 15:50:25 +00:00
Simon Kornblith
9cb95ac77c don't show option to retrieve metadata if PDF indexer is not installed 2008-09-09 21:01:47 +00:00
Simon Kornblith
0284e5339b remove cache file even when it is < 20 lines long 2008-09-09 16:03:37 +00:00
Simon Kornblith
3fd346ed06 close input stream in recognizePDF 2008-09-09 16:00:40 +00:00
Dan Stillman
ecfc44ee57 Closes #1166, Add http access to WebDAV 2008-09-09 15:19:22 +00:00
Dan Stillman
1f334a2eb8 Fixes storage upload with subfolders 2008-09-09 14:15:53 +00:00
Dan Stillman
c6de353d23 Fix error and blank CR window when an item with tags is in conflict 2008-09-05 06:03:45 +00:00
Dan Stillman
5bc80d4cfe Additional output for debugging tag problem 2008-09-05 06:00:03 +00:00
Dan Stillman
49593266e1 Generate conflict if number of item creators changed 2008-09-05 05:42:59 +00:00
Dan Stillman
4d7fc6b10c Include response text from server in error log on Invalid Response sync error 2008-09-05 04:29:34 +00:00
Dan Stillman
e38c86cba2 Remove referrer in recognizePDF requests 2008-09-05 04:08:56 +00:00
Dan Stillman
714011d1d3 Fix ACCESS_DENIED storage sync error on Windows 2008-09-05 02:42:54 +00:00
Dan Stillman
0dbd02abe9 Fix regression from r3335 that caused some creator changes not to sync 2008-09-04 22:27:51 +00:00
Dan Stillman
c822aad2b6 - Fix "Creator must be a Zotero.Creator object in Zotero.Item.setCreator()" problem -- now looks for creator data within item block when it doesn't exist locally
- Fix a couple other problems with creators that could cause changes not to be synced or to cause unnecessary conflicts
2008-09-04 20:27:41 +00:00
Dan Stillman
e3acd9a513 Better cleanup of cached data after sync error
Clearer error message for "Creator must be a Zotero.Creator object in Zotero.Item.setCreator()" problem (which isn't yet fixed)
2008-09-03 18:04:50 +00:00
Dan Stillman
088c057837 Reverting to recognizePDFcache.txt filename -- I requested the hidden filename when I thought that the cache file was stored in storage directories 2008-09-03 06:23:41 +00:00
Simon Kornblith
5fc9782860 - better interface for PDF recognizer
- slightly improved PDF recognizer performance
2008-09-03 06:20:19 +00:00
Simon Kornblith
c9f1592704 fix strict mode error and add JSDoc to selectitems.js 2008-09-02 19:30:14 +00:00
Simon Kornblith
c4c65f0a50 Use Zotero.Items.get() instead of using new items directly after saving 2008-09-02 19:28:57 +00:00
Dan Stillman
d5bf5c9120 Fixes #1157, Adding an existing tag to an item with no tags breaks Zotero 2008-09-01 17:59:25 +00:00
Dan Stillman
f0c4eec238 Fix sync icon error handling (trunk and SP2 tag) 2008-09-01 08:09:37 +00:00
Dan Stillman
02fd1f89b6 Fix sync button breakage after error (trunk and SP2 tag) 2008-09-01 08:00:46 +00:00
Dan Stillman
2dffa33364 Merge recent English strings to other locales on trunk 2008-09-01 06:45:03 +00:00
Dan Stillman
d662466ff6 Merged revisions 3306,3309 from 1.0 branch via svnmerge 2008-09-01 06:09:56 +00:00
Dan Stillman
ee8229b80a Two JS strict warnings 2008-09-01 04:34:47 +00:00
Dan Stillman
68f7f933c2 Fix properToProxy() translator error (regression from merge) 2008-09-01 04:25:40 +00:00
Dan Stillman
a1cd958cd6 Attachment directory wasn't removed when deleting attachment 2008-09-01 03:59:55 +00:00
Dan Stillman
f9c07bb8e0 Fix one other case where the sync could never end 2008-09-01 03:42:42 +00:00
Dan Stillman
a30106c887 Storage sync never stopped if file-to-download was missing 2008-09-01 03:28:04 +00:00
Dan Stillman
93a213e9e5 - Add "Debuggin" labels to Actions menu options
- Add extra temporary debug output
2008-09-01 03:08:30 +00:00
Dan Stillman
4da7a006c3 Fix bug displaying "Rename associated file" dialog (on trunk and branch) 2008-09-01 02:10:40 +00:00
Dan Stillman
4da36c4f19 Fix two JS strict warnings 2008-09-01 02:00:17 +00:00
Dan Stillman
f37d724a9e Merged revisions 3080-3081,3084,3087-3088,3090,3092,3099-3103,3113-3114,3132,3134-3143,3145,3148-3151,3154-3159,3165,3174,3194,3234-3235,3239-3240,3244,3246-3254,3258-3262,3268,3270,3274,3279,3286-3288,3294-3295 from 1.0 branch via svnmerge 2008-09-01 01:54:00 +00:00
Dan Stillman
84ef07c874 Missed file from r3296 and better debugging of invalid DB parameters 2008-08-31 23:39:14 +00:00
Dan Stillman
a8bb8dae40 Adds WebDAV file sync
- Still experimental and incomplete, with no lock support and not much error handling

Also:

- New expiry date for sync functions
- Attachment character set was being dropped during syncing
- Possibly improves sizing issues with preferences window
- Fixes problems with attachment filenames with extended characters
- Fixes some problem with tags that I don't remember
- Makes XMLHTTPRequest calls are now background requests (no auth windows or other prompts)
- Z.U.HTTP.doOptions() now takes an nsIURI instead of a URL spec
- New methods:
  - Zotero.Utilities.rand(min, max)
  - Zotero.Utilities.probability(x)
  - Zotero.Utilities.Base64.encode(str) and decode(str)
  - Zotero.getTempDirectory()
  - Zotero.Date.dateToISO(date) - convert JS Date object to ISO 8601 UTC date/time
  - Zotero.Date.isoToDate(isoDate) - convert an ISO 8601 UTC date/time to a JS Date object
2008-08-31 23:36:01 +00:00
Simon Kornblith
8c91c8fc90 don't put MAX_PAGES in global namespace 2008-08-22 05:41:00 +00:00
Simon Kornblith
225c62df18 fix JS warnings 2008-08-22 05:38:36 +00:00
Simon Kornblith
4cf79691ed Add feature to retrieve metadata for PDFs, currently accessible as a contextual menu item.
The feature grabs relevant fragments from the document and then searches them on Google Scholar. This will only work with OCRed PDFs, so it doesn't work with JSTOR, but it should work fairly well with everything else.
2008-08-22 05:35:44 +00:00
Simon Kornblith
f20ed8507e Commit missing proxy components from r3266 2008-08-22 05:23:03 +00:00
Simon Kornblith
501d6c6e77 closes #1098, Edit Citation not working in new document 2008-08-21 21:30:36 +00:00
Dan Stillman
3633b053bb Fix "second argument to Function.prototype.apply must be an array" error in schema.js line 1636 on upgrade 2008-08-21 16:25:17 +00:00
Simon Kornblith
c77fe5462a references #831, transparent EZProxy support
changes default behavior. transparent redirection is now enabled by default, and a caution dialog appears when proxies are first accessed. when transparent redirection is turned off, no dialog appears, and proxies get saved automatically. when the user switches transparent redirection on, there is a warning that s/he should check that there are only trusted proxies in the list. i'm not sure how well i've worded the messages, so feel free to suggest better alternatives.
also, a bit of jsdoc cleanup on proxy.js
2008-08-21 05:46:54 +00:00
Dan Stillman
4c2a37e510 Fixes saved search syncing, probably 2008-08-20 14:52:24 +00:00
Dan Stillman
78731858ab More helpful error message for compat styles in cslpreview and csledit on trunk 2008-08-20 01:41:29 +00:00
Dan Stillman
c73513576a - Fix inability to add existing tags to item
- Fix error if a local tag matches a different remote tag
- Add additional triggers to enforce referential integrity
2008-08-15 05:32:18 +00:00
Dan Stillman
7637434a2a Fix error saving imported attachments on trunk (since r3178) 2008-08-14 17:58:45 +00:00
Dan Stillman
96e88bda1e - Change local key if remote item has different id but different key (which should mostly be with the Quick Start Guide)
- Moved common singleton data logic (for now, just getByKey()) into Zotero.DataObjects, and use that as template for other data objects
2008-08-13 06:38:47 +00:00
Dan Stillman
4450e12152 Proper updating of cached parent collections 2008-08-13 02:21:49 +00:00
Dan Stillman
0fb1d5866f Fixes #1077, Add tag to note dialog broken
The manual Add Tag popup isn't popping up for me when I drag a note to the tag selector. If you're still getting that, please open a new ticket.
2008-08-13 00:08:51 +00:00