Commit graph

7340 commits

Author SHA1 Message Date
Dan Stillman
b9d5c33993 Allow setting a cookie sandbox for Zotero.Utilities.Internal.saveURI()
This isn't used or tested.
2020-01-04 02:29:52 -05:00
Dan Stillman
6070743ff0 Fix Nextcloud WebDAV syncing
Add Zotero.HTTP.CookieBlocker mechanism to block storing and sending
of all cookies for a given URL prefix, and use that for the configured
WebDAV URL.

https://forums.zotero.org/discussion/80429/sync-error-in-5-0-80
2020-01-04 02:29:52 -05:00
Dan Stillman
8c8140e74e Fix hiding of password in WebDAV error messages and debug output 2020-01-02 05:04:02 -05:00
Dan Stillman
d9be6c3ce2 Update login manager corruption error message for Fx60 files 2020-01-02 01:13:16 -05:00
Dan Stillman
bc7b2cb3d5 Fix extension installation failure message
And fix logged error when starting an extension installation

https://groups.google.com/d/topic/zotero-dev/rP42v7OF9N0/discussion
2020-01-01 23:22:12 -05:00
Adomas Venčkauskas
5fa979575e Fix quick format bubble drag-and-drop (see 5a1e3296) 2019-12-31 11:35:13 +02:00
Dan Stillman
991e542888 Fix broken autocomplete popup when editing a saved search
https://forums.zotero.org/discussion/comment/345646/#Comment_345646

This is probably the actual fix for what I was trying to fix in
360f034b5, and I couldn't reproduce it because it was about saved
searches.
2019-12-30 02:39:10 -05:00
Adomas Venčkauskas
5a1e329618 Fix being unable to place the cursor in between bubbles in the citation dialog
Regression in Fx60
2019-12-23 13:25:02 +02:00
Dan Stillman
0b9f463b9f Fix parsing of 'yesterday'/'today'/'tomorrow' in access date field
Regression from 5.0.78
2019-12-23 03:10:43 -05:00
Dan Stillman
9c380c362a Hopefully fix 503 from NextCloud (since 5.0.78)
https://forums.zotero.org/discussion/comment/344790/#Comment_344790
2019-12-22 16:32:36 -05:00
Dan Stillman
8fe33dc91c Fix loading of compressed global schema from DB on downgrade 2019-12-21 05:09:01 -05:00
Dan Stillman
f5d544bc15 Generate label if type/field name isn't available in global schema
E.g., show "Foo Bar" for field fooBar if not available

This could happen after downgrading if the global schema couldn't be
read from the DB for some reason.
2019-12-21 05:09:01 -05:00
Dan Stillman
fda5df9a82 Fix display of editors in Creator column in new databases
Regression in 5.0.78
2019-12-21 05:09:01 -05:00
Dan Stillman
85a3f03002 Fix display of pre-1000 dates in Year column and Quick Format
And avoid "0000" in Year column if date value but unparsed year
2019-12-19 03:23:51 -05:00
Dan Stillman
b7dc0d8b0a Fix parsing of pre-1000 years
If a leading zero (e.g., '068'), parse as actual year instead of
19xx/20xx.
2019-12-19 02:15:36 -05:00
Dan Stillman
6963016c91 Fixes #1761, Repeating of autocompleted tags
Regression in 5.0.78
2019-12-19 01:36:20 -05:00
Dan Stillman
df40ee7216 Adjust URL launching behavior
- Support launching plausible HTTP URLs without schemes from
  Zotero.loadURI(), and use that when launching from URL field
- Show correct cursor feedback on URL label -- only show pointer if the
  URL is launchable
- Don't launch non-HTTP URLs (e.g., zotero://) from URL field
- Don't open HTTP URLs in viewer when using ZoteroPane.launchURI()
2019-12-16 14:56:06 -05:00
Dan Stillman
537aa15842 Fix "Report Errors…" button in Utilities.Internal.errorPrompt() prompt
E.g., the button in an unknown WebDAV error dialog
2019-12-16 14:56:06 -05:00
Adomas Venčkauskas
88c4cd1a09 Doc integration: fix a rtf wrapper being added to html output 2019-12-11 10:44:24 +02:00
Dan Stillman
d2e14cfff4 Fix autocomplete in Advanced Search
Since 5.0.78
2019-12-10 23:34:16 -07:00
Dan Stillman
bbbd02444b Restore 'yesterday'/'today'/'tomorrow' parsing for dates in searches
Follow-up to a549a64de9, which removed it from strToDate()
2019-12-06 03:12:48 -07:00
Dan Stillman
c67e29adc7 Fx60: Fix text links in About pane and preferences 2019-12-05 17:58:47 -07:00
Dan Stillman
6b7b57da3c Remove accidentally committed files from 4077428b4 2019-12-04 02:56:42 -07:00
Dan Stillman
87c3ef6aca Fx60: Fix CSL 0.8 style import 2019-12-04 01:27:12 -07:00
Dan Stillman
381c5fc8d8 Adjust spacing of libraries-to-sync checkmark on Linux
Follow-up to 6af5732fca
2019-12-03 15:55:41 -07:00
Dan Stillman
6af5732fca Fix checkmark in libraries-to-sync window on Windows
And switch to Unicode green checkmark and red prohibited characters on
all platforms, which fixes #1675.

