Commit graph

4350 commits

Author SHA1 Message Date
Dan Stillman
239247aa81 Make the prefwindow somewhat less of a disaster on fr-FR
And probably other locales.

(Also, there must be a better way to deal with bottom elements getting
cut off than these extra <separator/> elements that result in extra
space when they're not needed.)
2013-03-29 04:28:35 -04:00
Dan Stillman
ded84f7666 Fix bizarre newline symbols in fr-FR and ja-JP 2013-03-29 03:35:01 -04:00
Dan Stillman
6ea5afe8e3 Update locales from Transifex 2013-03-29 03:33:05 -04:00
Simon Kornblith
7ce93e66d9 Fix installing styles from the preferences 2013-03-28 16:55:14 -04:00
aurimasv
6a0351c940 Don't break when stringifying item fields. Broken by 2f8f18c957 2013-03-28 00:55:05 -05:00
Simon Kornblith
bfc4f3eb78 Update citeproc-js to 1.0.442 2013-03-28 00:37:52 -04:00
Dan Stillman
51476823d7 Merge locales from Transifex 2013-03-28 00:34:28 -04:00
Simon Kornblith
4c7d096545 Use typographic quotes 2013-03-28 00:24:38 -04:00
Simon Kornblith
6efe6c5bd6 Move "Automatically abbreviate journal titles" setting to document preferences
The setting is disabled by default for existing documents, but enabled by
default for new documents.
2013-03-27 23:53:38 -04:00
Simon Kornblith
a6fae941ad Disable one window warning for annotations 2013-03-27 23:47:34 -04:00
Simon Kornblith
6d518c0cec Clarify failed validation error message
See http://forums.zotero.org/discussion/28540?page=1#Item_4
2013-03-27 11:29:53 -04:00
Dan Stillman
ae87fb9848 Version update 2013-03-26 16:32:23 -04:00
Dan Stillman
014aee1485 Fix nsIRequest test for non-client environments 2013-03-26 16:15:31 -04:00
Dan Stillman
0b82266882 Don't show nsIChannel passwords in debug output 2013-03-26 16:00:55 -04:00
Dan Stillman
97358aad7a Asynchronous DB query methods (experimental)
See comment in db.js for example usage.

This requires Firefox 20 or later unless we bundle the necessary code
modules ourselves.
2013-03-26 15:11:22 -04:00
Dan Stillman
6896beb096 Remove use of deprecated pragma default_cache_size
Instead, set cache_size at runtime
2013-03-26 15:11:22 -04:00
Dan Stillman
50a0b2d36c Apparently the dummy transaction hasn't been necessary since 2007 or so
https://bugzilla.mozilla.org/show_bug.cgi?id=380345
2013-03-26 15:11:22 -04:00
Dan Stillman
e7d7d2a943 Merge branch '4.0'
Conflicts:
	install.rdf
	update.rdf
2013-03-26 15:10:38 -04:00
Dan Stillman
760c327a1b Update locales from Transifex 2013-03-26 13:35:27 -04:00
Dan Stillman
5a005cd5ae Fix WebDAV file sync conflict 2013-03-26 02:50:01 -04:00
Dan Stillman
48544729e7 Replace some uses of Q.allResolved() with Q.all() in storage sync 2013-03-26 02:50:01 -04:00
Dan Stillman
acb45593e7 Fix WebDAV file purging
Deleted files are purged at the end of every sync, without any delay.
(If there's a conflict, it will be resolved before the file is deleted.)

Orphaned files are deleted once every 10 days, since it's a potentially
expensive operation for the server.
2013-03-26 02:50:00 -04:00
Simon Kornblith
107dc081b9 Fix duplicate requests to provider sites
When the user follows a link from a proxy-by-port EZProxy to another
proxy-by-port EZProxy, we make an additional request to the target site
with no cookies. This yields a redirect to the EZProxy login page. We
use the query parameters to determine the true domain of the site.

Previously, we allowed the redirect to continue, and used the same code we
use to detect EZProxy logins to map the proxied domain to the true domain.
This caused duplicate requests to providers and apparently infinite loops.

We now read the query parameter directly from the redirect to the EZProxy
login page and then cancel the request so that the redirect doesn't get
followed.

The changeset also improves logging of proxy-related information.

See https://forums.zotero.org/discussion/28505/ for further discussion.
2013-03-25 21:45:40 -04:00
Simon Kornblith
dc17095884 Fix duplicate requests to provider sites
When the user follows a link from a proxy-by-port EZProxy to another
proxy-by-port EZProxy, we make an additional request to the target site
with no cookies. This yields a redirect to the EZProxy login page. We
use the query parameters to determine the true domain of the site.

Previously, we allowed the redirect to continue, and used the same code we
use to detect EZProxy logins to map the proxied domain to the true domain.
This caused duplicate requests to providers and apparently infinite loops.

We now read the query parameter directly from the redirect to the EZProxy
login page and then cancel the request so that the redirect doesn't get
followed.

The changeset also improves logging of proxy-related information.

See https://forums.zotero.org/discussion/28505/ for further discussion.
2013-03-25 21:31:23 -04:00
Simon Kornblith
d8e2007da4 Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/zotero.js
	install.rdf
	update.rdf
2013-03-23 17:35:19 -04:00
Dan Stillman
e61350a3b2 Fix positioning of sync error popup 2013-03-22 17:56:53 -04:00
Dan Stillman
b54b77a107 Clarify WebDAV error messages 2013-03-22 17:47:35 -04:00
Dan Stillman
ffcabcd44e Make text in sync error panel selectable 2013-03-22 17:23:19 -04:00
Dan Stillman
4a334fa7f7 Fix file sync error continuing to show after error had cleared 2013-03-22 17:22:10 -04:00
Dan Stillman
b208097a8e options.requestObserver callback for Zotero.HTTP.promise()
The callback receives the XMLHttpRequest object after the open() call.
2013-03-22 17:04:38 -04:00
Dan Stillman
059906a11e Fix wide prefpane if PDF tools aren't installed 2013-03-22 13:45:57 -04:00
Dan Stillman
c7c8cbbeae Mention Search pane in PDF tools message 2013-03-22 13:34:01 -04:00
Dan Stillman
f9c9253e88 Fix Proxies prefpane 2013-03-22 03:20:33 -04:00
Dan Stillman
15caec9a32 Remove hardcoded prefwindow width 2013-03-22 03:13:32 -04:00
Dan Stillman
553173f7ba Fix cutoff of bottom of Search prefpane on Linux 2013-03-22 03:08:47 -04:00
Dan Stillman
f5d33a3a0c Update submodules and versions 2013-03-22 02:34:12 -04:00
Dan Stillman
fcce6327ae Merge pull request #277 from aurimasv/escape-path
Escape special characters in file paths when attaching files
2013-03-21 01:26:12 -07:00
aurimasv
6524e17ded Show error message when attaching file fails. 2013-03-21 03:24:47 -05:00
aurimasv
82448c4a4d Escape special characters in file paths when attaching files 2013-03-21 03:24:47 -05:00
Dan Stillman
18db86d650 Merge branch '4.0' 2013-03-21 03:05:30 -04:00
Dan Stillman
cf9dd6d73f Merge locales from Transifex 2013-03-20 22:53:59 -04:00
Dan Stillman
c227fdb3f7 Fix bottom padding of Sync->Reset pane 2013-03-20 22:41:15 -04:00
Dan Stillman
e85790541b Remove per-library sync error indicators, at least for now
The hidden column caused collection names to be cut off unnecessarily,
and the extra icons were overly distracting. For now, just show the
first error that comes in in the main sync error panel, along with the
library name.
2013-03-20 22:41:15 -04:00
Simon Kornblith
0782344c41 Revert "Don't truncate text in Add Item by Identifier box at less than the full box width"
This reverts commit 5f2f120a98.

This seems to be a bug in Nightly, not Zotero.
2013-03-20 16:54:52 -04:00
Dan Stillman
7cdc420304 Remove obsolete code 2013-03-20 16:45:09 -04:00
Dan Stillman
1f1c6d16ff Quit rather than restart when changing data directory 2013-03-20 16:45:09 -04:00
Simon Kornblith
5f2f120a98 Don't truncate text in Add Item by Identifier box at less than the full box width 2013-03-20 16:33:05 -04:00
Dan Stillman
7c3d6a54e8 Adjust bottom padding of prefpanes 2013-03-20 13:06:53 -04:00
Dan Stillman
795fcbff74 Merge branch '4.0' 2013-03-20 05:11:08 -04:00
Dan Stillman
ddd7cdf431 Use nicer alert for PDF tools download error 2013-03-20 05:10:48 -04:00
Dan Stillman
49a97d104b Fix strict mode error downloading PDF tools 2013-03-20 05:10:48 -04:00
Dan Stillman
a417c9ef59 Fix window height bug in Zotero preferences, and reorganize code
Prefpanes are now in separate overlays, which fixes the age-old resizing
bug when switching between panes (at least on OS X) that varied
depending on the initial pane. Code has also been moved into
pane-specific files and objects, with strict mode enabled. When calling
code from another pane (e.g., for a UI update in another pane), first
check whether the Zotero_Preferences.[Pane] object exists--if it doesn't
then nothing needs to be called.

This change breaks the word integration plugin pref overlays, which
hopefully can be rewritten to work with either overlay format.

There is a good chance that this breaks some other things in the
preferences too.

Fixes #243
2013-03-20 05:10:38 -04:00
Dan Stillman
41e2f3008e Sort empty titles last when title isn't primary sort
When sorting by Title, empty titles get sorted to the top of the items
list for visibility, but when sorting by another column and using the
title as a secondary/tertiary sort, empty titles should get sorted last
so that new empty items go to the end of the list rather than the
middle.

This is a little weird, and the alternative would be to just always sort
empty titles last even when sorting by Title, but this preserves the
current behavior for Title sorting. (Before f0f6772b01 titles weren't
used for secondary sorting at all, so there's no precedent for
title-sorting behavior when sorting by another column.)

Addresses #275
2013-03-19 15:59:40 -04:00
Dan Stillman
d69dc3d5a7 If Year column is visible and not Date, don't sort by full date
Otherwise use full date, even if Date column is hidden

Addresses #275
2013-03-19 15:42:39 -04:00
Dan Stillman
1647f28135 Fix error selecting separator above Group Libraries
This is super annoying, but I can't seem to stop the separator row from
being selected in seltype="single" mode (where isSelectable() isn't
called). Until we have a better solution, at least clear the items list
and avoid an error.
2013-03-19 06:53:48 -04:00
Dan Stillman
78618ff88b Fix collections-containing-an-item highlighting in Fx22+ 2013-03-19 06:16:11 -04:00
Dan Stillman
b1f80a3615 Use dateAdded rather than dateModified for final fallback sort
Addresses #275
2013-03-19 06:00:11 -04:00
Dan Stillman
f0f6772b01 Sort by title after creator and date, if not primary sort
Addresses #275
2013-03-19 05:16:31 -04:00
Dan Stillman
8bd7536c2c Remove reference to missing .dtd file 2013-03-19 02:25:58 -04:00
Dan Stillman
4717e3497f Fix missing "Deleted" in CR window
Addresses #273
2013-03-19 02:25:25 -04:00
Dan Stillman
cf54a5da34 Fix code style
Refs #274
2013-03-19 02:22:33 -04:00
Aurimas Vinckevicius
cc93a0c7b8 Unbreak adding new items. Broken by dbf6bc0ee1. 2013-03-19 01:05:53 -05:00
Simon Kornblith
67bccfc9fe Only show annotation toolbar on pages that already have annotations 2013-03-18 20:37:27 -04:00
Dan Stillman
22f9fc04a8 Fix update marking for uploaded file versions that exist remotely
If a file version existed on the server, the uploaded attachment wasn't
marked as updated until the next sync.
2013-03-18 20:28:16 -04:00
Dan Stillman
47299c9e85 Remove debug line and update error message 2013-03-18 20:27:54 -04:00
Dan Stillman
8e1b8022ad Download locally existing remotely modified files in on-demand mode
If a file doesn't exist locally it won't be downloaded until opened, but
if a file does exist locally and has been modified remotely the latest
version will be downloaded at sync time regardless of the file sync
mode. (If a locally existing file has been updated remotely, just
opening it won't currently download the latest version. You have to
sync. This may change in the future.)
2013-03-18 20:21:48 -04:00
Dan Stillman
0853dbc070 Fix problem with items list scrollbar size between views
Caused by 2cd45be191, though not sure why it's happening.
2013-03-17 16:12:46 -04:00
Simon Kornblith
c457139573 Merge pull request #270 from aurimasv/RDFimport
Fix RDF import for large notes
2013-03-17 13:05:14 -07:00
Dan Stillman
9796e60617 Don't update item when tabbing through empty Date field 2013-03-17 03:49:31 -04:00
aurimasv
f3bda1643d Normalize DOM nodes after parsing 2013-03-17 02:43:41 -05:00
aurimasv
d974c78cef Add $rdf.log.error for rdflib.js 2013-03-17 02:43:41 -05:00
aurimasv
dbf6bc0ee1 Don't attempt to mark changes when creating new item. 2013-03-17 02:43:41 -05:00
Dan Stillman
147f325e40 Merge locales from Transifex 2013-03-17 03:34:42 -04:00
Dan Stillman
36eae6ad00 Update child attachment order when renaming attachment
Also show "1" next to child attachments with embedded notes
2013-03-17 03:14:29 -04:00
Dan Stillman
9bddef21b7 Fix collection row selection issue on Windows 2013-03-17 02:41:43 -04:00
Dan Stillman
6915b7aa56 Merge branch '4.0' 2013-03-17 01:24:50 -04:00
Dan Stillman
5a863d97c8 Context-menu string cleanup
- Remove all "Selected" from "Selected Item", because that's how a context menu works
- Change "Remove Selected Item" to "Remove Item from Collection" (fixes #122)
- Change "Delete Selected Item from Library" to "Move Item to Trash")
- Change "Remove" on Duplicate/Unfiled Items to "Hide" (fixes #122)
- Change "Create Parent Item from Selected Item" to "Create Parent Item"
2013-03-17 01:22:47 -04:00
Simon Kornblith
3c6728e30f Remove unnecessary version checking code 2013-03-16 23:51:34 -04:00
Dan Stillman
022ee4481b Add "Delete Collection and Items..." context-menu option
Also update collection/search deletion dialogs with better button text and no more "[JavaScript Application]"
2013-03-16 22:55:50 -04:00
Dan Stillman
5f283a6b7f Fix tag selector glitch after removing last tag, again
Better fix than 4e1fbf9747
2013-03-16 16:25:58 -04:00
Dan Stillman
edfdbdec1c Keep tag selector label heights consistent
Use a transparent border so that the height is the same with or without
zotero-clicky being set
2013-03-16 16:25:58 -04:00
Dan Stillman
0f87772b97 Fix broken checkboxes in tag selector context menu (OS X only?)
On OS X, the checked state of <menuitem type="checkbox"/> still doesn't
work right if set before the menu is opened. To get around this, the
state is now set manually in onpopupshown(). There's an annoying delay
before the UI update, but this is better than nothing.
2013-03-16 16:25:58 -04:00
Dan Stillman
fec159f969 Fix error on tag change without a selected item (from 1e59c5ab7) 2013-03-16 16:25:58 -04:00
Dan Stillman
6dbe1d1e19 Show colored tags in tag selector in all views
Always show colored tags at the top of the tag selector, regardless of
whether they're in the current scope. If not, they're shown with reduced
opacity (as an equivalent to the gray style for out-of-scope tags in
Display All Tags mode). As a corollary, colored tags are now shown even
if they have no associated items and will remain until they're
explicitly deleted.

Also:

- Don't show outline on out-of-scope tags in "Display All Tags" mode
2013-03-16 16:25:51 -04:00
Dan Stillman
2b7d7ebfbf Don't rely on object property order to sort tags
It works, but in theory it's not guaranteed in JS.
2013-03-15 17:44:07 -04:00
Dan Stillman
2b4f2e3a0f Merge branch '3.0' into 4.0 2013-03-15 17:01:44 -04:00
Dan Stillman
d726ce41fa Fixes incorrect post-edit scrolling
Fixes #268, broken in 2cd45be191

Post-edit scrolling can probably be smarter, but this fixes the brokenness.
2013-03-15 16:56:55 -04:00
Dan Stillman
a1197883bb Disable key navigation on 1-6 keys if any tag colors are assigned
Previously any unused numbers were still available for key navigation, but I
think it's too easy hit the wrong key that way, and getting moved to another
part of the items list is annoying.
2013-03-15 14:09:31 -04:00
Dan Stillman
3faa8949ef Fix glitch entering tag with whitespace
If an existing colored tag was added to an item with whitespace around it, the
tag didn't immediately show up with a color.
2013-03-15 04:39:57 -04:00
Dan Stillman
1e59c5ab7e More tags box fixes (follow-up to f932f312eb)
Use the Notifier for all tags box updates to ensure that it always updates.

Also fix the tag count and some other things.

Post-tab focus still isn't 100% correct in all situations, but it's real close.
2013-03-15 04:13:14 -04:00
Dan Stillman
4e1fbf9747 Fix clearing selected tag when removed from last item in view
I somehow broke this in d2f028d797, though
I'm not sure how.
2013-03-14 20:06:34 -04:00
Dan Stillman
d60b0221db Fix error trying to toggle colored tag with no tag
(This should be fixed so that the setting is always removed, though.)
2013-03-14 19:03:20 -04:00
Dan Stillman
e20bd35756 Don't clear other tag colors when rename colored tag 2013-03-14 19:00:52 -04:00
Dan Stillman
9a4e83dc78 Update version 2013-03-14 03:45:28 -04:00
Dan Stillman
0f85b07aad 3.1 is now 4.0 2013-03-14 01:27:54 -04:00
Dan Stillman
0191601f9f Fix items tree styling (context rows, attachment pies) in Fx22+ 2013-03-13 00:00:27 -04:00
Dan Stillman
d5bfed1c96 Missed changed from 0cd3a34e14 2013-03-12 21:10:11 -04:00
Dan Stillman
487ce7183b Make tag color chooser window wider
Follow-up to d2f028d79
2013-03-12 20:54:53 -04:00
Dan Stillman
0cd3a34e14 Properly handle sync errors thrown from Zotero.HTTP.promise() 2013-03-12 19:58:31 -04:00
Dan Stillman
fe3ad1883d Use API version 2 2013-03-12 19:57:47 -04:00