Commit graph

1469 commits

Author SHA1 Message Date
Dan Stillman
0d47e224fa About pane updates 2010-09-16 07:31:32 +00:00
Simon Kornblith
48a143505b remove unnecessary fallback code 2010-09-16 06:25:52 +00:00
Simon Kornblith
66ac0bddcd remove debug code accidentally included in previous commit 2010-09-16 06:23:47 +00:00
Simon Kornblith
e9bedc640b complain regarding out-of-date Word plug-in 2010-09-16 06:22:39 +00:00
Dan Stillman
9e488aa8f0 Work around encoding issue with em dash in tooltip 2010-09-16 04:06:32 +00:00
Dan Stillman
917910d1d0 Add warning to Sync->Reset pane 2010-09-14 21:12:29 +00:00
Dan Stillman
f5d383a91e Commons:
- Check getDisplayTitle() in pre-upload title check
- Use display title for ZIP filename, and run through getValidFileName()
- Use display title in URI
2010-09-10 02:32:02 +00:00
Dan Stillman
60ae71d964 Merge r6708 from branch to trunk 2010-09-09 22:01:53 +00:00
Dan Stillman
56a31cbd72 Include collection name in "Cannot move collection into one of its own descendents" message to help with manual fixing 2010-09-09 01:58:37 +00:00
Dan Stillman
72ffd78143 Remove debug code 2010-09-09 01:57:36 +00:00
Dan Stillman
2f2e8c25da Additional file sync debugging 2010-09-08 18:33:28 +00:00
Dan Stillman
af304f0834 Commons:
- Align bucket name checks between UI and data layer
2010-09-08 17:51:24 +00:00
Dan Stillman
6c7413ed72 Commons:
- Fix collection creation
- Don't display alerts for errors retrieving bucket contents, since IA returns various errors for a while after bucket creation
2010-09-08 17:31:30 +00:00
Dan Stillman
bc53f32595 Recover from wrong-library-tag-item issue without using the DB Repair Tool 2010-09-08 08:44:42 +00:00
Dan Stillman
3fb8d66e1e Link to SSL certificate error KB page on error 2010-09-07 20:21:13 +00:00
Dan Stillman
055f641188 Fix error message in previous commit 2010-09-07 19:01:26 +00:00
Dan Stillman
539ac39d70 Trigger Full Sync when trying to insert an item into a missing local library (though I think the causes of this have been addressed server-side) 2010-09-07 18:39:05 +00:00
Dan Stillman
1f93fa405c Fix an NS_ERROR_FAILURE from nsIFileURL.file, though I don't yet know what causes it 2010-09-07 08:57:35 +00:00
Dan Stillman
6a42d2ee12 Suggest restarting Firefox and/or computer to fix file sync errors 2010-09-07 00:33:42 +00:00
Dan Stillman
e69f9d156f Fixes #1721, Zotero.File.getContents() method ignores small values of maxLength
- Modified version of Frank's patch -- among other things, requested bytes aren't guaranteed by readString()
- Unit tests
2010-09-06 19:10:15 +00:00
Dan Stillman
330f8697f8 Check for long tags not associated with items after TAG_TOO_LONG sync error 2010-09-06 18:36:34 +00:00
Dan Stillman
6ba92efdbb - Add instructions line to CR window saying to click Next/Done
- Resize CR window better for smaller screens (which will hopefully keep the button in view)
2010-09-05 07:18:06 +00:00
Simon Kornblith
937b583c9f update to citeproc-js 1.0.53 (finally)
In this release:

 Fix a subtle bug that caused full author names to
 be erroneously rendered in citations although the
 style parameters did not permit them.
2010-09-04 22:52:52 +00:00
Dan Stillman
3ce6e429ed Commons:
- Fix encoding issues with uploaded files
- Use a more reliable method of generating the file list that doesn't depend on IA filename sanity
- Get user display name from and prepend slugify()'ed version to bucket names (still including "zc-test-" for now)
2010-09-03 20:22:32 +00:00
Dan Stillman
c0091db15e Fixes #1719, Autosync suspension needs to persist
Don't auto-sync on Zotero pane open if a manual sync is required
2010-09-02 16:48:48 +00:00
Dan Stillman
0e45473992 Commons:
- Items must have a title
- Warn if some items are skipped
2010-09-02 04:23:48 +00:00
Dan Stillman
b97c2213b6 Commons:
- Encode apostrophes, since IA wants it that way
- Allow uploading only for regular items with attached files
- Fix error if no local item
2010-09-02 03:14:14 +00:00
Dan Stillman
3d555e030a Commons:
- Don't break reloading on "Invalid response retrieving file upload parameters"
- Don't break loading if a <file> doesn't have a <format>
2010-09-02 02:03:10 +00:00
Dan Stillman
01d3d0057c Don't try to download attachments with empty paths, which can't be saved 2010-09-01 05:42:02 +00:00
Dan Stillman
338096e1a3 Display more helpful message for "Hash not found in HEAD response" error 2010-09-01 05:13:28 +00:00
Dan Stillman
a815fefa28 - Second half of ZFS quota message wasn't being shown in dialog
- Display filename of file that would put user over quota
2010-08-31 17:50:03 +00:00
Dan Stillman
a081315876 Fix UI update on Commons enable/disable 2010-08-31 06:45:45 +00:00
Dan Stillman
ab398bcd84 JS strict warning 2010-08-30 21:00:35 +00:00
Dan Stillman
2d47daf684 Fix for cursor being reset to beginning while editing notes 2010-08-30 20:54:25 +00:00
Dan Stillman
43a6d5190b Fix a couple JS strict warnings 2010-08-30 19:18:33 +00:00
Dan Stillman
6ba90d53b3 Missing semicolon 2010-08-30 18:39:04 +00:00
Dan Stillman
9c366a4bcb Clear Commons credentials on disable 2010-08-30 18:38:32 +00:00
Dan Stillman
a3108335f3 Fix importing of Commons settings, possibly 2010-08-30 18:28:52 +00:00
Dan Stillman
25d354d83d Advanced earches for exact creator names didn't match creators without first names 2010-08-30 00:46:38 +00:00
Dan Stillman
e17bffcdd4 Disable unresponsive script warning during translator initialization, since subsequent runs should be much quicker due to cache
(Change is just an indent, despite messiness of diff)
2010-08-29 18:45:59 +00:00
Dan Stillman
80f5047687 Commons:
- Reload bucket on bucket click if not loaded in the last 60 seconds
- Add "Show Original" button to Commons metadata pane to switch back to original linked item, if it exists
- Hide metadata pane tabs in Commons view
- Add support for setting credentials via zotero.org (untested, and not yet stored in Fx login manager)

Also:

