Commit graph

11916 commits

Author SHA1 Message Date
Martynas Bagdonas
b4cf566d0d Return back writeAtomic for PDF reader setState #2210 2021-11-05 17:09:40 +02:00
Dan Stillman
f583416d80 Update locales from Transifex and merge new English strings 2021-11-05 03:42:02 -04:00
Dan Stillman
eb4090058d Tweak menu position and alert text for annotation transferring 2021-11-05 00:30:06 -04:00
Dan Stillman
f400d2a4a4 Include item type name in field-not-valid-for-type error 2021-11-05 00:29:45 -04:00
Tom Najdek
7940915bb0
Fix arXiv ID not imported. Fix #2236. (#2238)
Mendeley online schema uses "arxiv", local DB uses "arxivId" hence it
was skipped. This commit adds mapping and a test.
2021-11-04 15:32:35 -04:00
Tom Najdek
882ecc205e
Mendeley import: Remove code to patch after earlier imports (#2234)
Fixes #2233, Mendeley import: Invalid-field-for-type error
2021-11-03 23:32:36 -04:00
Martynas Bagdonas
c9d4ff4314 Add additional error logging for PDF reader and note editor 2021-11-03 11:50:21 +02:00
Martynas Bagdonas
6ac663a002 Encode a wider range of unicode characters when inserting a note 2021-11-02 15:06:40 +02:00
Adomas Venčkauskas
d530d9cf95 Fix collection open state persistance. Closes #2228 2021-10-29 11:28:41 +03:00
Martynas Bagdonas
90cc53361b Refocus to the last focused node when switching back to Zotero Pane tab 2021-10-28 11:25:25 +03:00
Adomas Venčkauskas
be49786668 Fix column reordering and hiding breaking sorting 2021-10-27 15:18:10 +03:00
Adomas Venčkauskas
5f3eeb7fcd Revert "Hack to fix sorting after reordering columns"
This reverts commit 69a43ec456.
2021-10-27 15:18:10 +03:00
Adomas Venčkauskas
aa7e502bad Restore ability to select individual items in duplicates view.
Closes #2225. Only mouse clicks without modifiers will select the group
of duplicate items. This is the same behavior as with the XUL tree.
2021-10-27 15:18:10 +03:00
Martynas Bagdonas
bc8b1a7c6d
Implement annotations transferring (#2202) 2021-10-27 13:48:40 +03:00
Martynas Bagdonas
a4cf36794e Focus itemsView when switching to Zotero Pane tab 2021-10-27 11:58:35 +03:00
Martynas Bagdonas
91dfcc96bf Make ZoteroPane keydown handler to catch all key presses on the window
Fixes #2231
2021-10-27 11:58:34 +03:00
Martynas Bagdonas
cdb826e358 Don't suggest to create note if only ink annotations exist 2021-10-26 16:56:15 +03:00
Martynas Bagdonas
3ed23e5cce Fix PDFRenderer ink annotations rendering 2021-10-26 15:02:12 +03:00
Martynas Bagdonas
3736a93c2c Add a work-around for mouseup events that are never triggered in reader 2021-10-26 12:12:03 +03:00
Martynas Bagdonas
d1322bd4b6 Improve PDFRenderer efficiency and add support for ink annotations 2021-10-25 12:46:12 +03:00
Martynas Bagdonas
59455ebfa7 Improve ink annotations support:
- Allow to select in sidebar or PDF page
- Allow to delete or change color
- Generate image and store as with image annotation
2021-10-22 10:14:28 +03:00
Martynas Bagdonas
6206209ed2 Fix item pane opening creator-type-menu in a wrong itembox binding 2021-10-19 17:14:44 +03:00
Dan Stillman
5f61ac23aa Don't include non-regular items in one-off bibliographies
Applies to "Create Bibliography from Collection" and "Create
Bibliography from Items". Quick Copy already got this right.

https://forums.zotero.org/discussion/92305/sticky-notes-showing-in-bibliography
2021-10-18 17:53:14 -04:00
Martynas Bagdonas
a07c052cf0 Allow to use Quick Copy from PDF reader tab
Fixes #2023
2021-10-18 09:57:57 +03:00
Adomas Venčkauskas
4e68b624f2 Persist column settings in the select items dialog. Closes #2224
I didn't check the previous behavior, but I assume it's the same:
This will persist the same settings for the select items dialog in the
classic citation view as well as the add related item dialog.
2021-10-15 15:43:00 +03:00
Adomas Venčkauskas
7a9bd56b9d Fix when dragging outside of the text of item pane message. Closes #2223 2021-10-14 15:33:43 +03:00
Dan Stillman
9432cb7e72 Update translators 2021-10-14 04:53:02 -04:00
Dan Stillman
2a99e19641 Update note-editor and pdf-reader submodules 2021-10-14 04:52:09 -04:00
Dan Stillman
67720cf74e Update note-editor submodule 2021-10-13 15:00:11 -04:00
Dan Stillman
3d4a1a230e
Merge pull request #2217 from tnajdek/2216-mendeley-import-skips-over-large-files
Concurrently downloading large files
2021-10-13 13:20:00 -04:00
Martynas Bagdonas
8b11737b82 Import existing images when opening a note
#2186
2021-10-13 17:49:44 +03:00
Martynas Bagdonas
a4f09419e5 Fix context pane not properly assigning new note as standalone/child 2021-10-08 22:18:23 +03:00
Martynas Bagdonas
645eb86cbc Don't focus Zotero Pane window when opening a tab in background 2021-10-05 17:30:44 +03:00
Martynas Bagdonas
3c3eac43de Don't focus recognized PDF parent if Zotero Pane tab is not selected 2021-10-05 17:30:44 +03:00
Adomas Venčkauskas
78e31cf50f Fix broken font scaling in the retrieve metadata/progress queue dialog.
Closes #2218
2021-10-05 12:55:38 +03:00
Adomas Venčkauskas
62e2ccafa0 Replace deprecated usage of Utilities.itemToCSLJSON 2021-10-05 12:55:38 +03:00
Adomas Venčkauskas
82eb7453a8 Add a method to remove event listeners from event dispatchers 2021-10-05 12:55:38 +03:00
Martynas Bagdonas
05139cfff8 Persist pdf-reader sidebar width
#2184
2021-10-04 17:10:31 +03:00
Martynas Bagdonas
7f23533ee9 Automatically update citations when user opens a note 2021-10-04 13:23:03 +03:00
Tom Najdek
a745cde2cf
New implementation of a download function #2216
This resolves a problem where, in certain scenarios,
Zotero.file.download throws an exception even though file is
successfully downloaded.

Furthermore this new download function should be more memory-efficient,
improving performance when dealing with large files.
2021-10-02 00:39:10 +02:00
Tom Najdek
a08c3dee14
Add tests for Zotero.File.download #2216
This test covers couple of scenarios downloading a 16MB file from a
local http server (simple and concurrently) using Zotero.File.download.

When running current implementation, this seems to fail persistently.

In real-world usage, current implementation seems to work
intermittently, failing more often for larger files.

This intermittent behaviour is most likely cause of #2216.
2021-10-02 00:39:09 +02:00
Martynas Bagdonas
3b84e29c9e Update context pane notes list when note is moved to/from parent 2021-10-01 14:47:50 +03:00
Martynas Bagdonas
47c61d3a4d Add limitations for attachment notes 2021-10-01 13:19:20 +03:00
Martynas Bagdonas
e09f1ba5d2 Fix pdf-worker build script 2021-09-27 14:39:53 +03:00
Martynas Bagdonas
c0ecd7691b Focus parent from tab "Show in Library", and PDF file from File menu 2021-09-27 13:46:19 +03:00
Martynas Bagdonas
1f634f9e31 Use OS.File.writeAtomic without tmpPath to avoid #2210 2021-09-23 13:53:47 +03:00
Martynas Bagdonas
47d4949b2a Upgrade note-editor schema to v5:
- Make citation node a leaf node.
- Don't parse citation node inner text.
- Don't trigger citation inner text updating on citation item changes.
- Format citation text only when serializing note HTML.
- Wrap individual citation items into `<span class="citation-item"></span>`.
2021-09-22 19:30:44 +03:00
Dan Stillman
4cfa230508 Add module import shim for 'zotero/filePicker' for plugins
Changed to 'zotero/modules/filePicker' in af597d943b, but a lot of
plugins haven't yet been updated
2021-09-18 06:57:35 -04:00
Dan Stillman
571801e1fb Fix min-height on search results in advanced search window
Regression from HTML tree

Fixes #2206
2021-09-17 06:11:51 -04:00
Dan Stillman
57c9da6df3 Spaces → tabs in _item-tree.scss 2021-09-17 06:11:51 -04:00