Commit graph

8486 commits

Author SHA1 Message Date
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
d2b3ca0cca Remove ellipsis from "RTF Scan" menu item
For consistency with new separate "ODF Scan" menu item from plugin
2019-12-10 14:25:17 -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
22a1b5b2ac Update locales from Transifex 2019-12-03 20:01:00 -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
858de5e6f2 Update locales from Transifex 2019-12-01 19:00:15 -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
88b1e10b44 Update locales from Transifex 2019-11-30 01:56:54 -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
7c8aed2a34 Update locales from Transifex 2019-10-28 06:12:10 -04:00
Philipp Zumstein
bd1d9dbbf0 Use the label Prog. Language for Computer Program (#1743) 2019-10-28 05:38:55 -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
Dan Stillman
1a66f5e518 More locale detection fixes for Firefox 60
`intl.regional_prefs.use_os_locales` isn't actually equivalent to
`intl.locale.matchOS` -- an empty string for `intl.locale.requested` is,
and that's set by calling `setRequestedLocales(null)`.

Mozilla documentation:

https://firefox-source-docs.mozilla.org/intl/locale.html
2019-10-27 03:10:48 -04:00
Dan Stillman
7ebbc7a0ab Fx60: Fix "Set Up Syncing" link in intro pane 2019-10-27 03:04:41 -04:00
Dan Stillman
84c7c2f1d6
Merge pull request #1744 from bwiernik/extraToCSL-fix
Add 'type' to variables list for extraToCSL
2019-10-26 17:05:33 -04:00
Dan Stillman
c25fbe7c1c Remove all colored tags on selected items if 0 is pressed
Like Thunderbird
2019-10-26 16:45:04 -04:00
Dan Stillman
e64273fb93 Remove libraryID parameter from Zotero.Tags.toggleItemsListTags()
No longer used
2019-10-26 16:45:04 -04:00
Dan Stillman
d8b5f30504 Fix number key assignment of colored tag without any items
Fixes #1464
2019-10-26 16:44:55 -04:00
Brenton M. Wiernik
9f5e95a054 Add 'type' to variables list for
So that it can be stored in Extra as "Type:" instead of "type:"

Replaces https://github.com/zotero/zotero/pull/1688
2019-10-26 13:31:02 -04:00
Dan Stillman
e7d0e282e7 Fix some locale detection bugs after 513f7d6555
- When upgrading from Fx52, don't show "Automatic" for
  a manually selected locale.
- Make sure Zotero.locale is always set to a known language tag
- Fix inconsistencies between Zotero.Locale.availableLocales and
  chrome.manifest
2019-10-26 01:27:14 -04:00
Dan Stillman
5779b60418 Update new item type MRU menu for global schema
And fix a Zotero 5 regression in which the MRU menu wasn't updated when
changing the item type after using the new-item keyboard shortcut
2019-10-25 15:22:54 -04:00
Dan Stillman
c3fd958ed7 Fix keyboard shortcuts
Regression from 54b268fe01
2019-10-25 15:18:28 -04:00