- Add ZoteroPane.getItemGroup() function
2010-08-29 04:14:05 +00:00
Dan Stillman
c97491821f Don't include deleted items in "Export Library" output 2010-08-28 17:21:24 +00:00
Dan Stillman
0d9f45b0fa Fixes #1714, Adding by PMID doesn't work for groups 2010-08-28 17:00:43 +00:00
Dan Stillman
dbcc4408bc Fix FK constraint error (previously requiring a Full Sync to fix) that could occur if an attachment/note was added to a collection on one side and made a child item on the other 2010-08-27 19:27:08 +00:00
Dan Stillman
feca078284 Clarify comments 2010-08-27 19:21:01 +00:00
Dan Stillman
6a12bfd521 Remove obsolete line 2010-08-27 19:18:56 +00:00
Dan Stillman
fe6713b358 Fix CSS parsing errors (which possibly meant the affected rules aren't necessary) 2010-08-27 19:16:29 +00:00
Dan Stillman
476a5b385d Fix JS strict warning 2010-08-27 19:11:13 +00:00
Dan Stillman
e437ecce6b Fix JS strict errors 2010-08-27 19:10:06 +00:00
Dan Stillman
053b6dace3 Fix JS strict warning 2010-08-27 19:08:41 +00:00
Dan Stillman
6a629490b3 - Fix an XML parsing error (due to trailing whitespace, weirdly) that could cause endless sync icon spinning
- Remove extra whitespace in collection-item blocks that was causing sync upload errors (also fixed on the server)
2010-08-26 21:34:44 +00:00
Dan Stillman
4bc7ab9016 Add note that Commons processing could take a while 2010-08-26 06:32:24 +00:00
Dan Stillman
eec491fe7a Handle invalid filenames without failure during import
Export should be fixed to run exported filenames through getValidFileName()
2010-08-25 16:21:49 +00:00
Dan Stillman
e0c8e30161 - Include translator filename in error message on JSON parsing failure
- Recategorize Zotero.log() errors so they show up as chrome errors in Console2
2010-08-24 21:08:04 +00:00
Dan Stillman
f10da8c527 Don't die if /Users/Shared doesn't exist on OS X 2010-08-24 21:05:38 +00:00
Dan Stillman
b3aa705bfd Fixes #1713, Don't show Zotero Commons in Word Processor Plugins 2010-08-24 20:23:52 +00:00
Dan Stillman
23dae26408 Fix "JavaScript component threw a number as an exception" error (which is actually "Cannot move collection into one of its own descendents!") 2010-08-24 18:57:00 +00:00
Simon Kornblith
4d91ec8f8b fix refresh operation 2010-08-16 08:52:13 +00:00
Simon Kornblith
2f671725b8 disable caching of citeproc-js items (for now) 2010-08-16 08:48:55 +00:00
Simon Kornblith
64f810dd5a fix issues inserting new citations with locators with accented characters (citations will still need to be reinserted) 2010-08-16 08:46:07 +00:00
Simon Kornblith
09ff9ec083 fix upgrading of documents with non-page locatorType 2010-08-16 08:19:12 +00:00
Simon Kornblith
ecd6309fbc update to citeproc-js 1.0.52
closes #1709: [patch] citeproc-js 1.0.51 compatibility patch: makeBibliography() return value
closes #1712: [patch] citeproc-js 1.0.52 compatibility patch

From Frank's notes for 1.0.52:

In this release, the following change may require accomodation
within the calling application:

 The processor quashes double spaces in the output.
 RTF control words can be terminated with a space, but
 this causes an immediately following space to be lost
 from the output. To avoid this, the RTF output mode of
 the processor has been adjusted to terminate RTF control
 words with {} rather than space. Applications that convert
 processor output between other formats (such as HTML)
 may need to be adjusted to accomodate this new behavior.

Also in this release:

 Reverse the RTF-related conservatism in the quashing
 of duplicate spaces that was introduced in 1.0.51.

 Add missing parens to suspect test condition (not
 related to any known bug).

From Frank's notes for 1.0.51:

The API return value changes slightly with this version:

 For styles that have no bibliography element, the command
 makeBibliography() now returns false, rather than a
 stub bibliography object.  Code adjustments in the
 calling application may be required to accommodate
 this change in behavior.

 In other bibliography and citation returns, the processor
 now provides new arrays, bibliography_errors and
 citation_errors respectively, with information on
 bibliography entries or cites that produce no meaningful
 rendered output.  Details are in the processor manual:

   http://gsl-nagoya-u.net/http/pub/citeproc-doc.html#handling-items-with-no-rendered-form

Also in this release:

 Fix string breakage affecting text-case="title".

 Fix over-aggressive quashing of spaces, which affected
 spacing following RTF entities.
2010-08-16 08:07:07 +00:00
Dan Stillman
a94675f402 Add better message for error Kaspersky users have gotten 2010-08-09 06:37:01 +00:00
Dan Stillman
c17336291b Display better messages for NS_ERROR_FAILURE file sync errors 2010-08-09 06:24:06 +00:00
Dan Stillman
1a7629a589 Closes #1710, Clipboard citation copy w/Ctrl-Alt-A always Ibid.
Frank's patch
2010-08-09 01:55:50 +00:00
Dan Stillman
521ab94e35 Ignore any mention of CVE-2009-3555 in error messages 2010-08-06 17:52:33 +00:00
Dan Stillman
bbc8f7812c Add ability to create Zotero Commons buckets via the UI
- "zc-test-" is currently prepended to bucket names
2010-08-06 17:42:14 +00:00
Dan Stillman
6ea7e3dd65 Fix error in Related Items dialog 2010-08-02 21:32:11 +00:00
Simon Kornblith
253ab1e86a closes #1567, Fullscreen does not restore 2010-08-02 02:55:05 +00:00
Simon Kornblith
021cbc8725 closes #1285, Add typeof checks to data read from scraper sandbox
use XPCSafeJSObjectWrappers to enforce security of everything coming out of translators. this seems to work, but needs testing.
2010-08-02 02:26:46 +00:00
Simon Kornblith
dff5adf480 addresses #699, Reconcile Zotero item types with CSL schema
maps dictionaryEntry and encyclopediaArticle to entry-dictionary and entry-encyclopedia respectively (instead of chapter)
2010-08-01 23:11:38 +00:00
Simon Kornblith
63f346b504 closes #1609, Bibliography printing broken
this currently leaks a hidden browser object, since deleting it seems to cause the print command to fail. this may not be a big issue, since this feature is used so rarely anyways...
2010-08-01 20:34:29 +00:00
Simon Kornblith
fe37dc73e1 restore copyright notice to citeproc.js (accidentally removed in last commit) 2010-08-01 20:16:14 +00:00
Simon Kornblith
685338b41a update to citeproc-js 1.0.50
From Frank's announcements:

In 1.0.45:

 Fix duplicate terminal punctuation
 affecting bibliography output.

 Eliminate dereferencing assignments, for
 compatibility with some JS implementations.

 Suppress duplicate spaces affecting some
 styles.

In 1.0.46:

 Add option to updateItems() and updateUncitedItems()
 to suppress sorting of the bibliography.

In 1.0.47:

 Fix a duplicate space issue.

 General refactoring of code for identifying an quashing
 duplicate punctuation and spaces.  The code should be
 easier to control when further issues involving punctuation
 arise down the road.

 Provide for replacement of the citation number in
 numbered styles with a slug, so that strings in a
 bibliography listing can be used in a template
 without rerendering.  This is useful in some server-side
 applications.

In 1.0.48:

 Permit author to vary between parallel citations. Useful
 for French case-and-commentary string cites.

 Permit author to vary between parallel citations. Useful
 for French case-and-commentary string cites.

 Fix bug in short form title support.

 Further fixes to quashing of duplicate punctuation
 and spaces.

 Fix issues with bibliography slug.

 Provide for parsing experimental variables out of the
 content of the note variable.  For use in advance
 testing of styles that require changes to the variables
 available in CSL, or supplied by the calling application.

In 1.0.49:

 Extend support for "parallel" legal citations to include
 case and comment string citations used in French legal
 writing.

 Fix XML parsing code in xmldom.js to screen XML comments
 from the processor.  Thanks to Carles Pina for reporting
 this fault (relevant to non-Firefox, non-gecko browsers).

 Tighten up conditions for suppression of the trailing year
 where the volume number and the year have the same value.
 Suppression will no longer occur when the rendered date
 contains additional details (day, month).

 Throw a more meaningful error when an invalid locale
 is requested.  Thanks to Carles Pina.

 Fix missing definition of quotes="false" in formats.js.
 Thanks to Carles Pina.

 Fix bug in handling of capitalized characters used in
 citeproc-js hackaround for multi-character initials.

In 1.0.50:

 Apply output-mode-specific text_escape function to
 affixes and delimiters.

 Strip XML declaration from CSL and locale strings
 received for parsing in the xmldom.js module.

 Add paranoia fallback to handle comment nodes that
 sneak past the XML parser.
2010-08-01 20:14:51 +00:00
Simon Kornblith
8fe9c5e9e7 closes #1684, checkbox to temporarily disable proxy code
also adds a parameter to disable proxy redirection by domain (although if I had known how much work would be involved in implementing this before I started, I wouldn't have bothered)
2010-08-01 20:10:18 +00:00
Simon Kornblith
84fcd7d4b8 oops: there is no wrappedJSObject for collectionsView 2010-08-01 19:57:42 +00:00
Simon Kornblith
b285f6a7d4 closes #1705, [PATCH] Item cited in document not reselected when cite reopened for editing 2010-08-01 19:56:45 +00:00
Simon Kornblith
c9003f1f40 closes #1706, [PATCH] Item with non-ASCII characters corrupted on save when Show Editor is open
The problem here was that entities weren't properly being encoded as Unicode RTF when the editor was used, because TinyMCE was replacing high characters with HTML entities that were not properly decoded. This is now fixed.
2010-08-01 19:53:08 +00:00
Dan Stillman
c7f025519b Fixes #1696, Group item reported missing from Zotero library on next citation edit
Was breaking when libraryID!=groupID
2010-07-26 17:43:58 +00:00
Simon Kornblith
aec3c4381f closes #1699, Simplified _zoteroFieldMap for citeproc-js (thanks to Frank) 2010-07-26 01:01:18 +00:00
Simon Kornblith
e6a97b46b2 closes #1698, bookAuthor -> container-author CSL mapping (thanks to Frank) 2010-07-24 17:41:56 +00:00
Dan Stillman
d8db1cd61f Store a space in WebDAV lastsync file to work around a server issue where timestamp of an empty file isn't updated on PUT 2010-07-23 18:07:53 +00:00
Simon Kornblith
d022b966fe tweak date regexp to handle WTN8601 properly 2010-07-21 19:52:28 +00:00
Dan Stillman
0acaf22576 Fix Edit Bibliography window on trunk (related to Fx2/3 code removal) 2010-07-13 19:07:08 +00:00
Dan Stillman
ccae2e0b7c Fix error removing >1000 items from a tag (due to compiled SQLite limit) 2010-07-13 19:00:58 +00:00
Dan Stillman
0b83c8c166 Auto-empty trash items older than 30 days by default
- Warning needed on upgrade about this
- Controlled by trashAutoEmptyDays hidden pref, with 0 disabling the functionality
2010-07-13 18:33:47 +00:00
Dan Stillman
9dad2c6048 Commons:
- Use same character-stripping logic as IA when looking for RDF file
- Better handling of empty RDF files
2010-07-13 17:47:01 +00:00
Dan Stillman
2d0874dd66 Remove old Commons code 2010-07-12 17:45:22 +00:00
Dan Stillman
43c0ae9e8a Commons: Fix authentication issue involving files with semicolons or other extended chars, but more fixes are needed on IA side 2010-07-12 17:36:05 +00:00
Simon Kornblith
8068c17f8f closes #1689, When editing a citation, the reference is not selected if it does not exist in the currently selected collection within the Zotero pane 2010-07-12 11:24:29 +00:00
Simon Kornblith
3571b41d95 pick running copy of Word for Mac as AppleScript target 2010-07-12 10:46:25 +00:00
Simon Kornblith
3b0ee0285b add SID to generated openurl 0.1 URLs 2010-07-11 08:02:28 +00:00
Dan Stillman
395833b940 Restore setTimeout() call removed in previous commit 2010-07-09 20:48:10 +00:00
Dan Stillman
92383c7f20 Addresses #1037, Remove Firefox 2.0/3.0-specific code 2010-07-09 20:25:17 +00:00
Dan Stillman
84cf9d8cbe Closes #1037, Remove Firefox 2.0/3.0–specific code 2010-07-09 20:10:43 +00:00
Dan Stillman
973d2cd38c Fix version in newer DB version error message (trunk and branch) 2010-07-09 05:16:13 +00:00
Dan Stillman
00611dc288 Fix message for newer DB version error 2010-07-09 05:10:48 +00:00
Simon Kornblith
d592d3156e Fix translation in Fx4 2010-07-08 22:45:42 +00:00
Dan Stillman
f3a8cbd993 Switch back to multiple items per Zotero Commons bucket
- Creating buckets not yet supported
- Some now-unused single-item-per-bucket code still needs to be removed
- Child attachments are not displayed in Zotero Commons pane
- Manual refreshing via bucket right-click (or a Firefox restart) is currently necessary after adding items
- Double-clicking bucket takes you to bucket page; double-clicking item takes you to named anchor
2010-07-07 18:34:09 +00:00
Dan Stillman
7ce0e9ee23 Don't cache HTTP GET requests in Zotero.Utilities.HTTP.doGet() 2010-07-07 18:28:25 +00:00
Simon Kornblith
2e951139fe use contentLength parameter to determine length of updateCSL.xsl rather than hardcoding a limit 2010-07-06 18:43:15 +00:00
Simon Kornblith
ca0328729a addresses #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
fix up problems on first drag
2010-07-06 18:39:49 +00:00
Simon Kornblith
a857cb3e5b closes #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
caches updateCSL.xsl, since apparently doing an XHR to load it during drags was breaking things
2010-07-06 18:17:45 +00:00
Dan Stillman
77ecfce0fe Addresses #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
Frank's latest patch, but drag-and-drop is still broken for me on OS X. Need to see if this is just my working copy.
2010-07-06 17:42:41 +00:00
Dan Stillman
970c317095 Comment out init() call for Zotero.Connector, which hasn't yet been committed 2010-07-06 17:39:13 +00:00
Simon Kornblith
43c57ec18c closes #1688, Preferences window appears in wrong screen position on Windows 2010-07-06 10:37:16 +00:00
Simon Kornblith
35c44b7470 fix race condition 2010-07-06 10:11:25 +00:00
Simon Kornblith
139036490c a better way of getting the install directory in Fx4 2010-07-06 09:25:58 +00:00
Simon Kornblith
63e08cd714 addresses #1690, Modify all XPCOM components for Firefox 4.0b2+ 2010-07-06 09:02:35 +00:00
Simon Kornblith
59817af546 references #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
put a string in date.literal, instead of the whole date object, when passing to citeproc-js
2010-07-06 07:55:07 +00:00
Simon Kornblith
10cbc0ceeb don't stick an extra newline between all bibliography entries (changes to citeproc-js RTF formatter code) 2010-07-06 07:23:10 +00:00
Simon Kornblith
477d0effe0 call integration.cleanup() before attempting to display any dialogs 2010-07-06 06:53:45 +00:00
Simon Kornblith
13f0b1bfd2 closes #1493, Style/Font Behavior In WP Plugins
closes #1325, better integration with word-processor styles

WinWord plug-in update is still to come
2010-07-06 06:47:59 +00:00
Simon Kornblith
1b353fb2b2 Update to citeproc-js 1.0.44
From 1.0.39:
 Fix a tiny bug that could cause erroneous position values when
 previewing under some circumstances, resulting in an incorrect
 cite form in preview, and a different (although correct) cite form
 in the document.

From 1.0.40:
 Avoid update to position data of other citations during
 previewing.  On-the-fly updates of related citations upon
 citation edit or insert following preview were broken, but
 should now work correctly.

From 1.0.41:
 Reset processor's internal last_name_rendered variable,
 to prevent previous runs of the processor from affecting
 bibliography output.

From 1.0.42:
 Provisional implementation of ellipsis truncation for
 creator listings as required by APA 6th, in anticipation
 of upcoming point release of CSL schema and specification.

From 1.0.43:
 In test.py, change the -E bundled code dump option to -Z,
 and describe as a Zotero bundle option in script help messages.

 Include an assignment of CSL.error to Zotero.debug in the Zotero
 bundle, so that error messages and warnings from the processor will
 pass through correctly, without crashing the processor.

 Render literal passthrough strings on date objects only when
 the year is included among the requested date elements.

 Add temporary code to normalize the structure of some date
 input objects.

 (... and so we bid a sad farewell to the Meaning of Life
 release.)

From 1.0.44:
 According to the CSL specification, group elements implicitly
 suppress output of term= and value= text elements, if at least
 one element (text, number, names or date) with a variable=
 attribute is in the group, and no such element will produce
 output.  This provides a flexible  and concise syntax for
 attaching customized labels to rendered elements.  An earlier
 version of citeproc-js always rendered empty dates as the short
 form of the "no date" term ("n.d.").  Experience showed this was
 undesirable, and the behavior was withdrawn.  However, the
 code that reported date elements as always producing output
 lingered on, and it was the cause of incorrect output in recent
 testing.  This has been corrected in this release.

 This release also correctly reports dates with only a literal (non-
 parsed) form as non-empty to the same implicit conditional
 code in an enclosing group element.
2010-07-06 04:29:55 +00:00
Dan Stillman
34800ec810 Don't show context menu for source pane headers (e.g., "Group Libraries") 2010-07-03 20:14:30 +00:00
Dan Stillman
37e1245aaf Closes #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API
Thanks to Frank for the patch
2010-07-02 06:09:46 +00:00
Dan Stillman
953fa4a660 Closes #1687, Append reporter name to title in UI for law cases
Slightly modified verison of Frank's patch
2010-06-30 06:10:15 +00:00
Simon Kornblith
5649e26ec2 closes #1686, Set selected item titles with getDisplayTitle() (thanks to Frank) 2010-06-30 05:34:48 +00:00
Simon Kornblith
aa19d412c1 don't kill Zotero if for whatever reason deleting the integration pipe fails 2010-06-30 03:35:36 +00:00
Simon Kornblith
2d92f3776e pass "false" and not null to nsIProcess.run (not that it seems to make any difference) 2010-06-30 03:25:54 +00:00
Simon Kornblith
f11986ce04 - offer to remove Zotero integration pipe owned by root
- locale updates for this patch and r6207
2010-06-30 03:24:14 +00:00
Dan Stillman
1d08b9ec31 Remove debug output 2010-06-29 16:54:30 +00:00
Simon Kornblith
09416a5738 closes #992, COinS should have an appropriate rfr_id to identify what program was used to generate the span 2010-06-29 07:03:30 +00:00
Simon Kornblith
23f21bac56 fix formatting from previous patch 2010-06-29 06:43:39 +00:00
Simon Kornblith
78d46dc0f0 closes #1680, Allow repeat use of item in a citation (patch due entirely to Frank)
see notes at referenced ticket for information re: modifications in behavior
2010-06-29 06:34:20 +00:00
Dan Stillman
40b6ed19f8 Remove debug line 2010-06-29 06:07:06 +00:00
Dan Stillman
ae65267d5d Use DB cache and new translators.index file in XPIs to skip unnecessary translator extraction on upgrades 2010-06-29 06:04:04 +00:00
Simon Kornblith
0876e689c8 remove the option to disable proxy detection from the proxy dialog, since it makes less sense now 2010-06-29 05:28:13 +00:00
Simon Kornblith
79f5204050 remove some debug code from the last patch 2010-06-29 05:27:32 +00:00
Simon Kornblith
9914eee1f1 closes #1685, notificationbox warnings for proxy 2010-06-29 05:25:41 +00:00
Simon Kornblith
8f1298f45b closes #1683, Fix small typo that blocks style install
thanks Frank!
2010-06-28 19:42:48 +00:00
Simon Kornblith
ee8c60939a open a transaction for translatorCache updates 2010-06-28 16:54:06 +00:00
Simon Kornblith
b87b46aa95 Update to citeproc-js 1.0.38
From Frank's announcement:

 Fix appendCitationCluster() to work with the API revision
 made to processCitationCluster() in point release 1.0.28.

 When user provides a cite suffix that ends with a full stop,
 suppress the normal inter-cite join.
2010-06-28 09:31:35 +00:00
Simon Kornblith
bddb583e43 - cache translators in DB to reduce startup times on Windows
- fix some error handling in translate.js
2010-06-28 09:07:44 +00:00
Simon Kornblith
903d37c434 update to citeproc-js 1.0.37
From Frank's announcement:

 Quash duplicate terminal punctuation at the end of citations.
 This can happen where an abbreviated term such as id. or
 ibid. is rendered at the end of a citation in a note style,
 in which the note is terminated with a period.

 Eliminate implicit for loops in array constructs, which is
 sadly not available in Chromium JS engine.
2010-06-28 02:47:46 +00:00
Simon Kornblith
05583b1992 closes #1099, Add cancel button to Edit Bibliography
closes #744, Select multiple items/entire collection in edit bibliography dialog

- adds "Cancel", "Revert", and "Revert All" buttons to edit bibliography dialog
- permits multiple item selections in edit bibliography dialog
- removing items in the edit bibliography dialog now leaves the citations intact, but removes them from the document
2010-06-28 02:38:48 +00:00
Simon Kornblith
68c4a47bf3 - don't automatically associate .edu sites (except Project MUSE)
- if a docShell has allowMetaRedirects turned off (as is the case in our hidden browsers), don't proxy
2010-06-25 21:29:22 +00:00
Simon Kornblith
afd758f509 support additional parameters in integration pipe
(these are not urgent, and i don't actually plan on using them at the present, but they might be a good idea)
2010-06-24 09:54:46 +00:00
Simon Kornblith
8e7d467ddf automatic smart quotes when saving from editor 2010-06-22 05:52:57 +00:00
Simon Kornblith
18025da6a3 remove debug code 2010-06-20 19:13:20 +00:00
Simon Kornblith
303f980954 Fix for "The command is not available because no document is open" error (part 2) 2010-06-20 10:48:38 +00:00
Simon Kornblith
4556ea3f10 fixes #1668, Items added in multiple mode not recognized unless visible (twice)
fix Accept button issue by using getAttribute() rather than id property, but also scroll to newly inserted citation, since it's probably the desirable behavior
2010-06-18 18:19:52 +00:00
Simon Kornblith
13ae25e445 Commit citeproc-js 1.0.36
From Frank's announcement:

 Refresh citations in which names or year suffixes have
 (potentially) changed.
2010-06-18 05:31:03 +00:00
Simon Kornblith
d73b6f1171 - commit citeproc-js 1.0.35
From Frank's announcement:
 Simplify save/restore operations for previewing.

 Tie in tainting code for disambig values registered via disambig_cites.js.
 Possibly over-aggressive about rerendering now, but it works.

In quick initial testing, at least, this release appears to be eerily stable in Zotero.
2010-06-17 17:30:06 +00:00
Simon Kornblith
112b6d22e8 closes #1598, Possible to click Insert Citation twice
When the user attempts to access Integration functionality while a request is still in progress, we now bring Firefox/Zotero to the foreground.
2010-06-17 06:38:03 +00:00
Simon Kornblith
6d4d953859 - Update to citeproc-js 1.0.34
From Frank's 1.0.31 announcement:

 Extensions to the test fixtures for previewCitationCluster(),
 which revealed shortcomings in the name state restoration
 code.

 Properly restore name state in previewCitationCluster().

 Roll back previewCitationClusterStatic() command that
 was introduced in the last (unannounced) 1.0.30 release.
 Discussion and more careful thought showed that it is not
 safe and not generally a good idea to make blind assumptions
 about document state.

From Frank's 1.0.33 announcement:

 In preview mode, avoid tampering with the registry data,
 of items in the citation to be previewed that already
 exist in the registry.  Fixes errors in subsequent
 rendering of year suffixes.

 Suppress redundant return value for current cite, when it is
 tainted by an update by processCitationCluster().

From Frank's 1.0.34 announcement:

 Include year suffix in clone of disambiguation
 configuration.  Failure to include this parameter
 appears to have been behind some intermittent
 glitches in preview handling of year suffixed
 citations.

 Avoid processor crash when unregistered citation
 objects are encountered in preview mode.  The crash
 points occur during tainting, which is irrelevant
 in preview mode, so no harm is done; but I'm not
 really sure why this would ever happen.  Possibly
 specific to the Zotero version used for testing.

 Add a couple of paranoia operations to processCitationCluster():

   Issue a bogus warning citation in the event of a processor
   crash.  This should come out for production.

   Slice citationsPre and citationsPost when they enter
   the processor.  I've been exploring some instability
   with large numbers of same-author/same-year cites in
   Zotero, and thought that mallability of list input
   might be part of the problem.  No idea whether these
   lists can or do change length or content during processing,
   but just in case.
2010-06-17 05:42:00 +00:00
Simon Kornblith
13a3524f0c closes #1665, Single cursor position in addCitation dialog (thanks Frank!) 2010-06-13 23:22:34 +00:00
Simon Kornblith
1da48cf8d2 - implement previewCitationCluster(), restoreProcessorState(), new "bibchange" flag in processCitationCluster() output, and new opt.sort_citations flag in word processor integration
- upgrade to citeproc-js 1.0.29

From Frank's 1.0.25 announcement:

 Provide new command, previewCitationCluster(), that returns
 string for hypothetical citation at specified position,
 without affecting processor state.

 Fix bug that would have cause appendCitationCluster() to
 run updateItems() unnecessarily.

 Provide for forced generation of citationID, for internal use
 in previewing.

From Frank's 1.0.26 announcement:

 Implement new command restoreProcessorState(), for use in,
 er, restoring the processor state, when position variables
 and citation sort keys are already known.

From Frank's 1.0.27 announcement:

 This fixes a couple of obvious problems in the code of the new
 restoreProcessorState() command.

From Frank's 1.0.28 announcement:

 This version introduces a significant change to the return
 value of processCitationCluster().  It is now an array with
 two elements, the first being a JS object that serves as a
 data segment, and the second the list of two-element arrays
 representing insertion indexes and strings for insertion
 (as previously documented).  An API change of this scale
 probably calls for some more visible sign in the version
 numbering, but the original statement on versioning says
 that the major and minor numbers will align with the CSL
 schema, so we stay at level 1.0.

 The data segment referred to above contains just one element
 currently, "bibchange", which is true if processing the
 citation results in any change affecting the bibliography.

 This release also introduces one change and one addition to
 style configuration flags.  The flag at citation.opt["citation-number-sort"]
 has been moved to opt.citation_number_sort, for clarity and
 consistency.  A new flag, opt.sort_citations, is true if
 citations are sorted by the style in any way.

From Frank's 1.0.29 announcement:

 Complete reimplementation of cite-level disambiguation.
 The new code is more compact and maintainable, and
 avoids thrashing behavior that afflicted the previous
 code when a large number of cites required both
 add-names and year-suffix disambiguation.

 Suppress year suffix when fresh ambig keys are generated.
 Inserts by a plugin affecting year suffixes should now be
 correctly handled.
2010-06-13 22:53:57 +00:00
Simon Kornblith
25f3b150e4 - update to citeproc-js 1.0.24
From Frank's 1.0.23 announcement:
 Cope with two disambiguation cases, involving add-names and
 add-givenname, that succeeded in crashing the processor.

From Frank's 1.0.24 announcement:
 Cope with item IDs of numeric type, and roll back
 one patch from 1.0.23 that becomes unnecessary as
 a result.

Together, these updates fix several issues with citation previewing.
2010-06-06 06:46:10 +00:00
Simon Kornblith
d0441d334e commit Rintze's changes to translate.js for Scaffold compatibility 2010-06-06 03:11:24 +00:00
Simon Kornblith
546641aa44 closes #1055, Refine tab order in Word plugin 2010-06-06 01:37:10 +00:00
Simon Kornblith
15977ba5b1 allow selecting first list item after clicking "Multiple Citations..." button (don't know why this didn't work, and don't know why this fixes it) 2010-06-06 01:25:34 +00:00
Simon Kornblith
5284da05af - return "Keep Citations Sorted" checkbox
- update to citeproc-js 1.0.22
From Frank's announcement:

- Bypass sorting of citations that have a value for "unsorted"
 in citation.properties.

This permits per-citation override of style-driven citation sorts, as
supported by Zotero and required for some common use cases.
2010-06-06 00:57:47 +00:00
Simon Kornblith
75374af5af - add Frank's citation re-ordering patch, with a few changes
- fix error when canceling citation add after editing
2010-06-06 00:01:11 +00:00
Simon Kornblith
35e097b664 unedited citations should not have a "custom" attribute 2010-06-05 17:58:20 +00:00
Simon Kornblith
f0f22009c4 - fix (most) unnecessary citation update issues
- switch Zotero.JSON to native Firefox JSON support
- update to citeproc-js 1.0.21

From Frank's announcement:
In this release:

- Tighten up internal "NUMERIC" update_mode to mean styles that render
citation-number in citations (renderings in the bibliography are now
ignored for purposes of setting this flag).

- The numeric styles fix introduced at version 1.0.17 broke with
styles that sort the bibliography on anything other than citation-
number (i.e. document first-reference order).  With this release,
arbitrary sorts of the bibliography work with numeric styles.

- Position evaluation code is now invoked only in styles that make use
of position testing (to save a few cycles).

- Numeric styles now perform targetted citation updates correctly.
2010-06-05 17:49:04 +00:00
Simon Kornblith
e44dcb1bb4 fix excessive processCitationCluster calls 2010-06-03 22:30:32 +00:00
Simon Kornblith
0726ace6e9 add CSL files to our repository, rather than using svn:externals, to fix XPI build errors on the server 2010-06-03 03:55:42 +00:00
Simon Kornblith
69a962be90 return false when a locales file cannot be found, instead of throwing an error 2010-06-03 03:09:10 +00:00
Simon Kornblith
7b062f3b15 - update to citeproc-js 1.0.20
From Frank's announcement:
This release adds some further fine-tuning to disambiguation, and now
retains all names added by disambiguate-add-names when a year-suffix
is added to a cite.  Also fixes a bug affecting cites containing lone
institutional authors.

- hopefully fix issues with loading locales from the XPI
2010-06-03 02:56:29 +00:00
Simon Kornblith
6086f4571d alphabetize about box properly 2010-06-01 18:33:07 +00:00
Simon Kornblith
3fa9305a74 - dual column about box
- add attribution for Tabulator and py-appscript
2010-06-01 18:31:53 +00:00
Simon Kornblith
1ef2c3409c -Update to citeproc-js 1.0.19
From Frank's announcement:
This release allows use of the code under either the current CPAL
license, or under the AGPLv3, at the option of the developer or
project integrating the code.

- Change link to xbiblio to CitationStyles.org and add attribution for citeproc-js
2010-06-01 18:07:03 +00:00
Simon Kornblith
0aee953bf6 Update to citeproc-js 1.0.18
From Frank's announcement:
This release fixes a small issue in disambiguation, which could cause
initials or full given names to be retained where they are not
necessary to achieve disambiguation, under certain fairly rare
conditions.

This also includes a very small change to the regexp used to identify
numeric content in numeric fields, support for RTF and plain text
output (courtesy of Simon), and a modification to the ./test.py
script, adding a -E option that dumps a version of the processor with
embedded E4X support, suitable for drop-in inclusion in current Zotero
2.1.
2010-06-01 06:47:02 +00:00
Simon Kornblith
97d5483f80 integrate citeproc-js 1.0.17; should fix IEEE issues 2010-05-31 21:25:56 +00:00
Simon Kornblith
d121f5f150 eliminate unnecessary updateItems() calls, fix changing citations in a document, and several other bug fixes
issues with IEEE remain
2010-05-30 19:06:41 +00:00
Simon Kornblith
3f934828d0 fix typo 2010-05-30 12:43:26 +00:00
Simon Kornblith
dcdef746e5 automatically apply XSLT to convert CSL 0.8 styles to CSL 1.0 styles on the fly
do we want to re-save the converted files over the old ones?
2010-05-30 12:39:48 +00:00
Simon Kornblith
4fed717f05 temporarily remove locales 2010-05-30 12:13:40 +00:00
Simon Kornblith
bd0a4a3b96 Use citeproc-js as CSL parser. There is an issue with multiple citations in numbered styles that I will probably need Frank's help to track down, but otherwise, this seems to work. Many things are completely untested, including EndNote style support. Currently requires CSL 1.0 styles. In the near future, I hope to use the XSLT stylesheet to transform CSL 0.8 to CSL 1.0.
closes #1650: suppress author does not work for multiple sources
closes #1505: Edit Biblography Button Strips Year Disambiguation
closes #1503: Editing a bibliography resets all reference numbers to 1 (new)
closes #1262: Broken pluralization with et al. + other issues
closes #1238: Localize quotation marks
closes #1191: Harmonize 'plural/pluralize' label attribute with CSL schema
closes #1154: Only one works page numbers are added to the citation are when citing multiple works by the same author
closes #1097: Disambiguation issues
closes #1083: Defect in IEEE CSL with Multiple Citations
closes #993: more sophisticated subsequent-author-substitute
closes #833: text-transform doesn't work with name
2010-05-30 11:25:25 +00:00
Dan Stillman
3adb9c8391 Fix NS_ERROR_XPC_NOT_ENOUGH_ARGS when reading blob from database (which currently can happen only in the case of bad data) 2010-05-13 07:42:28 +00:00
Dan Stillman
0821e34b20 WebDAV server SSL error wasn't being properly displayed 2010-05-11 19:49:22 +00:00
Dan Stillman
e7ba86216e Fix startup error due to incorrect integration pipe permissions 2010-05-10 21:13:52 +00:00
Dan Stillman
c83d64ad0d Fix constant syncing due to future-dated items 2010-05-05 18:07:01 +00:00
Dan Stillman
d39957fa56 Blacklist "potentially vulnerable to CVE-2009-3555" error in error reports 2010-05-05 16:07:34 +00:00
Dan Stillman
4c46d9aa23 Add auto-complete to Archive field 2010-05-04 16:28:22 +00:00
Dan Stillman
268f37194f Always show last sync time if available in sync button tooltip -- this should make it clearer when one sync has stopped and another has started 2010-05-01 05:46:01 +00:00
Dan Stillman
9ac6d090cc Allow accessDate to be set explicitly false for web translators 2010-04-29 21:53:03 +00:00
Dan Stillman
6609df1ddd Remove Zotero.wait() from r5996, because it can break Z pane opening at startup, which is presumably why this wasn't there already 2010-04-28 23:07:51 +00:00
Dan Stillman
b1c3a10f61 Revert translator JSON length limit, since some are at least 2.5K 2010-04-28 22:00:48 +00:00
Dan Stillman
c558111269 - Add a Zotero.wait() to translator caching, which I may or may not have tried before and which may or may not improve Firefox responsiveness during translator caching
- Only check first 1024 chars of translator file for JSON

Not going on the 2.0 branch
2010-04-28 20:43:06 +00:00
Dan Stillman
14b62e27e2 Missed file from previous commit 2010-04-27 08:04:15 +00:00
Dan Stillman
453fed88bd Zotero Commons updates:
- Store one item per IA bucket, with attachments stored as objects
- Use proper mediatype field based on Zotero item type
- Commons list is now pulled dynamically based on RDF stored at IA, without need for corresponding local item (which may have been deleted, etc.)
- Once available, OCRed PDFs can be pulled down by right-clicking on Commons and selecting Refresh
- Downloaded OCRed PDFs are now named the same as the existing attachment, with "(OCR)" appended
- The relations table is used to link downloaded OCRed PDFs to the IA file, so the downloaded file can be renamed without triggering another download
- The Commons view is marked for automatic refresh after an item is uploaded
- Added some progress notifications, though more are probably needed
- Other things

Also:

- Added Zotero.File.getBinaryContents(file)
- Erase an item's relations when the item is deleted, and purge orphaned ones
- Zotero.URI.eraseByPathPrefix(prefix) no longer prepends 'http://zotero.org' (which has been moved to Zotero.URI.defaultPrefix)
- New function Zotero.URI.eraseByURI(prefix)

Known Issues:

- Slow (some IA changes should be able to speed it up)
- Identifier format is likely temporary
- Sometimes it stops during setTimeout() calls for no apparent reason whatsoever
- Didn't test items with multiple attachments
- Not sure if Commons view will auto-refresh if you switch to it before the upload is done
- IA translator not yet updated
- Deleting items not supported by IA
- Date Added/Date Modified don't show up properly in Zotero for Commons items
2010-04-27 08:03:08 +00:00
Dan Stillman
a678cfa5b9 Add |max| parameter to Zotero.ID.getBigInt() 2010-04-27 07:29:03 +00:00
Dan Stillman
a2311bd52f Turn "Zotero.DB.transactionDate retrieved with no transaction" in Zotero.DB into debug output rather than a logged error 2010-04-27 07:28:30 +00:00
Dan Stillman
80aa50276e Correct parameter order in comment for Zotero.Utilities.arrayDiff() 2010-04-27 07:24:09 +00:00
Dan Stillman
eaff9519a7 Avoid some errors in debug output in report generation 2010-04-12 19:42:24 +00:00
Dan Stillman
715584dca1 Show only collections and saved searches from current library when creating a saved search 2010-04-12 15:33:14 +00:00
Dan Stillman
3014263c89 Fix a couple issues that could cause an error when emptying the trash 2010-04-10 20:22:21 +00:00
Dan Stillman
e17bdd85e9 Open support/documentation link in new tab rather than new window 2010-04-09 16:47:58 +00:00
Dan Stillman
bd7ff9c2c6 Fix upgrade error for custom styles with invalid ids 2010-04-01 18:01:11 +00:00
Dan Stillman
b31e47c504 Zotero Commons updates:
- Fixed syncing buckets from IA
- Moved XMLHTTPRequest send() and sendAsBinary() into _createAuthenticatedRequest() to avoid manual req.readyState checking and provide better debug output
- Show error message if no parent items were dragged into bucket
- Better alerts and debug output for problems
- Removed '_' prefix from non-private methods and properties
- A few other small tweaks
- More coming
2010-03-31 08:59:28 +00:00
Fred Gibbs
9212fbacf3 enable refresh and remove Commons buckets 2010-03-29 03:49:28 +00:00
Fred Gibbs
a5eba7fb38 enable refresh and remove Commons buckets 2010-03-29 03:49:07 +00:00
Fred Gibbs
8488d200c7 enable item delete, uploading RDF and ZIP files, fetch OCR'd PDFs, respecify metadata 2010-03-29 03:47:04 +00:00
Fred Gibbs
b633588fe2 delete items from Zotero Commons 2010-03-29 03:44:53 +00:00
Fred Gibbs
44999580e6 refresh Zotero Commons buckets 2010-03-29 03:44:26 +00:00
Simon Kornblith
99690742f9 support for standalone Zotero 2010-03-28 07:21:17 +00:00
Dan Stillman
7fde1766f2 Fix extreme edge case "constraint failed" upgrade error 2010-03-24 09:59:52 +00:00
Dan Stillman
fece9cf2ce - Hide error from progress window when saving from translators
- Don't open page twice when clicking link from progress window
2010-03-23 19:40:31 +00:00
Dan Stillman
a615571caa Fix startup error from previous commit 2010-03-23 19:09:47 +00:00
Dan Stillman
30e38a1b24 Switch to what could plausibly be a more efficient translator initialization method, though it doesn't appear to make any difference -- but this is where the unresponsive script warning was appearing. I suspect the actual problem has to do with disk caching, since I've gotten the warning to appear only by deleting 'translators' to trigger translator installation, after which translator caching takes at least 10 times longer on Windows.
(Also reordered some code to reduce indents)
2010-03-22 07:01:32 +00:00
Dan Stillman
91956462e5 Fixes #1635, UI glitches during syncing
New property Zotero.suppressUIUpdates is now set while processing sync data
2010-03-18 07:06:38 +00:00
Dan Stillman
a025a2d46a - Replace "Report Error" with "Show File" in read-only file sync error dialog, and show full file path
- Fix endless sync icon spinning after read-only file sync error
- Adjust spacing of sync error icon on Windows
2010-03-17 07:59:43 +00:00
Dan Stillman
82e3cfd288 Disable Reset feedback, since it causes endless sync icon spinning if the pref window is closed 2010-03-17 07:55:36 +00:00
Dan Stillman
5e1c1bd5b3 Remove Zotero.wait() from previous commit 2010-03-16 23:57:26 +00:00
Dan Stillman
3bb221b5e3 Add Zotero.wait() to file size calculation during sync to attempt to avoid unresponsive script warning 2010-03-16 22:45:43 +00:00
Dan Stillman
65f493471f Work around an SQLite limit that can cause a 1.0->2.0 upgrade error in very rare cases (in code from July 2008) 2010-03-15 07:16:05 +00:00
Dan Stillman
14aaf2aa8b Data directory changing required two restarts in Firefox 3.6 on Windows 2010-03-12 22:05:18 +00:00
Dan Stillman
2e76f0128d - Restart sync if items were changed during upload to avoid 404 file sync errors
- Show sync status in all windows
- Don't attempt to auto-sync on Zotero pane open if a sync is already in progress
- Fix some sync process callbacks
2010-03-12 08:29:31 +00:00
Dan Stillman
62a83e38ec Don't prompt for master password on every startup (since 2.0.1) 2010-03-12 05:28:11 +00:00
Dan Stillman
097d2b54c9 Rephrase conflict warning 2010-03-11 17:25:37 +00:00
Dan Stillman
c174f07517 Update localizer names 2010-03-10 20:49:26 +00:00
Dan Stillman
282655e41a Parse spaces and em dashes in page ranges 2010-03-10 05:35:49 +00:00
Dan Stillman
c60cb6f76b Fix another place where incorrect mod time could be read in 2010-03-09 16:00:08 +00:00
Dan Stillman
1279ccf9f6 Fix restoration of full-screen mode when opening Zotero pane (does not persist across Firefox restarts) 2010-03-09 06:26:08 +00:00
Dan Stillman
e1349ec308 Reindex search condition ids on search load in case they're not contiguous (fixes sync error) 2010-03-09 06:07:45 +00:00
Dan Stillman
f74760b8ad Interpret file mod times below 1 as 1 2010-03-09 05:43:23 +00:00
Dan Stillman
905c754b6b Stop sync icon spinning on reset completion 2010-03-07 08:57:40 +00:00
Dan Stillman
0e80fb29c4 Add "Please try again in a few minutes." to empty and invalid server response messages 2010-03-05 08:26:15 +00:00
Simon Kornblith
88ba3bf75b put integration pipe in /Users/Shared on OS X for users accessing their home directory over AFP 2010-03-02 21:54:53 +00:00
Dan Stillman
92f0cdd1af Restore proper feedback for Reset options and add a warning to Restore to Server that there may be a delay before data shows up online 2010-03-01 20:01:46 +00:00
Dan Stillman
ab1983ebf2 - Better sync error message for Firefox offline mode
- Better sync error message for "Sync already running in Zotero.Sync.Runner.sync()"
- Remove "Report Error..." button for manual intervention message
2010-03-01 20:00:34 +00:00
Elena Razlogova
5586eae237 Adds submitted to CSL date variables 2010-02-25 05:38:19 +00:00
Dan Stillman
0fc3252895 Closes #1637, Load "Start" page on upgrade
Show start page when first run pref is on and either the DB was just initialized or there's no username and password in the Sync pane
2010-02-24 21:07:23 +00:00
Dan Stillman
ef4a1f9cb7 - Display proper message for "(NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.lastModifiedTime]", and add additional detail to message text 2010-02-24 10:47:24 +00:00
Simon Kornblith
f207c7d1de add support for container-author (bookAuthor) 2010-02-17 00:41:57 +00:00
Simon Kornblith
9658387de9 add cancel button to doc prefs 2010-02-17 00:33:40 +00:00
Simon Kornblith
93c6c6ab2a more proxy looping avoidance code 2010-02-17 00:30:51 +00:00
Dan Stillman
aeb3cf5464 Fix "fileName.replace is not a function" WebDAV file sync error 2010-02-13 20:18:45 +00:00
Dan Stillman
e3df930ca5 Make "Verify Server" fail if WebDAV server won't serve extensionless file (IIS 6 (and later?) in default configuration according to http://support.microsoft.com/kb/326965 and various forum reports) 2010-02-13 10:10:24 +00:00
Dan Stillman
ca31a18159 Auto-correct most (if not all) cases of "Unexpected status 404 in Zotero.Sync.Storage.Session.ZFS._getFileUploadParameters()" 2010-02-13 09:45:29 +00:00
Dan Stillman
cabdd4977d Rephrase file sync error messages 2010-02-12 21:01:42 +00:00
Dan Stillman
b0420e347a Make errors updating translators and styles on upgrade non-fatal 2010-02-12 09:34:37 +00:00
Dan Stillman
8a5e17610c If mod time doesn't match but hash does, update file mod time to match synced time, since otherwise Zotero will compute the hash each time 2010-02-12 09:17:09 +00:00
Dan Stillman
4e9f05a183 Restore autocomplete for "Library Catalog" (formerly "Repository") 2010-02-10 20:10:45 +00:00
Dan Stillman
61e9ace79e Display a clearer error message attempting to import an unsupported file format, with a button pointing to http://zotero.org/support/kb/importing 2010-02-08 18:00:09 +00:00
Dan Stillman
50e100ec82 Stored files with '%' in filename couldn't be found on Windows -- now, on all platforms, filter imported filename (after first trying to URL decode, just to be nice) 2010-02-08 17:56:43 +00:00
Simon Kornblith
7f70af0c1f patches to RDF support 2010-02-06 23:39:28 +00:00
Dan Stillman
54c0b40870 Throw error on invalid 200 response to HEAD request, which you might argue shouldn't be possible 2010-02-06 16:36:02 +00:00
Dan Stillman
c44b7a5c14 Remove extra debug line that's getting in the way 2010-02-06 15:39:21 +00:00
Dan Stillman
78a514c29e Add a more helpful message for login errors on background syncs 2010-02-06 04:21:14 +00:00
Dan Stillman
24cc9880ae Strip quotation marks from lines sent to Google Scholar for metadata retrieval so they don't mess up query quoting 2010-02-06 01:46:52 +00:00
Dan Stillman
5494c6d0c5 Clarify logged WebDAV error messages 2010-02-05 13:05:20 +00:00
Dan Stillman
f3ba225f6f Second part of numeric-leading-zeros fix 2010-02-04 23:44:04 +00:00
Dan Stillman
9b4eb42c29 Auto-reset in case of unhandled delete conflict 2010-02-04 14:39:40 +00:00
Dan Stillman
0750f49bb0 Fixes #1402, Day-formatting doesn't respect CSL's "numeric-leading-zeros"-parameter 2010-02-04 14:23:35 +00:00
Dan Stillman
2cc2178064 Change saved search condition 'repository' to 'libraryCatalog' for people who don't update sync 2010-02-04 13:13:18 +00:00
Dan Stillman
e651d03804 Fix "Invalid field 'repository' in ItemFields.isBaseField()" error for people with Repository column selected in middle pane 2010-02-04 11:18:38 +00:00
Dan Stillman
8f0bc38da3 - Use a different sync error icon for version cut-offs
- Use full sync error for icon tooltip
2010-02-04 04:45:29 +00:00
Dan Stillman
40222ebf93 Remove sync/storage debugging options from Actions menu 2010-02-04 02:54:16 +00:00
Dan Stillman
ee57f38e49 - Fix "ItemID not set for object before attempting to load data" conflict resolution error
- Probably fix "getFileName() can only be called on attachment items in Zotero.Item.getFilename()" conflict resolution error
2010-02-04 01:48:00 +00:00
Dan Stillman
ad2122a0cd Display nicer file sync error messages hiding technical details and suggesting retrying of the sync -- this should reduce unnecessary error reports for intermittent errors (e.g., network glitches) 2010-02-03 11:38:51 +00:00
Dan Stillman
4adc606c48 Add warning to citation/bibliography editor 2010-02-03 05:50:43 +00:00
Dan Stillman
b6af89309d Missed file from r5699 2010-02-03 04:53:56 +00:00
Dan Stillman
a2d9dbba83 Closes #853, repository field should contain only data on actual archives, not online databases
- Renamed 'Repository' to 'Library Catalog' and added 'Archive'
- Moved 'Repository' data to 'Archive' for item types other than books, periodicals, and theses
- Mapped 'Archive' to CSL 'archive'
2010-02-03 04:50:45 +00:00
Dan Stillman
6105b40add Missing file from earlier commit 2010-02-03 04:44:05 +00:00
Dan Stillman
4c30e6738f - Use millisecond resolution for file sync timestamps (fixes problem with slow sync initialization on some systems)
- Fix errors syncing files with filenames containing extended characters

This will not sync with the server until a server update is pushed.
2010-02-03 04:43:20 +00:00
Dan Stillman
673a22430b Locale update from BZ 2010-02-03 03:04:40 +00:00
Dan Stillman
1f34147550 For the moment, add CSL locale files to our repo directly, since they were removed on SourceForge 2010-02-02 21:47:14 +00:00
Dan Stillman
7d8700698b - Increase toolbar icon spacing on Windows
- Increase item pane tab padding on Windows
2010-02-02 21:31:19 +00:00
Dan Stillman
d049d8db83 Unbind Backspace from collection delete on Windows/Linux 2010-02-02 20:37:04 +00:00
Dan Stillman
c22b063d1d Display helpful error when trying to sync files with invalid characters in their filenames 2010-02-02 13:00:21 +00:00
Dan Stillman
e8e03f9e62 Remove redundant cancel icon in tag selector search box in Fx3.5+ 2010-02-02 10:31:29 +00:00
Dan Stillman
48087132d8 For inter-library drag to a collection, if a linked item already exists in the library, add the linked item to the collection rather than skipping the item 2010-02-02 10:07:30 +00:00
Dan Stillman
630d55ae71 - Prompt for PDF tools installation if necessary when attempting to reindex PDF
- Display "Reindex Item" icon even if PDF tools aren't installed (including for non-PDF attachments)
- Display file modification time rather than item modification time in attachment pane
2010-02-01 08:33:25 +00:00
Dan Stillman
8931b3050d - Fix error indexing documents containing words with invalid characters
- Increase number of words inserted per statement up to max allowed
2010-02-01 08:28:52 +00:00
Dan Stillman
149de94a0f Fix modifier key handling when clicking View Attachment 2010-01-30 21:58:10 +00:00
Dan Stillman
05088d4cfa Better logging for "entry is null" file sync error 2010-01-28 22:05:54 +00:00
Dan Stillman
efca9701d3 Remove platform-specific captions in error reporting wizard 2010-01-28 20:16:44 +00:00
Dan Stillman
a5329880d7 - Purge tags immediately on delete from tag selector
- Adds optional tagIDs parameter to Zotero.Tags.purge()
2010-01-27 10:39:35 +00:00
Dan Stillman
31cacf10d7 Fix regexp in previous commit 2010-01-27 09:51:16 +00:00
Dan Stillman
9193ab3e62 - Fix Zotero crash attempting to index an unindexable link attachment twice
- Log error on index failure, and include note about filenames with extended characters if applicable
2010-01-27 09:47:08 +00:00
Dan Stillman
49632d6110 - Change upgrade wizard title to "Zotero Upgrade Wizard" instead of just "Zotero"
- Remove default platform-specific window caption, which was "Introduction" on OS X and, apparently, "Welcome to the Zotero" on Windows
2010-01-27 08:21:33 +00:00
Dan Stillman
820a4c6759 Fix error performing a quoted quick search 2010-01-27 07:01:10 +00:00
Dan Stillman
18a7f43eb1 Error message tweak 2010-01-26 23:06:30 +00:00
Dan Stillman
4103ea5813 Fix "No fields in itemTypeFields" upgrade error 2010-01-26 20:48:57 +00:00
Dan Stillman
936142b131 Temporary fix to retain special date handling for filingDate even though it's been unmapped from Date base field 2010-01-26 09:51:53 +00:00
Dan Stillman
ac31012da7 Fix upgrade error 2010-01-26 09:41:05 +00:00
Dan Stillman
428c438528 Fix UI problem when adding a note to an item after deleting child notes from that item 2010-01-26 03:57:43 +00:00
Dan Stillman
ad9451dc50 Remove in-development message from Sync pane of the preferences -- replace with "About Sync" link 2010-01-26 01:07:59 +00:00
Dan Stillman
5c37be057b Schema updates:
- For "Book Section", added "Book Author" (needs to be mapped to CSL container-author) (closes #872)
- For A/V item types, "Recording Type" mapped to "Type" is now "Format" mapped to "Medium" (closes #1060)
- For "Radio Broadcast" and "TV Broadcast", replaced "Series Title" with "Program Title" mapped to "Publication Title" (CSL field container-title rather than collection-title) (closes #860)
- For "Patent", added "Country" field, removed (nonfunctional) base-map from "Place" to "Country", added "Issuing Authority", replaced "Date" with "Filing Date" (not currently mapped to CSL), and moved "Date" data to "Filing Date". Kept "Issue Date" base-mapped to "Date".  (closes #1375)
- For "Film", mapped "Distributor" to "Publisher" (closes #861) and added "Genre" mapped to "Type"
- For "Podcast", mapped "Audio File Type" to "Medium" rather than "Type"
- For "Bill", added "Cosponsor" creator type (closes #655)
- For "Case", added "Author" as primary creator type instead of "Counsel" (#655)
- For "Computer Program", added "Date" (closes #1502)
- For "Thesis" and "Newspaper Article", added "Place" (closes #1274)
- For "Thesis", replaced 'pages' with 'numPages' (closes #1618)


This can't yet sync, so upping sync API version and delaying dev XPI build.
2010-01-25 23:16:15 +00:00
Dan Stillman
831a6d0456 Missing file from previous commit 2010-01-25 20:34:42 +00:00
Dan Stillman
7816ef83c9 More helpful error message pulling sync data with an unknown item type 2010-01-25 20:33:46 +00:00
Dan Stillman
d500b50e2e Don't store literal 'today' in Date field 2010-01-25 18:39:23 +00:00
Dan Stillman
c2fea7e4da Fix "Item already exists outside of collection" error and UI weirdness dragging child items between items
(Don't bother removing an existing row for the item when creating the new one, since the old one will be removed in the fullness of time.)
2010-01-25 08:50:47 +00:00
Dan Stillman
a9233af428 Fix UI badness and "Item already exists outside of collection" error duplicating a child note 2010-01-23 08:22:46 +00:00
Dan Stillman
55c9e50d08 Fix typo in locale key 2010-01-22 19:43:14 +00:00
Dan Stillman
7ccd5ab639 Restore first-run tab -- /start currently redirects to QSG 2010-01-22 06:53:36 +00:00
Dan Stillman
f73e45a5dc Restore Quick Start Guide item for new installations 2010-01-22 06:48:31 +00:00
Dan Stillman
4dc8d2e01f Fix date fields on Windows (since recent update) 2010-01-22 05:49:49 +00:00
Dan Stillman
529799a28f Files with spaces were saved via Create New Item from Current Page with '20' in them (stripped from '%20') -- filenames now have proper spaces 2010-01-21 20:25:10 +00:00
Dan Stillman
9c58d8aedc Extra debugging info for mod time mismatches 2010-01-19 23:00:10 +00:00
Dan Stillman
f2ae8421a0 Fix item highlighting in Fx3.6 on child item drag (same as r5555, but for items pane) 2010-01-19 06:32:39 +00:00
Dan Stillman
bd5ef678f5 Fix recursion error shift-tabbing in metadata pane on item types with no creators 2010-01-18 06:51:39 +00:00
Dan Stillman
ce4327ddb6 Update (deprecated) Zotero.Item.toArray() to not substitute 'title' for base-mapped title fields, since this isn't done for other base-mapped fields
Report generation and a couple other things might need to be updated to deal with this
2010-01-17 11:25:25 +00:00
Dan Stillman
0531960e61 Fix for spacebar not working on attachment view/show buttons 2010-01-17 11:15:29 +00:00
Dan Stillman
72892dac1f Frank's patch to add support for Cyrillic characters to Zotero.Utilities.cleanAuthor() -- now splits Cyrillic capital letters into separate initials 2010-01-16 19:33:08 +00:00
Dan Stillman
7c9d03d7c3 Remove redundant line 2010-01-16 09:43:55 +00:00
Dan Stillman
d3d88b350d Fix some spacing issues in metadata pane 2010-01-16 05:19:34 +00:00
Dan Stillman
fccbff1f7f Delete invalid triggers 2010-01-16 01:37:40 +00:00
Dan Stillman
117d7293a5 Clarify WebDAV error message 2010-01-15 21:57:13 +00:00
Dan Stillman
8870d5e514 Support for NSF Reviewer item type (for NSF use only -- not installed by default)
Also:

- Beginnings of custom item type/field support, though not intended for external use yet
- Zotero.Date.strToDate() now parses 'yesterday'/'today'/'tomorrow' and localized equivalents, allowing those strings to be used in fields such as 'Accessed'
- Cleaner display of dates without times in 'Accessed' field
- Item type menus in metadata pane, New drop-down, and advanced search window now sort by localized string

New methods:

- Zotero.CreatorTypes.itemTypeHasCreators(itemTypeID)
- Saved searches on item type should now use 'itemType' condition rather than 'itemTypeID'
2010-01-15 21:55:25 +00:00
Dan Stillman
53d2fb6fe9 Fix for note cursor being reset while editing (since r5572) 2010-01-13 21:28:10 +00:00
Dan Stillman
8560710463 - Fix autocomplete date searches (broken since autocomplete speedup)
- Fix search for January dates
- Support 'yesterday'/'today'/'tomorrow' and localized equivalents (case-insensitive) in date searches (e.g., [Date Added] [is] ['yesterday'])
2010-01-12 23:06:26 +00:00
Dan Stillman
6cefc8fb72 Add error message with filename when file creation fails during sync 2010-01-08 06:52:13 +00:00
Dan Stillman
646c35648f - Fix "script stack space quota is exhausted" error with extremely large notes
- Fix repeated text-to-HTML conversion of unedited plaintext notes (which might exist at this point only from direct DB writes)
2010-01-05 08:51:44 +00:00
Dan Stillman
7ae7cc3579 Include filename in logged error message on quota error 2010-01-04 23:20:51 +00:00
Dan Stillman
1d43d274ac Don't automatically retry sync for 400 errors (now) sent from the server 2009-12-31 00:19:31 +00:00
Dan Stillman
548b3b20ed Fix collection highlighting when dragging items in Firefox 3.6 (due to recent Fx change, I would think) 2009-12-30 23:22:08 +00:00
Dan Stillman
059efa4a67 Fix error dragging note in Fx3.0 2009-12-30 22:30:29 +00:00
Dan Stillman
bdc34103a9 Don't include deleted items in collection-based operations (export, create bib) 2009-12-30 21:08:45 +00:00
Dan Stillman
9996fd09a3 Error from localization 2009-12-30 20:58:45 +00:00
Dan Stillman
d5b4fce7d6 Export Library was exporting items in all group libraries 2009-12-30 20:21:43 +00:00
Dan Stillman
2cfd07ffc2 Addresses #1475, Localize add-on strings
Added a few more localizations (and reformatted a few)
2009-12-30 20:00:16 +00:00
Dan Stillman
7150d38cf1 Addresses #1475, Localize add-on strings
Localizes most (though not quite all) of the new unlocalized strings, hopefully without breaking anything
2009-12-30 07:22:53 +00:00
Simon Kornblith
60afa6b00d Fix DOI translator hang on error 2009-12-30 06:00:27 +00:00
Dan Stillman
f55fba3dcf Missed file in previous commit 2009-12-29 22:22:43 +00:00
Dan Stillman
3d78c2b4d8 Closes #1543, Add db integrity check for 1.0 to 2.0 upgrades
Also added different text coming from 1.0 with a link to http://zotero.org/support/upgrade, which needs content
2009-12-29 22:21:54 +00:00
Dan Stillman
028b152ff8 - Don't show various context menu options for imported attachments in group if no file editing access
- Don't show "Show in Library" in groups
2009-12-29 09:32:36 +00:00
Dan Stillman
94e279e034 ECL 1.0 -> GPLv3 2009-12-28 09:47:49 +00:00
Dan Stillman
3a2d9a50f8 Display implicit title for related items when they're letters or interviews 2009-12-27 11:42:49 +00:00
Dan Stillman
f4544bd386 Reverse Zotero.Utilities.prototype.arrayDiff operator order to be consistent with PHP's array_diff 2009-12-27 02:11:32 +00:00
Dan Stillman
6ca230379d - Include a line between notes when copying multiple notes
- Don't display "JavaScript Application" in alert when pressing Quick Copy shortcut key with no regular items selected
2009-12-26 10:38:45 +00:00
Dan Stillman
a5818604fb - When creating or adding to note from web page context menu, put text in <blockquote> with 'cite' attribute
- Zotero.Utilities.text2html(str, singleNewlineIsParagraph) -- conversion of 1.0 notes on upgrade to 2.0 uses the second parameter to treat a single newline as a paragraph, which may or may not be the desired behavior but is what was done previously
- Shortcut key for New Item wasn't properly selecting item type menu and wasn't preventing Firefox's Recently Closed Window shortcut
2009-12-26 03:40:30 +00:00
Dan Stillman
4ad2de797f Restores proper copying support for notes, with separate output for text, rich text, and HTML-code-as-text (via Copy HTML pref)
New hidden prefs:

- export.quickCopy.compatibility.indentBlockquotes (default: true)

Word and TextEdit don't indent blockquotes on their own and need this, but OO gets it right, so this results in an extra indent

- export.quickCopy.compatibility.word (default: false)

Adds Word Normal style to paragraphs and adds double-spacing, but OO inserts the conditional style code as a document comment

- quickCopy.quoteBlockquotes.plainText (default: true)
- quickCopy.quoteBlockquotes.richText (default: true)

Adds quotes around blockquote paragraphs, since loss of attribution is serious (and who knows whether all apps that accept rich text even support indenting)

Not enabled for HTML code copying, since CSS can be used to render blockquotes as desired


Fixes #1397, toggle HTML tags on and off for quick copy of notes
2009-12-25 23:39:54 +00:00
Dan Stillman
f2ac59f95c Log some extra debug output for sync error 2009-12-25 00:33:34 +00:00
Dan Stillman
764b8d3618 More helpful error for moveTo() error with orphaned files during upgrade 2009-12-24 23:20:14 +00:00
Dan Stillman
6064a230cd Include response headers in debug output for some unexpected errors 2009-12-24 09:32:53 +00:00
Dan Stillman
4e2f6f7bf9 Display proper unexpected status code 2009-12-24 09:15:17 +00:00
Dan Stillman
a39a5ca892 Remove unnecessary line 2009-12-22 08:24:38 +00:00
Dan Stillman
4ff0a51694 Clear shortTitle when moving between book and bookSection when title/bookTitle is automatically transferred 2009-12-22 08:21:18 +00:00
Dan Stillman
532ad6b30c Move title to bookTitle when changing item type from book to bookSection, and move bookTitle to title when going from bookSection to book if there's not also a title
http://forums.zotero.org/discussion/78/books-and-book-sections-avoiding-input-of-duplicate-info/#Item_21
2009-12-22 07:49:33 +00:00
Dan Stillman
f28cb22480 Fixes #607, Don't show annotations toolbar on MIME types it doesn't support 2009-12-20 09:30:26 +00:00
Dan Stillman
dd1eed6c9e Additional debugging 2009-12-19 00:49:02 +00:00
Dan Stillman
18c7e6728f Fixes #1619, Underline formatting isn't preserved in citation editor
Frank's patch
2009-12-18 21:49:36 +00:00
Dan Stillman
833ad915f5 Don't fill up error console with errors when onProgress() comes after request has finished, which seems to happen 2009-12-18 12:23:34 +00:00
Dan Stillman
7787f2f1cc More helpful message for HTTP 507 Insufficient Storage (WebDAV) 2009-12-18 12:10:51 +00:00
Dan Stillman
85914325aa Make URL in attachment pane draggable, as suggested here: http://forums.zotero.org/discussion/8369/suggestion-grab-pdfother-image-from-saved-link/#Item_3
Should probably still make it possible to copy-and-paste it with the mouse at some point
2009-12-18 12:00:59 +00:00
Dan Stillman
557a195b12 Closes #582, Ability to reorder creators
I am nothing if not a man of the people.

Uses an old suggestion from Andrew Moylan from the forums (http://forums.zotero.org/discussion/514/change-order-of-authors/): "Move Up" and "Move Down" options in the creator type menu. Dragging would be preferable but considerably more difficult, so this will have to do for now.
2009-12-18 11:29:03 +00:00
Dan Stillman
e638190ca9 Fixes #771, small caps and editor
Patch from Frank (with a few stylistic tweaks) to preserve small caps in citation editor -- since we now use TinyMCE rather than Midas, we could actually include a button for small caps, but this is probably sufficient
2009-12-18 10:21:19 +00:00
Dan Stillman
f5a9dd6812 Missing file from previous commit: Zotero.Utilities.ellipsize(str, len, countChars) 2009-12-16 00:28:24 +00:00
Dan Stillman
d1d70d3df8 Automatically delete .prop files that don't contain valid timestamps 2009-12-16 00:06:53 +00:00
Dan Stillman
37e4d8962e Better debug output for a few ZFS errors 2009-12-16 00:06:01 +00:00
Dan Stillman
0d13147704 Better debugging for data.syncModTime error, maybe 2009-12-15 09:07:07 +00:00
Dan Stillman
85826ba2f1 Better debug output for downloads in WebDAV mode 2009-12-15 08:51:47 +00:00
Dan Stillman
2edda44b12 - Better handle invalid characters in filenames when syncing
- Automatically rename downloaded file to match known filename if different
2009-12-15 08:49:18 +00:00
Dan Stillman
39092b7c82 Display "Open Sync Preferences..." button instead of "Report Errors..." on WebDAV verification failure during sync 2009-12-14 20:15:47 +00:00
Dan Stillman
c1054b57d6 "ecrypt" -> "eCryptfs" 2009-12-14 11:35:40 +00:00
Dan Stillman
1ff0105daf Throw (rather than log) ecrypt/filename length limit error on Linux 2009-12-14 11:32:50 +00:00