The treecol checkmark stopped working on Windows in Fx60.
2019-12-03 15:33:31 -07:00
Dan Stillman
f7d895ab52 Fix database after direct upgrade from Zotero 4 to 5.0.78-79 2019-12-03 14:03:22 -07:00
Dan Stillman
d9edf2965a Add IF EXISTS to DROP statements in schema update steps
https://forums.zotero.org/discussion/80291/zotero-standalone-wont-open-database-upgrade-error
2019-12-02 12:22:46 -07:00
Dan Stillman
222870d3c7 Don't update item type menus within transaction when updating schema
This caused an error reported here, though I can't reproduce it:

https://forums.zotero.org/discussion/80287/zotero-database-upgrade-error
2019-12-02 04:39:19 -07:00
Dan Stillman
61cebbd8f7 Fix display of a couple WebDAV verification errors
"spec is undefined"

Fixes #1745
2019-12-01 03:39:54 -07:00
Dan Stillman
4077428b4e Update locales from Transifex 2019-12-01 01:42:53 -07:00
Dan Stillman
76f1f9cae6 Use standard context menu in HTML input boxes
This fixes the context menu for text fields in the new React-based tags
box.
2019-11-30 00:43:42 -07:00
Dan Stillman
0fb9548326 Fix tags box context menu 2019-11-29 23:28:23 -07:00
Dan Stillman
fbb54a7621 Fix "string is undefined" export error
Regression from a549a64de9
2019-11-29 01:50:43 -07:00
Dan Stillman
4d7062fc43 Remove Zotero.Utilities.Internal.normalize()
It no longer works in Fx60, and String.prototype.normalize() has been
available since 2014, so that should just be used instead.
2019-11-26 23:18:17 -07:00
Dan Stillman
8c7677a009 Fix out-of-memory error syncing collections nested inside each other
It shouldn't be possible for collections to be nested this way, if it
happens, it shouldn't result in an infinite loop.

This removes one of the parent assignments at sync time.
2019-11-26 15:30:43 -07:00
Dan Stillman
8417ad7c80 Add extensions.zotero.reopenPanesOnRestart hidden pref
Closes #1752
2019-11-21 23:51:37 -07:00
Dan Stillman
98a0699f85 Properly disable React tags box in read-only mode 2019-11-15 04:06:21 -05:00
Dan Stillman
cc3f994207 Fix crash when clicking off an open tag to another item
Regression in React tags box
2019-11-13 05:33:16 -05:00
Dan Stillman
5ba5e70b9d Fix overflow issues in React tags box
- Properly truncate and ellipsize long tags
- Show scrollbar if tags go off the bottom of the pane

These both improve on the pre-React version, which didn't properly
truncate tags (at least in the current version, though I think it used
to) and scrolled the Add button off the top of the screen.
2019-11-13 05:31:12 -05:00
Dan Stillman
3e3e0b016d Move "Manage Attachments" to the Tools menu 2019-11-12 18:36:16 -05:00
Dan Stillman
a549a64de9 Remove 'yesterday'/'today'/'tomorrow' parsing from strToDate()
I don't think this ever should've been here. It was added in 2010 but
then added to itembox.xml a couple weeks later in d500b50e2, since
that's where the conversion should happen.

Closes #1749
2019-11-12 02:13:05 -05:00
Dan Stillman
b0eb048bce Fix New Item menu when tag pane is focused
Regression from 5791ffeb1
2019-11-12 01:37:57 -05:00
Dan Stillman
18d7e833c9 Fix open-in-library button in citation dialogs 2019-11-10 16:15:34 -05:00
Dan Stillman
ba92d244aa Add some missing license notices 2019-11-08 06:41:06 -05:00
Dan Stillman
5791ffeb16 Reactify item tags box
Improvements:

- Fixes autocomplete text remaining in field after selection in Fx60
- No more text or icon shifting on select (tested on macOS)

Changes:

- Tags are now selected on mousedown with no active state, as in web
  library

Regressions:

- Tooltip with tag type doesn't appear when hovering over icon
- Pressing Tab after modifying a tag loses focus
- Right-click in textbox shows custom menu instead of default text
  editing context menu (Cut/Copy/Paste)

To-do:

- Switch to this version for note tags box
- Style colored tags in autocomplete drop-down? Sort to top?
- Only show delete button on row hover, as in web library?
2019-11-08 06:41:06 -05:00
Dan Stillman
046637d76b Rename tag selector JSX files
Might as well stick to camel case for filenames
2019-11-08 06:41:06 -05:00
Adomas Venčkauskas
427044dfd2 Fixes UI artifacts in the progress window on macOS
This went unnoticed because the progress window is only ever displayed
in the Google Docs integration
2019-11-07 13:58:18 +02:00
Dan Stillman
6db1fbd13f Fix handling of app downgrade to lower global schema version 2019-10-28 06:12:10 -04:00
Dan Stillman
d96fe03fa2 Restart after migrating legacy locale prefs
DTDs are loaded based on the initial state of `intl.locale.requested`,
so if `intl.locale.matchOS` was false, we need to restart after
migrating that to keep part of the UI from being in the wrong locale.
(Before zotero/zotero-standalone-build@ced8a0fa63, it would've been
English. After it would probably be the OS locale.)

https://forums.zotero.org/discussion/79673/zotero-5-0-77-beta-has-no-localization-anymore
2019-10-27 03:49:48 -04:00