Martynas Bagdonas
1677e957cd
Properly ignore deleted PDF attachments and close pdf-reader tabs
...
#2006
2021-03-17 13:43:48 +02:00
Martynas Bagdonas
8013a6ce97
Do not select the closest tab when closing a tab that is not selected
2021-03-17 13:41:21 +02:00
Dan Stillman
ae98488d2b
Fix selectItem() on first items row (regression from d5334dc483
)
2021-03-17 00:31:42 -04:00
Dan Stillman
d5334dc483
Fix item tree breakage if annotation is added while search is active
2021-03-17 00:14:43 -04:00
Martynas Bagdonas
bb2f1ced99
Position pdf-reader color popup by element instead of coordinates
2021-03-15 20:27:24 +02:00
Dan Stillman
ed70b404ad
Tweak zoom labels in PDF reader context menu
...
"Automatic" → "Automatically Resize"
"Page Width" → "Zoom to Page Width"
2021-03-12 06:59:53 -05:00
Dan Stillman
76d504c564
Delete child annotations when deleting attachment
...
And fix a FK definition that could result in orphaned `items` rows
without `itemAnnotations` rows after an attachment was deleted.
2021-03-12 06:35:21 -05:00
Dan Stillman
0bc6b2ccc6
Transfer annotations when converting linked files to stored files
...
Previously, any annotations on the linked file were partially deleted,
leaving broken `items` rows without `itemAnnotations` rows.
2021-03-12 06:35:21 -05:00
Martynas Bagdonas
7b0bd05865
Add PDF page context menu, update editor & reader
...
Fixes #1978
2021-03-11 17:24:48 +02:00
Dan Stillman
cbfaed7abf
Update locales from Transifex and merge new English strings
2021-03-10 11:00:48 -05:00
Dan Stillman
98c101fd55
Notes pane: Change "Delete" to "Move to Trash" and remove confirm()
...
And remove unused _removeNote() function
We prompt to delete in the items list to distinguish from collection
removals, but it's arguably not necessary here, since you can always get
the item out of the trash. Undo would be nice, though.
2021-03-10 11:00:48 -05:00
Dan Stillman
24cc59cc7e
Compress single-file HTML attachments and other text files
...
The test for ZIP uploads was having multiple files, but now snapshots
are all single files.
2021-03-10 09:37:52 -05:00
Dan Stillman
249d1aa0da
Mendeley import: Add log lines for timing pdf-worker
2021-03-10 09:37:52 -05:00
Martynas Bagdonas
13cafe886e
Rework note editor toolbar and related UI
2021-03-09 17:37:44 +02:00
Dan Stillman
824f67cb36
Mendeley import: Ignore empty text highlights
2021-03-08 10:58:15 -05:00
Dan Stillman
e4d7089506
Mendeley import: Fix blank PDF attachment MIME type from previous imports
2021-03-08 09:55:26 -05:00
Dan Stillman
5cdc088c49
Mendeley import: Import highlight and note annotations
...
Using new PDF worker functionality
If you've previously imported, you should be able to import again to get
annotations in the new PDF reader.
Details:
- Text highlights will be processed to extract text
- Rectangle highlights will turn into image annotations
- Any extracted-annotation notes created by previous improts won't be
removed, but they're no longer created as long as the file exists.
2021-03-08 09:05:07 -05:00
Dan Stillman
c16432b217
Mendeley import: Set contentType for PDFs
2021-03-08 09:04:40 -05:00
Dan Stillman
3af4793f7f
Don't log warning when opening a PDF for the first time
...
"Setting contains an invalid attachment page index ('null') -- discarding"
Fixes #1973
2021-03-07 02:30:21 -05:00
Martynas Bagdonas
6e49da1452
Add notes list context menu
...
Fixes #1979
2021-03-06 00:51:00 +02:00
Martynas Bagdonas
a1206e8901
Add Mendeley annotations processor
2021-03-05 21:26:49 +02:00
Martynas Bagdonas
8b1b2ee56a
Fix ctrl+something default keyboard shortcuts
2021-03-04 17:02:10 +02:00
Dan Stillman
586a6f1ddf
Fix time zone of note modification time in notes pane
2021-03-03 17:06:27 -05:00
Dan Stillman
bda52827da
Reset note font size to 14 for new editor
2021-03-03 16:03:31 -05:00
Dan Stillman
49906c3fa0
Add "Export PDF" options to File menu
...
Quick implementation, but works on parent items or PDF attachments
Currently always includes annotations, but we'll want that to be an
option
2021-03-03 15:31:37 -05:00
Martynas Bagdonas
d893a02092
Properly check note schema version existence
2021-03-03 03:36:13 -05:00
Martynas Bagdonas
8755cf7338
Add missing schema version container
2021-03-03 03:36:13 -05:00
Dan Stillman
a7b7f5f8b4
Update locales from Transifex and merge new English strings
2021-03-03 03:36:13 -05:00
Dan Stillman
d98fabc5ab
Add annotation type to schema
2021-03-03 03:33:52 -05:00
Dan Stillman
bffefe6644
Refer to PDF reader preview as a preview in the prefs
2021-03-03 00:59:27 -05:00
Dan Stillman
301c13befb
Remove unused strings
2021-03-03 00:44:33 -05:00
Dan Stillman
79e52beb38
Update text of outdated doc template warning
2021-03-02 18:12:25 -05:00
Dan Stillman
2fbb7d404a
Fix visual bugs in progress bar and Quick Format dialog on macOS
...
Fix extra whitespace and misaligned Z icon
Update to e918b430b6
after some recent changes
2021-03-02 18:12:25 -05:00
Dan Stillman
f861249fce
Tweak error for Add Note when beta features are disabled
...
And remove from localized strings
2021-03-02 18:12:25 -05:00
Dan Stillman
03ac62e71e
Tweak PDF reader checkbox label
2021-03-02 18:12:25 -05:00
Dan Stillman
5fd7f097f3
Add "Learn more" link below PDF reader checkbox
2021-03-02 18:12:25 -05:00
Dan Stillman
94871dade6
Add Cancel button to prompt for PDF reader checkbox
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
607cb733da
Adds a friendly date and subsequent note line for note insertion
...
Closes #66
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
91ac847bab
Inform connector about PDF build to enable Add Note button in Google Docs
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
02fc8bf39f
Add an error message when using the Add Note button with beta disabled
...
Closes #67
2021-03-02 18:12:24 -05:00
Martynas Bagdonas
3aa79f40d7
Populate PDF reader tab title immediately
2021-03-02 18:12:24 -05:00
Martynas Bagdonas
17abf87bcf
Improve notes list UI:
...
- Show both sections even on search
- Add new note creation popups with an option to create from annotations
- Hide child notes section if no parent item
2021-03-02 18:12:24 -05:00
Dan Stillman
ca15e03701
Add commas to "[x] more…" count in notes pane
2021-03-02 18:12:24 -05:00
Dan Stillman
590b6b4a34
Adjust sizing of notes pane search bar and + buttons
2021-03-02 18:12:24 -05:00
Dan Stillman
ebf45a3232
Fix tab bar initialization on macOS after isPDFBuild change
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
e166a04876
Fix outdated template warning for Mac Word
2021-03-02 18:12:24 -05:00
Dan Stillman
7cd861a9e1
Change PDF reader beta pref to a general beta pref
...
The PDF reader pref is now "Use Zotero PDF reader and new note editor
(beta, My Library only)". Toggling the pref prompts to restart, and
Zotero.isPDFBuild -- which currently controls the PDF reader, new note
editor, and tabs UI -- is set based on that pref at startup.
2021-03-02 18:12:24 -05:00
Dan Stillman
557a75c90f
Fix quotes in invalid-field error messages
2021-03-02 18:12:24 -05:00
Dan Stillman
1e8f2b94d4
Don't show annotation fields in advanced search for now
...
Since annotations don't show up as items yet
2021-03-02 18:12:24 -05:00
Martynas Bagdonas
7bdd34596d
Improve notes list UI:
...
- Always show both sections
- Do not show empty sections when searching
- Collapse notes list when all tabs are closed
- Work around search input to take full width without breaking its stuff
2021-03-02 18:12:24 -05:00