Adomas Ven
cfbfcf20bf
Refactor l10n code. Remove use of react-intl. ( #2975 )
...
Strings from .dtd files are now accessible from Zotero.getMessage
as the eventual move to Fluent would remove their distinction.
2023-02-10 10:26:49 +02:00
Dan Stillman
bcfdaaabab
Update Retraction Watch retraction reasons
2023-02-10 01:55:23 -05:00
Dan Stillman
bac87cbc42
Detect retractions for DOIs with capital letters
...
https://forums.zotero.org/discussion/102745/retraction-watch-not-working
2023-02-10 01:55:12 -05:00
Dan Stillman
c6bcc2572c
Add PDF reader tab title pref to General pane
2023-02-10 01:54:36 -05:00
Dan Stillman
3be8abeae2
Fix broken creator autocomplete if place
becomes a base field
...
Well this was a wild one to debug.
Creator fields were only initialized for autocomplete due to a series of
>10-year-old bugs:
1) In `showEditor()`, `Zotero.ItemFields.isAutocompleteField(fieldName)`
was called for creator fields, which would pass, e.g.,
`creator-0-lastName`.
2) In `isAutocompleteField()`, `ItemFields.getName()` would normalize
`creator-0-lastName` to `false`, since it's not a valid field.
3) `isAutocompleteField()` listed `place` as a base field despite its
not having any mapped fields, so when `getTypeFieldsFromBase()` was
called on it, the return value would be `false`, which would be added
to the list of autocomplete fields, which would mean that the
normalized field of `false` from `creator-0-lastName` would match,
which would mean that `isAutocompleteField('creator-0-lastName')`
would always return true...as long as `place` never gained a mapped
field.
Except `isAutocompleteField()` wasn't supposed to be the test for
initializing autocomplete for creator fields anyway -- `fieldName ==
'creator'` was. But `fieldName` is something like `creator-0-lastName`,
not `creator`, which meant that that test always failed, which meant
that if `place` did gain a mapped field, both tests would fail, which
would cause the creator field not to be initialized for autocomplete,
which would cause it to break as soon as you started to type into it.
This fixes that.
2023-02-10 01:39:31 -05:00
Martynas Bagdonas
a78860f092
Add Filename option for PDF tab title pref
2023-02-09 17:21:21 +00:00
Dan Stillman
382bde0fc2
Rename PDF tab title pref to include reader
...
In case we have a separate pref for notes or something else
(cherry picked from commit 6d0e5959e6
)
2023-02-09 17:21:21 +00:00
Martynas Bagdonas
c0c1d011fa
Add a hidden pref for tab title with support for Creator-Year-Title option ( #2985 )
...
(cherry picked from commit a5fb64f295
)
2023-02-09 17:21:21 +00:00
Dan Stillman
8272989171
Add DOMParser to plugin scope
2023-02-09 05:36:03 -05:00
Abe Jellinek
4865f8afca
Scaffold: Await more async functions
...
Might help prevent a deadlock I experienced when switching back to Zotero after
changing a translator file externally (although I can't reproduce it).
2023-01-23 12:32:30 -05:00
Dan Stillman
786d3db880
Revert "Limit Windows version to 2 PDF tabs in memory"
...
This reverts commit ffc8088ccd
.
I cherry-picked this, but it's not necessary in Zotero 7, which has a
Win64 build.
2023-01-17 23:09:05 -05:00
Dan Stillman
3d4b93c86a
Fix DOI field context menu not appearing after field edit
...
Context menu wouldn't appear again until the item box was refreshed
2023-01-17 23:05:48 -05:00
YFdyh000
bb5fe45f31
Show fieldLocalizedName in Scaffold - List All Fields ( #2965 )
2023-01-17 10:39:02 -05:00
Abe Jellinek
7e0b898765
fx-compat: Preferences: Fix pane script global object
...
Panes were being loaded with Zotero_Preferences as their global scope, so global
variables they defined would be set on that object instead of the window.
2023-01-17 10:28:57 -05:00
Adomas Venčkauskas
b6edaea54c
fx102: Fix Word for Windows initialization and prefs
2023-01-13 09:56:59 +02:00
Dan Stillman
c7da16f07d
Add protection against immediate retries in delayGenerator
2023-01-11 02:31:08 -05:00
Dan Stillman
6a1f0251cd
Fix incorrect retries if multiple HTTP.request() calls get 500s
...
https://forums.zotero.org/discussion/comment/425814/#Comment_425814
The passed intervals array was modified, so after a request() got a 500,
subsequent calls would start with longer delays and eventually start
retrying immediately.
2023-01-11 02:20:07 -05:00
Dan Stillman
437b457134
Additional logging for "Invalid sync state undefined"
...
https://forums.zotero.org/discussion/102186/invalid-sync-state-undefined
2023-01-08 02:02:28 -05:00
Martynas Bagdonas
ffc8088ccd
Limit Windows version to 2 PDF tabs in memory
...
Fixes zotero/zotero#2955
2023-01-08 02:02:28 -05:00
Abe Jellinek
7e7e8b88a2
LABD file relinking: Process using Unix paths ( #2961 )
2023-01-05 15:40:28 -05:00
Dan Stillman
959e868126
Read default prefs from prefs.js in a plugin's root directory
...
The file should follow the same `pref("extensions.foo.bar", "value");`
syntax as files previously in defaults/preferences/, which should no
longer be used in Zotero 7. (For an extension that works in both Zotero
6 and 7, it's OK to have a file in defaults/preferences for Zotero 6 and
an identical prefs.js for Zotero 7.)
Files in defaults/preferences/ aren't automatically loaded when a plugin
is installed/enabled but are still loaded at app startup by Mozilla code
for now. Plugins shouldn't count on that continuing to be the case in
Zotero 7 and should switch to prefs.js.
We'll add a way for bootstrapped plugins to manually trigger reading of
a prefs.js file in Zotero 6.
2023-01-05 01:53:03 -05:00
Dan Stillman
83792757de
Remove pref code for <Fx59
2023-01-05 01:09:28 -05:00
Abe Jellinek
fc8a037d12
Zotero.HTTP.request(): Process headers case insensitively
...
Using the Headers class from the Fetch API.
Before, the added test would fail: `_requestInternal()`, not finding a header
named `Content-Type` (case sensitive), would set it to
`application/x-www-form-urlencoded`. XMLHttpRequest, upon being given both
`content-type`: `application/json`) and `Content-Type`:
`application/x-www-form-urlencoded`, would helpfully merge the two, producing
`content-type`: `application/json, application/x-www-form-urlencoded`. That's
obviously not the correct behavior.
2022-12-23 21:37:15 -05:00
Abe Jellinek
e46ffaf84b
Add /connector/request endpoint
2022-12-23 21:37:15 -05:00
Dan Stillman
bad4597a86
Add mechanism for setting preferences remotely
...
Limited to a hard-coded list
Initially limited to `extensions.zotero.import.mendeleyUseOAuth`,
to switch the Mendeley importer from direct login to OAuth
2022-12-23 17:26:20 -05:00
Dan Stillman
32b6e0a485
Allow 204 response to OPTIONS request from WebDAV server
...
https://forums.zotero.org/discussion/101824/possible-to-allow-http-204-response-for-options-request-in-webdav-server-check
The specs used to (seemingly inadvertently) disallow 204 for OPTIONS,
but they've been clarified to make it clear that it's allowed [1], and MDN
now even shows it as an example [2].
[1] https://stackoverflow.com/a/57455110
[2] https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
2022-12-23 17:26:04 -05:00
Abe Jellinek
da075fb215
fx-compat: Scaffold: Fix Tests richlistbox growing when tests are added
2022-12-20 13:19:22 -05:00
Adomas Venčkauskas
c12e5659ab
Fix a potential bug in integration plugin when field codes are corrupt
2022-12-14 16:26:33 +02:00
Dan Stillman
75aa17f169
Fix running function passed to Zotero.openInViewer()
...
This fixes plugin removal in the Add-ons window.
Broken by b8966f7878
2022-12-11 18:39:27 -07:00
Dan Stillman
e7fa5d7f9d
Add setTimeout
and clearTimeout
to plugin scope
2022-12-10 02:11:30 -07:00
Abe Jellinek
45e0340787
v-t: Fix freeze when type-to-find wraps and first row is selected
2022-12-06 14:58:58 +02:00
Adomas Venčkauskas
e59bcd2b64
Link Mendeley citations in documents to imported items. Closes #2622
2022-11-29 16:27:19 +02:00
Dan Stillman
76f2f0c783
Don't show items with annotated attachments after moving to trash
...
https://forums.zotero.org/discussion/100775/deleted-items-keep-reappearing-in-my-library
Regression from c3ee588bf
2022-11-28 04:34:49 -05:00
Abe Jellinek
ca1f83e9c9
fx-compat: Tag Color Chooser: Don't disable label
...
The default styles make it a strange-looking gray color, and there's no reason
to disable it separately if the element it's connected to is disabled.
2022-11-22 21:00:35 -05:00
Abe Jellinek
16eac5040b
fx-compat: Fix error when switching language to Automatic
...
Services.locale always wants an array now, but it can be empty.
We still get "Uncaught (in promise) undefined" printed to the console, no stack,
not caught by "Pause on exceptions" in the debugger... but it's not clear that
that's actually coming from this code, and it doesn't seem to prevent anything
from working.
2022-11-22 20:53:29 -05:00
Adomas Venčkauskas
f98ab3b0a6
Import URL from XPCOM code instead of relying on window for Proxy code
...
Also fix other failing proxy tests. Closes #2928
2022-11-22 15:58:49 +02:00
Adomas Venčkauskas
b561aff94f
Avoid locator detection on paste in citation dialog. Closes #2856
...
Locators will get detected if there is additional typing or editing
after the paste
2022-11-22 15:54:30 +02:00
Adomas Venčkauskas
4fa208d4d7
fx-compat: Fix pasting in quick format dialog
2022-11-22 15:52:57 +02:00
Adomas Venčkauskas
350a5d2cbb
Fix quick format locator regexp to not match numbers without space.
...
Closes #2915
2022-11-22 15:51:54 +02:00
Adomas Venčkauskas
e8356de3c1
Proxy code: ensure URL constructor in non-window JS scope
...
Closes #2924
2022-11-22 15:51:54 +02:00
Abe Jellinek
4b09edfa42
fx-compat: Add color picker CE ( #2682 )
2022-11-21 02:48:16 -05:00
Dan Stillman
4dbb2d88b9
Update styles, translators, and CSL locales
2022-11-21 01:14:07 -05:00
Dan Stillman
90cf3c9049
Merge new English strings
2022-11-21 01:14:07 -05:00
Dan Stillman
5a82aa952d
Don't allow note on embedded-image attachments
...
https://github.com/windingwind/zotero-better-notes/issues/212
2022-11-21 01:14:07 -05:00
Dan Stillman
b5862ba780
Handle relative PDF links when using custom PDF resolver
2022-11-21 01:14:07 -05:00
Dan Stillman
1f0a721101
Fix focus stealing in item box ( #2885 )
...
Port of #2895
2022-11-21 01:14:07 -05:00
Adomas Venčkauskas
0e4cdda8c7
Prevent citation merging from being always enabled after refreshing the doc
2022-11-21 01:14:07 -05:00
Abe Jellinek
00b387afc2
fx-compat: Toolbar fixes ( #2922 )
...
- Don't rely on Zotero.hiDPISuffix being initialized in menuToolbarbutton.js --
it probably hasn't been at the time that the code that creates the dropmarker
is running
- Fix merge mistake that created a duplicate block of CSS
2022-11-21 00:07:59 -05:00
Abe Jellinek
74492e40c4
Improve bidi & RTL support ( #2415 )
...
- Render cell text in its native direction
- Fix context menu positioning
- Fix item box (localizations needed)
- Fix column resizing
- Fix bidi text in collection tree
- Always right-align in RTL, always left-align in LTR.
I'm going off advice from this excellent guide for RTL website design
by Ahmad Shadeed: https://rtlstyling.com/posts/rtl-styling#tables
- Join creators in the tree ("Smith and Jones") using a format string to
support languages like Arabic and Hebrew where there shouldn't be a
space after the "and".
- Fix tabs
- Fix toolbar on Mac, flip icons on other platforms
2022-11-20 18:23:17 -05:00
Adomas Venčkauskas
93bba41dd5
Don't throw when getting potential proxies with invalid URL
2022-11-15 13:54:33 +02:00
Adomas Venčkauskas
ed46d8c53c
Deproxify homepage URLs without trailing slash. Closes #2884
2022-11-15 13:22:52 +02:00
Dan Stillman
039142e50d
Fix clearing of active quick search after annotation change
...
https://forums.zotero.org/discussion/90727/search-results-disappear
2022-11-14 22:55:17 -05:00
Abe Jellinek
a7b605f0cc
Add "Open PDF reader in new window" preference ( #2868 )
...
When enabled:
- Double-clicking a PDF or choosing "Open PDF" opens a new window
- Shift-double-clicking opens a new tab
- "Open in New Window" locate option becomes "Open in New Tab" and has the
reverse behavior
2022-11-14 17:12:48 -05:00
Abe Jellinek
b6591dba5a
Make Feeds row into a selectable global view of feed items ( #2800 )
2022-11-14 16:55:28 -05:00
Abe Jellinek
318ec4074e
fx-compat: Style Editor: Validate inline ( #2745 )
2022-11-12 05:31:29 -05:00
Adomas Venčkauskas
e789872efe
Improve cookie-sandbox behavior when getting attachments via WBP
...
Previously cookies only got attached on the initial request but not on
any redirect and subsequent request. This may have been the cause for
many reports of import failures behind proxies in the past.
2022-11-11 12:56:12 +02:00
Abe Jellinek
cda0e0cf6d
Add "Any Field" advanced search condition ( #2902 )
2022-11-10 21:55:09 -05:00
Abe Jellinek
177da5937e
Add "Add to Dictionary" to note editor context menu ( #2897 )
...
As well as "Undo Add to Dictionary", as in Firefox.
2022-11-10 17:50:40 -05:00
Adomas Venčkauskas
eaeb144c3b
Fix a cookie sandbox regression e537018
2022-11-10 14:58:27 +02:00
Adomas Venčkauskas
26f1d6125b
Fix proxied urls not unproxifying (regression 1116b05f
)
...
Technically this code has been wrong for a long time, but it only
manifest now. It seems that the equivalent code in translate module
was fixed when that code was extracted into a separate repo
2022-11-10 12:45:31 +02:00
Adomas Venčkauskas
249fbfad15
Update translate submodule
2022-11-10 12:28:44 +02:00
Adomas Venčkauskas
1116b05f1d
Always replace dots to hyphens for https proxy schemes
2022-11-10 12:28:44 +02:00
Abe Jellinek
9cc2993e70
fx-compat: Fix Locate Manager appearance
...
- Correct padding and don't use Mozilla preferences styles
- Fixed v-t issue that applied the wrong class names to columns, giving them
incorrect widths
2022-11-07 16:05:21 -05:00
Abe Jellinek
3af5976aa2
fx-compat: Preferences: Manage pref observers for elements added later
2022-11-03 11:52:54 -04:00
Abe Jellinek
e4b290a394
fx-compat: Replace more XUL createElement() calls
2022-11-02 16:01:48 -04:00
Abe Jellinek
76f844da2f
Scaffold: Autocomplete translator IDs in setTranslator() calls
2022-11-01 16:36:44 -04:00
Abe Jellinek
ac8db7a376
fx-compat: Scaffold: Fix type-to-find not receiving ' '
2022-11-01 16:05:17 -04:00
Abe Jellinek
1aebad3c19
Scaffold: Fix copying JSON test data
...
Previously only copied '[object Object]'.
2022-11-01 16:04:24 -04:00
Dan Stillman
b5ce8b655a
Fix error copying from note if note Quick Copy format is "HTML"
...
In this case, Note Markdown wouldn't be preloaded, but it's always used
for copying from the note editor, and since the note editor uses
`noWait`, this would result in "Code promise is not resolved in noWait
mode".
2022-11-01 03:56:25 -04:00
Dan Stillman
cbb1ebad33
Fix Quick Copy drag after reiniting translators
...
Zotero.Translators.reinit() didn't reinit Quick Copy, so if an export
translator was selected it wouldn't be preloaded again and dragging
would fail with "Code promise is not resolved in noWait mode".
2022-11-01 03:19:22 -04:00
Adomas Venčkauskas
228e8407a7
Make colored tagging via keyboard layout independent
...
Report https://forums.zotero.org/discussion/100717/tag-number-shortcut-with-mac-raccourci-clavier-pour-marqueurs-avec-un-mac
2022-10-31 09:45:27 +02:00
Dan Stillman
8e59e49d29
Avoid infinite/excessive loops in Find Available PDF
...
https://forums.zotero.org/discussion/100634/potential-infinite-loop-when-trying-to-find-available-pdf
Closes #2883
2022-10-30 04:44:31 -04:00
Dan Stillman
4722366b42
Update Mac Word automation settings instructions for Ventura
2022-10-29 16:42:28 -04:00
Dan Stillman
7a45047f8f
Fix comment for Zotero.Attachments.getPDFResolvers()
2022-10-29 04:41:16 -04:00
Dan Stillman
59cb33d231
Retry only twice on error in Find Available PDF
...
Not three times
2022-10-29 04:41:10 -04:00
Dan Stillman
06b23cca94
Fix hang on 500 from site during Find Available PDF
...
Find Available PDF has its own domain-based retry logic that predated
automatic 5xx retries in Zotero.HTTP, so disable the latter and fix some
bugs in the former.
Fixes #2700
2022-10-29 04:38:57 -04:00
Adomas Venčkauskas
d658e05363
Truncate long citation text in citation dialog. Closes #2879
2022-10-28 15:08:26 +03:00
Abe Jellinek
57916c032f
Attachment box: Add ability to copy URL of snapshot/link ( #2748 )
...
Fixes #2747
2022-10-27 16:54:50 -04:00
Dan Stillman
d850a8be7d
Don't localize "Markdown" in Quick Copy settings
2022-10-27 05:06:55 -04:00
Dan Stillman
c6448bd9c1
Add Zotero.Utilities.Internal.stringWithColon() for localized colons
...
Generally just a colon, but, e.g., French adds a space before it. We'll
want to replace uses of `punctuation.colon` with this.
2022-10-27 05:05:47 -04:00
Dan Stillman
c51cb88c97
Adjust layout of Quick Copy note format options
...
Also:
- Hide format options until translators are loaded (since otherwise
the checkboxes don't have labels and the layout is messed up)
- Remove unnecessary "zotero-" prefix from the new elements
2022-10-27 05:04:16 -04:00
Dan Stillman
a95a2937c1
Reset note Quick Copy pref on upgrade if set to Markdown + Rich Text
...
The default JSON pref value used spaces, but changing the drop-down
resulted in a version without spaces, so simply changing the default to
include the new link options wouldn't change all existing installs and
the "Include App Links" checkbox wouldn't show as enabled for Markdown.
This adds a pref migration step to reset the pref to the new default if
it's set to Markdown + Rich Text, regardless of whitespace differences.
2022-10-27 04:50:04 -04:00
Martynas Bagdonas
da7c73b662
Add "Include Zotero Links" option for note export and QuickCopy
...
Fixes #2349
2022-10-27 04:49:11 -04:00
Dan Stillman
09f0f74104
Fix error message for invalid field in Item.setField()
...
The error message was showing a field instead of an item type.
https://forums.zotero.org/discussion/100598/error-1533410729-impossible-to-correct-date-field-in-items-added-with-zotero-conector-ver-6-0-15
2022-10-27 03:47:54 -04:00
Dan Stillman
3a77eb85ed
Don't match all attachments with annotations for "not" search conditions
...
Fixes #2867
2022-10-27 03:46:18 -04:00
Dan Stillman
fe016edf33
PDF reader: Hide "Rotate Page 180°" menu option for now
...
Rotating will speed up with Zotero 7, so maybe we can do without this.
2022-10-27 03:43:34 -04:00
Dan Stillman
ff3a74064b
PDF reader: Add "Page" to rotate menu options for clarity
2022-10-27 03:41:28 -04:00
Martynas Bagdonas
454a2c186b
Add rotation options to Edit menu to rotate the current PDF page
...
(cherry picked from commit d8d6054927
)
2022-10-27 03:39:56 -04:00
Martynas Bagdonas
03ba306018
Reduce loaded tabs limit if the system has 8 GB or less memory
2022-10-27 03:01:42 -04:00
Adomas Venčkauskas
19558a425b
Fix wrong given name disambiguation after editing author for citeproc-js
...
Closes #2870
2022-10-25 14:50:05 +03:00
Adomas Venčkauskas
87a567122e
Fx102: Fix Integration tests
2022-10-25 13:48:39 +03:00
Adomas Ven
ee67c848d7
Adds support for merging adjacent citations ( #2875 )
2022-10-25 13:19:14 +03:00
Abe Jellinek
93666d310e
Zotero.PreferencePanes: Fix shutdown observer error ( #2845 )
...
`this` referred to the observer instead of Zotero.PreferencePanes, so
`this.pluginPanes.length` caused an error and plugin panes were not removed.
2022-10-16 16:06:22 -04:00
Abe Jellinek
ccc94e7b45
fx-compat: Add stylesheets parameter to PreferencePanes.register() ( #2845 )
...
And just fully reload the preferences window when the pane array changes. The
preferences window won't often be open when a plugin is enabled or disabled,
considering that the Add-ons window is external to the preferences, and trying
to add/remove panes dynamically without reloading brings lots of bugs.
(No way to dynamically remove a script, for one.)
2022-10-16 16:06:05 -04:00
Abe Jellinek
f81a81cb74
fx-compat: Preferences: Activate <?xml-stylesheet?>s, default to XUL ( #2845 )
2022-10-16 16:05:51 -04:00
Abe Jellinek
c1bb910d1c
Clear sync error and start sync after logging in in prefs ( #2802 )
...
Also fixes an existing error due to an argumentless call to
Zotero.Sync.Runner.updateIcons() in ZoteroPane.
2022-10-16 15:47:54 -04:00
Dan Stillman
f9a0622c30
Merge new English strings
2022-10-13 02:20:42 -04:00
Dan Stillman
961e5b955d
Default to UTF-8 when indexing text file without detected charset
...
https://forums.zotero.org/discussion/94637/indexing-of-markdown-plain-text-attachments-with-md-extension
2022-10-13 02:20:42 -04:00
Dan Stillman
23a6af128b
Change connector server response to "Zotero is running"
...
People are confused by "Zotero Connector Server is Available". I'm not
sure if this will be any better, but not mentioning the connector might
help -- that seems to be part of the problem.
We could display a longer message with a link to
https://www.zotero.org/support/kb/connector_zotero_unavailable , but this
is the /ping page that gets hit constantly, so it seems like we should
keep it short (though probably it doesn't make a difference).
2022-10-13 02:20:42 -04:00
Abe Jellinek
bde157b085
fx-compat: Automatically register plugin l10n sources ( #2863 )
...
Fixes #2837
2022-10-11 11:59:33 -04:00
Abe Jellinek
367090614d
fx-compat: Fix File -> Save... in basicViewer
...
Printing is still broken with no clear fix - PrintUtils really wants a
tabbrowser.
2022-10-11 10:47:15 -04:00
Abe Jellinek
f030190fb7
"Swap First/Last" in creator transform menu
...
https://github.com/zotero/zotero/pull/2801#issuecomment-1274107763
2022-10-11 10:30:53 -04:00
Abe Jellinek
568b88e342
Add "Capitalize" text transform to creator context menu ( #2801 )
2022-10-11 01:28:27 -04:00
Abe Jellinek
9be51a5cb0
Fix last editpane tab being misaligned vertically ( #2864 )
2022-10-10 21:47:20 -04:00
Dan Stillman
7276223a90
Tweak text in LABD auto-relinking dialogs ( #2374 , #2092 )
2022-10-10 10:38:53 -04:00
Abe Jellinek
5f9e8f5b7e
Automatically relink attachments from LABD ( #2374 )
...
Fixes #2092
2022-10-10 10:38:43 -04:00
Martynas Bagdonas
3a26f6eb6f
Add pdf-reader annotation creation test
...
(cherry picked from commit af436d34a8
)
2022-10-10 16:56:17 +03:00
Martynas Bagdonas
8db82c1022
Don't allow to rotate or delete pages for read-only PDF
...
(cherry picked from commit 29dd0cf5dc
)
2022-10-10 16:56:17 +03:00
Martynas Bagdonas
35cbbeeea4
Fix annotation image saving to cache for read-only annotations
...
(cherry picked from commit 28329aa785
)
2022-10-10 16:56:17 +03:00
Martynas Bagdonas
b851e66ec8
Fix annotation saving regression
...
(cherry picked from commit c5d418fc16
)
2022-10-10 16:56:17 +03:00
Martynas Bagdonas
a5c17f3abe
Properly handle errors when trying to open too large (>2GB-1) PDF file
...
(cherry picked from commit e9c6c76e79
)
2022-10-10 16:56:17 +03:00
Adomas Ven
aa1aac6adb
fx-compat: Restore word processor integration ( #2841 )
...
- Word for Windows not tested since there's no build yet
- Word for Mac currently causes a sigsev, and likely we'll see this on
windows too. This is happening on an API call where we pass a callback,
so likely an issue in ctypes that we'll have to work around.
- All integration UIs restored.
- Added a component for richlistitems with a checkbox with corresponding
interactions (spacebar/double-click to toggle).
2022-10-06 00:17:28 -04:00
Martynas Bagdonas
03de28a7b7
Fix pref observer handler unregistering
...
(cherry picked from commit b7cc1d549b
)
2022-10-05 21:00:20 +03:00
Martynas Bagdonas
b24a7cf529
Allow importing annotations in group libraries
...
(cherry picked from commit b594ad0b0a
)
2022-10-05 21:00:16 +03:00
Martynas Bagdonas
f8837ae58b
Don't allow pdf-reader to set annotation author name
...
Fixes the issue when your own created annotation becomes grayish and indicates that it was modified by another user.
(cherry picked from commit 4dd1851140
)
2022-10-05 21:00:11 +03:00
Martynas Bagdonas
acfbbebd85
Re-render annotation images when rotating a page
...
Fixes #2824
(cherry picked from commit 006dd20d5b
)
2022-10-05 21:00:04 +03:00
Martynas Bagdonas
ef5e80d4dc
Remove PDF view rotation options
2022-10-05 20:59:49 +03:00
Abe Jellinek
bcb4220d00
Preferences: Use XUL <label>s around HTML <h2>s
...
Fixes #2836
2022-10-05 12:05:23 -04:00
Adomas Venčkauskas
0bbad7a2db
Fix item list row text not read when using non-contiguous kb selection
...
Closes #2830
2022-10-03 15:20:56 +03:00
Abe Jellinek
5ef9a3116c
Preferences: Restore Help button ( #2803 )
...
Having the macOS Help button in a scrolling view feels kind of weird, but that's
what Apple is doing in the Ventura System Settings app, so I guess we go with
it. I like it better than Firefox's non-contextual "Firefox Support" button
under the pane list in their preferences, anyway - having pane-by-pane
contextual help buttons seems like good UX that there isn't a good reason for us
to ditch.
2022-10-03 07:35:40 -04:00
Abe Jellinek
b8966f7878
fx-compat: Fix zotero://
protocol for reports ( #2825 )
...
- The protocol can no longer be marked "dangerous to load," only "UI resource"
(accessible inside browsers but not by web pages).
- The protocol needs to run in the main process.
- We need to replace the XUL browser to reset its type attribute depending on
whether we're loading a zotero protocol URI - zotero protocol URIs, maybe due
to the protocol handler's tight coupling with the main process, cannot load in
type="content" browsers.
2022-10-03 07:31:17 -04:00
Dan Stillman
fe391a1026
Add 15 and 16 as note font size options in menu
...
https://forums.zotero.org/discussion/100079/notebook-fonts
2022-10-03 06:47:17 -04:00
Dan Stillman
47c939561c
Remove default OpenURL gateway
...
https://www.worldcat.org/registry/gateway is no longer supported -- see
https://forums.zotero.org/discussion/comment/418373/#Comment_418373 for
details
If no resolver is selected, show an error on "Library Lookup" with a
button to open the prefs.
2022-10-03 06:47:17 -04:00
Dan Stillman
817ca999e3
Swap "Split Vertically" and "Split Horizontally" in PDF reader
2022-10-03 06:47:17 -04:00
Dan Stillman
4f10c00c71
Add Number as items list column option
...
https://forums.zotero.org/discussion/99844/add-columns-to-desktop-app-report-number
2022-10-03 06:47:17 -04:00
Martynas Bagdonas
d484d16128
Prevent error when creating a note from annotations that have ink
...
(cherry picked from commit 4fdf43ed92
)
2022-09-30 13:25:06 +03:00
Martynas Bagdonas
764d1b006e
Import external annotations before trying to add a note from annotations
...
(cherry picked from commit 9691fcafc2
)
2022-09-30 13:25:06 +03:00
Martynas Bagdonas
61c0dfee38
Add split view for PDF reader ( #2832 )
...
Fixes #2821
2022-09-29 14:28:47 +03:00
Dan Stillman
f40b215753
fx-compat: Restore error reporting wizard
2022-09-28 06:56:39 -04:00
Dan Stillman
03532e1289
fx-compat: Fix Zotero.getInstalledExtensions()
2022-09-28 06:56:24 -04:00
Tom Najdek
76ff32098f
fx-compat:Creator buttons keyboard accessible #999 ( #2833 )
2022-09-23 04:18:24 -04:00
Dan Stillman
e0ccce4072
fx-compat: Fix 'dev' channel warning not appearing
2022-09-22 03:41:11 -04:00
Dan Stillman
542a6adf84
Zotero.Plugins.getResourceURI()
→ getRootURI()
...
To go with the `rootURI` string variable passed to bootstrap methods
2022-09-20 00:39:21 -04:00
Dan Stillman
acc4d2a81b
Update paths for Mozilla Fluent files
...
Follow-up to zotero/zotero-standalone-build@600b35d
2022-09-15 18:39:19 -04:00
Dan Stillman
dda60995a3
fx-compat: Fix app update dialog
...
Styling needs to be redone, but it works.
2022-09-15 06:29:14 -04:00
Dan Stillman
35d5c2633d
fx-compat: Add app update dialog files from fx68
...
Removed in fx69
Not yet functional
2022-09-15 06:29:14 -04:00
Dan Stillman
e955583d2c
Update translate submodule
2022-09-15 06:29:14 -04:00
Martynas Bagdonas
7cd57cd9e4
Fix focusContextPane
error when pressing tab in standalone PDF window
...
Fixes #2823
2022-09-15 12:01:34 +03:00
Abe Jellinek
500f187a60
Scaffold: Remove useless debug
2022-09-13 11:20:41 -07:00
Martynas Bagdonas
82b53fee87
Fix PDF reader sometimes showing UTC time and sometimes local
...
(cherry picked from commit c13d17b5e6
)
2022-09-13 17:16:08 +03:00
Martynas Bagdonas
531f8fe24d
Convert Mendeley colors to equivalent Zotero colors on PDF open
...
Fixes #2820
(cherry picked from commit eb255c5868
)
2022-09-13 17:16:08 +03:00
Tom Najdek
223f44fdfd
Map annotation colors colors on import #2819 ( #2822 )
2022-09-12 19:58:21 -04:00
Abe Jellinek
7829a0dfdc
fx-compat: Style Editor: Fix error when no style selected
2022-09-12 14:06:58 -07:00
Abe Jellinek
52e8fa8995
Prune Monaco distribution, fix JS acting like TS in Scaffold
...
We don't need most of the bundled languages or localizations, so they were just
taking up disk space pointlessly.
2022-09-12 14:06:17 -07:00
Dan Stillman
88869f43ae
Merge new English strings
2022-09-12 15:54:11 -04:00
Dan Stillman
a63c634e3f
Add "Create Note from Annotations" option to items list context menu
...
To allow creation of a standalone note with annotations from all the
selected top-level items and/or attachments. Annotations will be sorted
by the order of the items in the items list.
"Add Note from Annotations" remains when a single regular item or one or
more attachments under a single regular item are selected.
2022-09-12 15:54:03 -04:00
Dan Stillman
e81b43be98
Add collectionID
option to EditorInstance.createNoteFromAnnotations()
...
For adding a standalone note to the current collection
2022-09-12 15:54:03 -04:00
Dan Stillman
39e45221b1
Rename Zotero.Items::keepParents() to keepTopLevel()
...
So that it works for more than two levels of items
Also fix a bug where the parent item could be returned more than once if
multiple child items were selected.
2022-09-12 15:54:03 -04:00
Dan Stillman
497d6376c8
Add Zotero.Item::topLevelItem and Zotero.Items.getTopLevel(items)
2022-09-12 15:54:03 -04:00
Martynas Bagdonas
f70ec29881
EditorInstance.createNoteFromAnnotations(): Handle multiple attachments
2022-09-12 15:54:03 -04:00
Abe Jellinek
dbbc6a2f44
fx-compat: Basic viewer: Restore loadURI() for Zotero.openInViewer()
2022-09-09 13:46:19 -07:00
Martynas Bagdonas
20aa40c5d2
Adjust PDF reader and context pane UI based on font size pref
...
Fixes #2809
(cherry picked from commit 64897455f4
)
2022-09-09 18:10:25 +03:00
Abe Jellinek
94392fce96
fixup: Option-P was supposed to push, not type pi
2022-09-07 11:17:47 -04:00
Abe Jellinek
df9d8d593c
fx-compat: Fix sync button tooltip
...
XULTooltipElement now prepends a <description> node, so the nodes we were
getting were off by one. Just use class names for all the children.
2022-09-07 11:15:55 -04:00
Martynas Bagdonas
9f9dde511e
fx-compat: Flex grow note-editor when using in contextPane
2022-09-07 17:26:12 +03:00
Martynas Bagdonas
7317b61425
fx-compat: Fix note-editor initialization
2022-09-07 17:26:12 +03:00
Martynas Bagdonas
9d584152f0
fx-compat: Fix contextPane after b5bdae3d
2022-09-07 17:26:12 +03:00
Abe Jellinek
74051576dd
Hide "Find Available PDF" for feed items ( #2807 )
2022-09-06 18:46:13 -04:00
Martynas Bagdonas
04120099fb
Allow inserting images over context menu
...
Fixes #2759
(cherry picked from commit f893206dfd
)
2022-09-06 17:11:41 +03:00
Martynas Bagdonas
75a080b7cb
fx-compat: Tweak image copying to clipboard
2022-09-06 17:05:52 +03:00
Martynas Bagdonas
80385ff893
Add context menu options to copy/save image from pdf-reader/note-editor
...
Fixes #2664
2022-09-06 16:48:13 +03:00
Abe Jellinek
dbc65faecb
Preferences: Don't add IDs to pane containers
...
Built-in panes were creating a semi-invalid DOM in which the pane container and
the root element of the pane's XHTML got the same ID. There's no reason to give
containers IDs in the DOM, since we already have a Map of IDs to pane objects,
so let's just not.
2022-09-02 11:22:50 -04:00
Abe Jellinek
5d6ad703c1
Preferences: Fix tests, improve clarity, and more
...
- Fix sync and advanced preferences tests; use a new waitForFirstPaneLoad()
functions instead of the old paneload event listener
- Remove empty preferences_searchTest.js
- Rename some Zotero_Preferences members/functions for better clarity and
public/private differentiation
- Reorder, also for clarity
- Fix tabIndex parameter causing an error if invalid
- Remove window.sizeToContent() call in Sync.displayFields()
- So *that's* why the window resized every time the sync pane was loaded...
- Deprecate openURL() and simplify openInViewer()
2022-09-02 11:01:37 -04:00
Martynas Bagdonas
11b0afc0bd
Add missing noteEditor.mathBlock
string
...
(cherry picked from commit a3b45a74e9
)
2022-08-31 16:00:01 +03:00
Dan Stillman
a4f802806c
Use items-list sort order for report from collection or saved search
...
https://forums.zotero.org/discussion/99284/exporting-a-report-sorted-by-first-date
Regression from HTML tree
2022-08-30 16:22:53 +02:00
Abe Jellinek
0fe394082c
fx-compat: Scaffold: Prevent Space from scrolling translator list
2022-08-30 10:07:15 -04:00
Dan Stillman
00b24f85c9
Fix HTTP.request() 5xx handling with errorDelayMax=0
...
This was causing delay-less infinite loops for OPTIONS requests to Box,
which are returning 502 errors.
2022-08-29 23:46:58 +02:00
Abe Jellinek
63864f2f86
duplicateAndConvertSelectedItem: Don't copy abstracts ( #2799 )
2022-08-29 16:15:31 -04:00
Martynas Bagdonas
09ba429723
Update note-editor submodule and strings for math and table insertion
...
(cherry picked from commit d156bef42a
)
2022-08-25 14:27:42 +03:00
Adomas Venčkauskas
4f0b07505a
Fix SingleFile snapshot saving stalling in Firefox Connector
...
Update SingleFile submodule
2022-08-24 11:49:45 +03:00
Abe Jellinek
92095314c6
fx-compat: Preferences: Use our edit menu overlay
...
So text context menu actually works.
2022-08-22 16:46:50 -04:00
Abe Jellinek
c2254f3783
fx-compat: Scaffold: Native checkboxes, dropmarker
2022-08-22 16:20:28 -04:00
Abe Jellinek
d653ec817c
fx-compat: Add by Identifier: Prevent expand after invalid ID input
2022-08-22 12:51:35 -04:00
Abe Jellinek
85e13dc3ee
Zotero.PreferencePanes: Auto-generate ID, rearrange params
...
A manual pane ID isn't often necessary, since you can just give a manual ID to
the root element in your XHTML. Let's make things a bit simpler for the caller
and reduce the potential for conflicts.
2022-08-22 10:52:25 -04:00
Dan Stillman
170f1962ad
Don't repeatedly upload relations
...
Fixes #2772
2022-08-22 01:15:21 -04:00
Tom Najdek
454368e3d3
Make citavi annotations importer more resilient
2022-08-19 12:05:30 -04:00
Tom Najdek
cff02b04a0
Fix importing Citavi annotations in some cases
2022-08-19 12:05:30 -04:00
Dan Stillman
e9e1add9b8
Fixed filed items with annotations appearing in Unfiled Items
...
Fixes #2771
Regression from 20c6fe67
2022-08-19 12:05:30 -04:00
Abe Jellinek
22b00c33de
Empty Trash: Visually remove deleted items, refresh icon ( #2606 )
...
There were a few problems causing the incorrect behavior:
1. Rows were being removed only if they had no non-deleted children, which
wasn't the right check. We want to remove all rows with no *deleted*
children.
2. Children of the removed rows weren't being removed with them.
3. We weren't invalidating the tree (which _removeRows() doesn't do).
Also:
* Erase trashed annotation after getAnnotations() test
Because ItemTree#notify() doesn't yet correctly handle refresh events on
parent items that are themselves children (three-level nesting: item ->
attachment -> annotation), this test was causing a failure in
itemTreeTest.js.
2022-08-19 09:14:24 -04:00
Martynas Bagdonas
40ae2e3246
Fix navigation to annotation when opening an unloaded PDF reader tab
...
Regression from 142e3b09
2022-08-18 04:12:44 -04:00
Martynas Bagdonas
8ca7356489
Fix regression for broken "Snow in Page"
...
Fixes #2764
Regression from 7ec54fd
2022-08-18 04:12:44 -04:00
Abe Jellinek
0eaf5887ea
fx-compat: Scaffold: Use platform keys like zoteroPane
2022-08-17 16:47:39 -04:00
Abe Jellinek
f5f49c7b1d
fx-compat: Scaffold: Non-async detectWeb and async scrape by default
...
We don't usually want an async detectWeb, since HTTP requests should only be
used there in very exceptional cases. We do usually want an async scrape (and we
were already - mistakenly - awaiting it).
2022-08-17 16:31:30 -04:00
Dan Stillman
f7b8d25e75
Update localized string for pdf-reader
2022-08-17 03:47:30 -04:00
Dan Stillman
c3ee588bfe
Match parent attachments for annotation tags
...
Expose annotation tags in tag selector and match parent attachments when
filtering/searching
This also fixes searching for annotation text or comments when using
Everything quick search.
This is temporary until we display annotations in the items list
directly.
2022-08-17 03:35:28 -04:00
Dan Stillman
6cd1a41a32
Fix importing of standalone attachments without URLs
...
And allow `importSnapshotFromFile()` without `parentItemID` or
`libraryID`, which is more consistent with other attachment functions
Follow-up to 318e4852e9
https://forums.zotero.org/discussion/comment/414802/#Comment_414802
2022-08-16 06:09:00 -04:00
Abe Jellinek
b03657add3
fx-compat: Use DOMParser constructor in _eventToEventTitle
2022-08-15 10:38:11 -04:00
Dan Stillman
676abca671
Fix importing of standalone attachments
...
Maybe has been broken for years?
https://forums.zotero.org/discussion/99020/warning-data-loss-when-exporting-collections
2022-08-13 16:24:14 -04:00
Dan Stillman
d546caca4c
Don't relate book sections to each other when creating from book
...
Fixes #2757
2022-08-13 05:46:04 -04:00
Dan Stillman
344a10421a
Fix copying of standalone attachments between libraries
...
Regression in f684984b07
(maybe a race condition)
2022-08-13 02:04:07 -04:00
Abe Jellinek
30197a09d2
Revert mistaken change from 26069a580a
...
Shouldn't have made it into that commit.
2022-08-12 15:36:54 -04:00
Abe Jellinek
fc86bdb55c
fx-compat: Fix error when Edit menu is shown
2022-08-12 15:34:27 -04:00
Abe Jellinek
26069a580a
fx-compat: Fix Quit when main window is closed
...
Application menu items, contrary to the comment I added in a654ad291f
,
actually *do* belong in hiddenWindow.xhtml so that they still work when
zoteroPane.xhtml is closed. They just can't be split between there and
zoteroPane.xhtml. This commit moves all of them to hiddenWindow.xhtml and
reimplements openPreferences() in a non-Zotero-object-dependent way.
Fixes #2738
2022-08-12 15:34:26 -04:00
Abe Jellinek
333cf8cc2a
Add Book -> Book Section and Book Section -> Book to context menu ( #2754 )
2022-08-11 16:28:32 -04:00
Martynas Bagdonas
4f52eb9be3
Fix PDF reader selector popup that was never opening
...
(cherry picked from commit e4e3c72036
)
2022-08-11 14:22:52 +03:00
Martynas Bagdonas
d1550a3fd5
Fix regression preventing opening PDF reader window when the tab is open
...
(cherry picked from commit 0857cefb0c
)
2022-08-11 14:22:52 +03:00
Adomas Venčkauskas
d6909ec8e5
Update SingleFile config for current version
...
They got updated upstream and the backwards-compat code
does not run for the way we execute singlefile
See https://github.com/gildas-lormeau/SingleFile/issues/1021
Addresses https://github.com/zotero/zotero-connectors/issues/398
2022-08-11 14:00:40 +03:00
Adomas Venčkauskas
2dd54fddf4
Prevent singlefile config from overwriting the Zotero.SingleFile namespace
2022-08-11 13:51:57 +03:00
Dan Stillman
c90f8415b3
Improve test for event-title
substitution
...
And add comments
Follow-up to 20d0f103f
2022-08-11 03:57:25 -04:00
Dan Stillman
7eab91a160
Automatically substitute event-title
for event
in styles
...
Stopgap until styles are updated in citation-style-language/styles#6151
2022-08-11 03:57:15 -04:00
Dan Stillman
57b91a0add
Move item box comment from 87455d28c3
...
The code seems to have already been applied on the fx102 branch
2022-08-11 03:56:46 -04:00
Abe Jellinek
678a6101b3
Advanced Search: Make sure items are loaded ( #2743 )
2022-08-11 03:53:39 -04:00
Dan Stillman
72d4cdd3a3
Don't preselect Act for multiple sources in classic citation dialog
...
"Multiple Sources…" wasn't properly handled by 629892b0b8
https://forums.zotero.org/discussion/98877/act-instead-of-page
https://twitter.com/drezvera99/status/1554521940684984320
2022-08-11 03:53:34 -04:00
Martynas Bagdonas
098886bcb6
Select existing unloaded tab instead of opening a new one
...
Fixes #2740
2022-08-11 03:52:53 -04:00
Martynas Bagdonas
9190eb8f34
Allow to scroll tabs with mouse wheel
...
Fixes #2724
2022-08-11 03:52:45 -04:00
Abe Jellinek
1f9e518581
Duplicates Merge: Preserve embedded annotations ( #2728 )
2022-08-11 03:52:40 -04:00
Adomas Venčkauskas
63148dff3b
Do not load-timeout on browser PDF download during content load
...
Closes #2726
2022-08-11 03:52:31 -04:00
Martynas Bagdonas
d595b3f195
Freeze note schema version to 8
...
We can do it because it was only used to create a note from annotations.
No need to update schema version in Zotero client, unless using new
features when creating a note from annotations.
2022-08-11 03:50:06 -04:00
Martynas Bagdonas
44ef4cd35a
Fix regression that prevents showing the last selected tab on startup
...
Fixes #2723
2022-08-11 03:50:01 -04:00
Martynas Bagdonas
b02ad0dc83
Fix regression that prevents showing new notes in contextPane notes list
2022-08-11 03:49:52 -04:00
Adomas Venčkauskas
1955427d62
Fixes some assets not being saved with SingleFile snapshots
...
Part of zotero/zotero-connectors#394
When saving an item (e.g. on arxiv) with a site translator, the
translator may add a custom snapshot attachment URL which does not match
the translation URL (the URL in the browser where translation was
initiated) in which case Zotero handles snapshot saving. Zotero loads
the page in a background browser. By default images are not loaded in
this browser. SingleFile due to CORS restrictions has to refetch all
resources that are not from the same domain or subdomain, but uses
pre-loaded resources (images) from the same domain. Before this change
any images that were from the same domain as the saved website were not
saved in the snapshot. This commit fixes that.
2022-08-11 03:49:52 -04:00
Adomas Venčkauskas
3ba78dec78
Changes for updated SingleFile submodule
2022-08-11 03:49:52 -04:00
Dan Stillman
f46c0986d3
Localize "Export PDF…" menu option
...
Fixes #2710
2022-08-11 03:49:52 -04:00
Dan Stillman
a33775d2a1
Update translate submodule
2022-08-11 03:49:52 -04:00
Dan Stillman
54a7211a45
Update locales from Transifex
2022-08-11 03:47:00 -04:00
Dan Stillman
8bce2b1fdd
Increase Mendeley API timeout to 60 seconds
...
To see if we can fix the 30-second timeout here:
https://forums.zotero.org/discussion/comment/412750/#Comment_412750
2022-08-11 03:46:51 -04:00
Dan Stillman
393b1f8369
Add warning in toolbar for 'dev' channel builds
2022-08-11 03:43:03 -04:00
Martynas Bagdonas
7089ce8fc7
Use Quick Copy (Markdown) for direct plain-text copying from note-editor
...
Fixes #2505
2022-08-11 02:49:07 -04:00
Abe Jellinek
bd18339797
Prevent deleting My Publications
...
Previously showed a blank confirmation dialog and logged an error.
2022-08-11 02:48:59 -04:00
Martynas Bagdonas
221aa25e00
Prevent delayed context pane expansion and pdf-reader rerender/resize when switching from library tab
2022-08-11 02:48:54 -04:00
Martynas Bagdonas
4ab154c4bf
Don't include quotes when {{highlight}} is placed in a blockquote
...
Fixes #2697
2022-08-11 02:48:49 -04:00
Martynas Bagdonas
fcb63465ac
Include quotation marks for highlights by default, but allow to disable
...
Fixes #2697
2022-08-11 02:48:44 -04:00
Dan Stillman
d3942ad1f0
Better fix for errors from invalid sort fields
...
Just catch the error from `ItemTree::sort()` and clear the
secondary-sort and fallback-sort prefs so that sorting works on the next
attempt.
Replacement for a8ed30ce80
https://groups.google.com/g/zotero-dev/c/kc0-C6-SA74/m/bhHniGceAQAJ
2022-08-11 02:48:35 -04:00
Dan Stillman
d747da7c65
Revert "Validate fields in ItemTree::getSortFields()"
...
This reverts commit a8ed30ce80
and related
commits.
We'll address breakage from invalid sort fields another way, without
inconveniencing plugin authors.
https://groups.google.com/g/zotero-dev/c/kc0-C6-SA74/m/bhHniGceAQAJ
2022-08-11 02:48:31 -04:00
Dan Stillman
9dc8995ba8
Sort empty rows last for Date/Year columns when descending
...
Date columns start in descending order, so put empty rows at end
Also remove a seemingly unnecessary exception for Title when not the
primary sort and just always sort it with empty rows first
2022-08-11 02:48:26 -04:00
Dan Stillman
e25ec0d981
Fix sorting of attachments and notes columns
...
Regression from a8ed30ce80
2022-08-11 02:48:22 -04:00
Dan Stillman
3ab661b628
Fix sorting by Item Type and feed item itemID
...
Regression from a8ed30ce80
2022-08-11 02:48:16 -04:00
Dan Stillman
5620dc96bd
CookieSandbox: Fix error setting request cookies
...
Regression from 6af3b0276a
, showing up as "trackedBy is undefined" error
https://forums.zotero.org/discussion/98322/no-snapshot-or-pdf-autosaved-using-zotero-connector-on-safari
2022-08-11 02:48:06 -04:00
Dan Stillman
74f00e60c7
Merge new English strings
2022-08-11 02:47:51 -04:00
Dan Stillman
2c11aadc57
Add localized string for timestamp
CSL locator
...
Not included in the CSL locales:
https://forums.zotero.org/discussion/comment/412060/#Comment_412060
2022-08-11 02:47:46 -04:00
Dan Stillman
c4c940722b
Merge new English strings
2022-08-11 02:47:38 -04:00
Dan Stillman
7b247e73df
Tweak confirmation message for recursive collection-item removal
...
I guess the "its" is technically a little clearer, but it's a bit
awkward, and I think it's reasonably implied.
2022-08-11 02:47:33 -04:00
Abe Jellinek
b18967fba4
recursiveCollections
: Remove from all subcollections on delete (#2689 )
2022-08-11 02:47:28 -04:00
Dan Stillman
cac0e7ee50
Update locales from Transifex
2022-08-11 02:47:19 -04:00
Dan Stillman
387e4dd958
Add CSL 1.0.2 locators and switch to CSL locales for localization
...
And move Page to middle of list, while still selecting by default
https://forums.zotero.org/discussion/comment/396602/#Comment_396602
2022-08-11 02:47:15 -04:00
Dan Stillman
92a1a43cbb
Validate fields in ItemTree::getSortFields()
...
To avoid startup hang if a plugin does something bad:
https://forums.zotero.org/discussion/comment/411843/#Comment_411843
Fixes #2692
2022-08-11 02:47:04 -04:00
Tom Najdek
a7c5f78107
Improve log output for multiple Mendeley imports
...
Helps with debugging cases where new import is started while previous
one is still being cancelled
2022-08-11 02:46:47 -04:00
Tom Najdek
9acf1ac42e
Lint code related to Mendeley importer
2022-08-11 02:46:42 -04:00
Tom Najdek
141258d564
Fix a bug in regex extracting fields to "extra"
...
Because regex is built using a template string, \s* is actually escaped
into s*, i.e. literal "s" appearing 0 or more times. In most cases this
would mean that output can have spacing slightly off. In extreme case,
when identifier starts with letter "s", this could this could lead to
identifier being stored incorrectly.
Also adjusted tests to be more strict and mock data to cover this case.
2022-08-11 02:46:37 -04:00
Tom Najdek
c9400c565c
Mendeley import: detect win close, better feedback
...
* Detect wizard cancel/close and interrupt import. This will still
have to wait for current fetch (file or metadata) to complete but will
then advance to the cleanup stage
* Advance progress bar during metadata fetch
* Add some extra logging
2022-08-11 02:46:31 -04:00
Tom Najdek
4b86c2a3fd
Don't try to remove temporary dir after import
...
Previously we had a structure that also created folders in temp dir,
that has since changed but code in cleanup phase to remove containing
dir has been accidentally left unremoved.
2022-08-11 02:46:26 -04:00
Martynas Bagdonas
5f6d6da154
Fix disabled "Add to Note" when a child note is open
...
Fixes #2687
2022-08-11 02:46:17 -04:00
Dan Stillman
01dc397afd
Update global schema and utilities for CSL 1.0.2
2022-08-11 02:43:53 -04:00
Martynas Bagdonas
ca3e048b78
Adjust page rotation labels in PDF reader
...
Fixes #2669
2022-08-11 02:43:47 -04:00
Martynas Bagdonas
b9f4a7835a
Show parent item title for child notes in context pane
...
Fixes #2681
2022-08-11 02:43:32 -04:00
Martynas Bagdonas
b5bdae3d6d
Implement smart notes switching in contextPane ( #2671 )
...
Fixes #2650
2022-08-11 02:38:55 -04:00
Dan Stillman
5920c5d3e5
Update utilities submodule and date-parsing tests
...
Includes strToDate() fixes
2022-08-11 02:36:04 -04:00
Dan Stillman
9c6d7abc76
Update locales from Transifex
2022-08-11 02:35:56 -04:00
Adomas Venčkauskas
3ff650f046
Limit the force-click during drag fix to macOS ( 4fb0661b
)
2022-08-11 02:34:29 -04:00
Adomas Venčkauskas
9feb2fc6cf
Fix alt-arrow not working on macOS when editing collection names.
...
Fixes #2651
2022-08-11 02:34:24 -04:00
Adomas Venčkauskas
1937220099
Fix force-click during drag sometimes causing collections to switch
...
Closes #2652
2022-08-11 02:34:17 -04:00
Abe Jellinek
48ad6dcb99
Fix error if New Collection prompt is canceled
2022-08-11 02:34:12 -04:00
Dan Stillman
3fb9e2162e
Use String.fromCharCode() to load Chinese characters in strToDate() test
...
Follow-up to dc045250a6
2022-08-11 02:34:06 -04:00
Dan Stillman
56151a4198
Fix parsing of Chinese and other non-ASCII month names
...
https://forums.zotero.org/discussion/97683/bug-locale-issues-concerning-zotero-and-zotero-connector
2022-08-11 02:33:58 -04:00
Dan Stillman
c8cc97dd97
Properly strip ZWJ in isOnlyEmoji()
2022-08-11 02:33:54 -04:00
Dan Stillman
011b60af61
Fix Emoji detection
...
And move to Zotero.Utilities.Internal.isOnlyEmoji()
Fixes #2643
2022-08-11 02:33:41 -04:00
Abe Jellinek
3481def4f6
Fix sorting by attachment ( #2586 )
2022-08-11 02:33:03 -04:00
Dan Stillman
d14700606d
Update locales from Transifex and merge new English strings
2022-08-11 02:32:54 -04:00
Dan Stillman
6828e24481
citeproc-js: Add space after left margin in plain-text mode
...
This adds a space after the the number in some numeric styles ("[1]" in
IEEE style, "1." in Nature) when pasting bibliography entries into a
plain-text editor.
Some styles (ACS, AMA, Vancouver) will need to be updated to remove
their hard-coded spaces to avoid double spaces after this change.
Patch from @zepinglee
Fixes #2633
2022-08-11 02:32:39 -04:00
Martynas Bagdonas
bfc61a69ba
Add support for PDF page deletion and rotation ( #2595 )
...
* Add support for PDF page deletion and rotation
Fixes #2561
2022-08-11 02:32:30 -04:00
Adomas Venčkauskas
44e8a372e5
Fix a MIMETypeHandler.removeHandler() bug
2022-08-11 02:31:33 -04:00
Adomas Venčkauskas
1687d4caad
Improve downloadPDFViaBrowser handlers and logging
2022-08-11 02:31:28 -04:00
Adomas Venčkauskas
f88cc8b988
Fix cookieSandbox not overriding user agent if no cookies for domain.
...
Potential fix for #2635
2022-08-11 02:31:23 -04:00
Martynas Bagdonas
266ea99a77
Fix library tab tooltip always staying on top
2022-08-11 02:31:15 -04:00
Dan Stillman
b1c2b9e005
Fix detection of some emoji set as colored tags
...
Emoji such as ⭐ ️ that began as text-based Unicode characters and depend
on Variation Selector-16 to display the emoji presentation weren't being
properly detected.
2022-08-11 02:31:01 -04:00
Dan Stillman
fdff93a961
Update locales from Transifex
2022-08-11 02:29:18 -04:00
Dan Stillman
5eecc3fc54
Add prefs for timeouts for downloading PDF via browser
...
1 second isn't enough for some users, so try 1.5, and allow for easier
debugging via a pref.
https://forums.zotero.org/discussion/96431/i-have-access-to-pdf-but-zotero-cannot-automatically-add-it
https://forums.zotero.org/discussion/97277/unable-to-download-papers-using-zotero-chrome-extension
2022-08-11 02:28:16 -04:00
Dan Stillman
cb2594f53f
Feed import: Don't fail on OPML entry with no title
or text
...
https://forums.zotero.org/discussion/96841/impossible-dimporter-ompl-rss
2022-08-11 02:28:03 -04:00
Martynas Bagdonas
b98a5e0545
Avoid error interrupting annotation extraction from multiple items
2022-08-11 02:25:43 -04:00
Dan Stillman
477dd69d54
Update locales from Transifex
2022-08-11 02:25:43 -04:00
Dan Stillman
82eb701ea7
Try to open external PDF reader to page number for "Show on Page"
...
PDF-handling code from `ZoteroPane.viewAttachment()` predates
`Zotero.OpenPDF` and didn't handle page numbers for external PDF
readers, so when called from "Show on Page" in a note (via
`ZoteroPane.viewPDF()`) it just launched the file itself in the
specified handler or via the OS.
For now, change to use `Zotero.OpenPDF.openToPage()` when there's a page
number. Later we should use `Zotero.OpenPDF` for everything, but that
code is more complicated than just using `launchFile()`, so we'll need
to do some testing (particularly on Linux) to see what's best.
(Note that "Show on Page" with an external reader doesn't make a ton of
sense, since you can't actually see the annotation, but opening the
right page is better than nothing.)
Fixes #2612
2022-08-11 02:25:43 -04:00
Abe Jellinek
139d92054f
Scaffold templates: Pull URL from doc
...
Link URLs could lead to redirects.
2022-08-11 02:25:43 -04:00
Abe Jellinek
7d3e95e050
Fix Scaffold load error when fontSize pref is set
2022-08-11 02:25:43 -04:00
Abe Jellinek
8d75f37548
fx-compat: Add preferences with full-text/keyword search ( #2659 )
2022-08-10 18:26:23 -04:00
Abe Jellinek
db600cb5b9
fx-compat: Item box: Don't set flex attribute on HTML elements
2022-08-08 14:52:17 -04:00
Dan Stillman
78b0055206
Change app id to zotero@zotero.org
...
And remove all references to old id
We can do this because plugins will use new mechanisms for install and
update manifests that don't use the id (which also means it's now only
used internally).
2022-08-08 05:11:21 -04:00
Dan Stillman
ef33731490
fx-compat: Add message to Add-ons pane when no plugins installed
...
We'll want to update the rest of the instances of "extensions" or
"add-ons" to say "plugins" (unless we think we might support themes, in
which case we can keep "add-ons").
2022-08-06 03:49:40 -04:00
Abe Jellinek
cd296b1f37
fx-compat: Item box: Fix _*FieldValue(), more focus issues
...
_getFieldValue() and _setFieldValue() were using `.value` instead of
`.textContent`, so the few places that use it were getting/setting ignored
fields on divs.
fbc25834
messed up the tab index logic, shifting the responsibility for
preserving _lastTabIndex across refreshes: originally, the default was to throw
it away, and the caller was responsible for saving and restoring it if the
refresh was caused by tabbing between fields. The bad commit reversed the
situation and made the item box *remember* the _lastTabIndex by default,
meaning that a refresh caused by the notifier, for example, would focus the
last focused field even if it had been closed by the user in the meantime.
That bad change was a misguided attempt to fix the Tab key cycling infinitely
between Item Type, Title, and creators and never reaching further fields. The
actual fix was just to add `, textarea` to the query on line 1459.
2022-08-05 16:12:28 -04:00
Abe Jellinek
1ecc0b113b
fx-compat: Item box: Fix auto-scroll functions
2022-08-05 12:32:03 -04:00
Abe Jellinek
cb14564174
fx-compat: Item box: Prevent editor from reopening after close
...
We did need to reset _lastTabIndex as the line removed in fbc25834
did, but
only immediately surrounding the saveTx() call.
2022-08-05 12:10:16 -04:00
Abe Jellinek
57abea5416
fx-compat: Item box: Remove some dead code
...
All already being handled by CSS (besides the exact character length limits, but
it's not clear that we really need those - we just ellipsize if it visually
overflows now, which seems fine).
2022-08-05 11:57:54 -04:00
Abe Jellinek
4e6fe4d119
fx-compat: Remove temp item type menulist logging
2022-08-05 11:49:14 -04:00
Abe Jellinek
1c36406b1e
fx-compat: Item box: Fix removing creator while editing it
2022-08-05 11:45:58 -04:00
Abe Jellinek
361a83c378
fx-compat: Item box: Restore batch paste behavior
...
Since <input>s are single-line, we do the split operation on paste instead of on
blur.
2022-08-05 11:45:58 -04:00
Dan Stillman
53a09bb912
Add reason
parameter for plugin bootstrap methods
...
As documented on https://wiki.mozilla.org/Extension_Manager:Bootstrapped_Extensions
And fix method names for `install()` and `uninstall()`
2022-08-05 04:51:07 -04:00
Dan Stillman
51f9150410
fx-compat: Initial plugin support
...
Plugins are ZIPs containing at least these two files:
- manifest.json: A WebExtension MV2 manifest with basic metadata
properties and `applications.gecko` with `id` and `update_url`
- bootstrap.js: A bootstrap file, similar to old bootstrapped extensions,
with `installed()`, `startup()`, `shutdown()`, and `uninstalled()`
2022-08-05 01:08:51 -04:00
Dan Stillman
e82e808f2b
Update definition style of Zotero.log()
and Zotero.logError()
2022-08-05 01:08:51 -04:00
Dan Stillman
e6256d60ec
fx-compat: Fix logging to the browser console
2022-08-05 01:08:51 -04:00
Abe Jellinek
080ada78ee
fx-compat: Item box: Prevent tabbing to hidden firstName
2022-08-04 17:20:01 -04:00
Abe Jellinek
fbc2583433
fx-compat: Item box: Fix tabbing
2022-08-04 17:02:41 -04:00
Abe Jellinek
7a22458ed4
fx-compat: Item box: Fix fieldMode resetting on blur
...
The fieldMode attribute of the input was being set by the call to
switchCreatorMode(), but it didn't carry over to the label that replaces it on
line 1997.
Also removed a debug line and cleaned up a bit.
2022-08-04 16:50:48 -04:00
Abe Jellinek
581f4bdf7b
fx-compat: Fix parameter name typo
2022-08-04 15:10:32 -04:00
Abe Jellinek
617ede481a
fx-compat: Add roles to banners
...
Fixes #2655 (with 0983ff)
2022-08-04 14:52:16 -04:00
Abe Jellinek
c7fc98dff6
fx-compat: editContextMenu -> editMenuOverlay
...
To reflect that it now handles the menu bar Edit menu as well.
2022-08-02 15:50:44 -04:00
Abe Jellinek
64155bf58f
fx-compat: Fix edit context menu
...
The menupopup needs to be in a popupset to show correctly.
2022-08-02 15:49:06 -04:00
Abe Jellinek
27841acb83
fx-compat: Select items dialog: Fix search and make functional
2022-08-01 15:39:57 -04:00
Abe Jellinek
f8ac57bdb1
fx-compat: Don't focus dropdown in quick search textbox
...
To match old behavior and fix autofocus.
2022-08-01 15:22:25 -04:00
Abe Jellinek
d018133e9b
fx-compat: Use html-tooltip everywhere
...
And convert tooltiptext attributes on item box HTML elements to titles.
2022-08-01 15:02:42 -04:00
Abe Jellinek
812511e31b
fx-compat: Open DOI popup as native menu, too
2022-08-01 14:29:35 -04:00
Abe Jellinek
bcf62e688f
fx-compat: Item box: Use addEventListener()
2022-08-01 14:27:46 -04:00
Adomas Venčkauskas
41907975b0
Adjust integration function comments and test dummy signature
2022-07-26 10:53:05 +03:00
Abe Jellinek
808375d5e3
fx-compat: Item box: Fix creator name field sizing
...
Not the exact same sizing as Fx60, because that relied on some quirks
of the Mozilla box model that I can't reproduce with flexbox, but still
works about as well.
2022-07-21 16:12:28 -04:00
Abe Jellinek
26a2398399
fx-compat: Restore guidance panels as CE
...
Fixes #2711 .
2022-07-20 11:12:52 -04:00
Dan Stillman
7b10182e4a
Disable obsolete "Open in External Viewer" menu option
...
Hasn't done anything since in-browser viewing of certain file types in
Zotero 4 for Firefox. Perhaps we'd bring it back at some point, but
disable for now.
2022-07-19 22:38:01 -04:00
Dan Stillman
744837cce7
fx-compat: Remove Zotero.MIME.hasInternalHandler()
...
Hasn't been relevant since the Firefox NPAPI days, but was returning
true for `application/pdf` (possibly due to the bundled pdf.js in
Firefox still being included in our builds, which we should remove if
so), which was causing "Open in External Viewer" to appear, even though
it just opened the internal reader.
2022-07-19 22:38:01 -04:00
Abe Jellinek
5e6dc290b6
fx-compat: Scaffold: Read ESLint output from stdin
...
Need to update your zotero/translators clone to get linting working again.
2022-07-19 16:26:17 -04:00
Abe Jellinek
14f79018ad
fx-compat: Scaffold: Fix "undefined" attributes
2022-07-19 14:44:28 -04:00
Abe Jellinek
db3aa5248c
fx-compat: Scaffold: Fix list overflow in Tests
2022-07-19 14:44:28 -04:00
Abe Jellinek
8ff75607a5
fx-compat: Item box: Disable guidancepanel trigger + cleanup
2022-07-19 14:44:28 -04:00
Abe Jellinek
6f8c5d7c51
fx-compat: Item box: Make vertically scrollable
2022-07-19 14:44:20 -04:00
Abe Jellinek
083e3c7a36
fx-compat: Search: Clear join mode condition
...
Fixes an error that prevents changing the join mode from having an effect
after clearing the search when a join mode was already set. Bug also
present on master, not introduced with fx102.
2022-07-12 22:01:20 -04:00
Abe Jellinek
fba349b144
fx-compat: Remove more unused binding CSS
2022-07-12 14:55:12 -04:00
Abe Jellinek
5f8a5056f1
fx-compat: Remove unused progress display
2022-07-12 14:50:53 -04:00
Abe Jellinek
5c6837c1fc
fx-compat: Add copyright to CE base
2022-07-12 14:47:24 -04:00
Abe Jellinek
916627b590
fx-compat: Scaffold: Fix indentation using spaces
2022-07-11 13:03:48 -04:00
Abe Jellinek
dc96c1a175
fx-compat: Fix ZP progress queue button creation
2022-07-11 13:02:51 -04:00
Abe Jellinek
ab6b683d90
fx-compat: More progress on platform menus ( #2675 )
...
Not able to test on non-Mac yet, but this behavior should be right.
Removes all the #ifdefs and moves the behavior into platformKeys.js.
2022-07-07 00:04:13 -04:00
Abe Jellinek
9a8e78aaf4
fx-compat: Restore quick search menu and update styles ( #2684 )
2022-07-06 23:42:23 -04:00
Abe Jellinek
bc41c3b7b0
fx-compat: Make changelog link in About work
2022-07-06 15:24:31 -04:00
Abe Jellinek
abe19b9435
fx-compat: Fix error when v-t tooltip shows
2022-07-06 11:12:44 -04:00
Abe Jellinek
0983ffbef2
fx-compat: Make sync / retraction links tabbable
...
Addresses #2655 . Still need to add roles.
2022-07-06 10:53:08 -04:00
Abe Jellinek
8face792c0
fx-compat: Fix search dialogs ( #2631 )
2022-07-04 01:48:52 -04:00
Abe Jellinek
b78b9cad1f
fx-compat: Duplicates: UI fixes
...
- Scroll vertically
- Restore margins between groupboxes
- Restore field version dropmarker
2022-06-30 12:32:11 -04:00
Abe Jellinek
97786bfa77
fx-compat: Fix multiline Add Item by Identifier
...
Now just one textarea instead of an input and a textarea.
Fixes #2677
2022-06-30 11:48:15 -04:00
Abe Jellinek
f81b4b071f
fx-compat: Correct create[XUL]Element[NS]() calls
...
This fixes the dictionary manager and various other places where a XUL
element was being created with createElement(), and also simplifies a lot
of createElementNS(HTML_NS, ...) calls.
This might cause some minor regressions but everything tested has
worked. Not touching preferences (#2659 ) or bindings.
2022-06-29 11:14:40 -04:00
Abe Jellinek
8b7d959781
fx-compat: Fix column picker context menu
2022-06-29 09:27:11 -04:00
Dan Stillman
4fcde6c8c5
fx-compat: hiddenWindow.xul → hiddenWindow.xhtml
2022-06-29 06:17:21 -04:00
Dan Stillman
41f54624b1
fx-compat: Fix "Hide {-brand-shorter-name}" in Mac application menu
2022-06-29 03:38:16 -04:00
Abe Jellinek
1eb9718b6b
Style editor: Light theme, leave selection if unchanged
...
Since onStyleModified() is called when a style is loaded.
2022-06-28 15:12:57 -04:00
Abe Jellinek
9c837b3361
Improve Monaco integration and use in csledit
...
And remove timedtextarea.xml. Fixes #2665 .
2022-06-28 15:05:16 -04:00
Abe Jellinek
8681e8ffe9
fx-compat: Make macOS application menu shortcuts work
...
e.g. Cmd-H flashed the menu but didn't actually hide.
2022-06-28 12:15:11 -04:00
Abe Jellinek
00e46443a6
Add XULElementBase class for custom elements
...
https://github.com/zotero/zotero/pull/2631#discussion_r906723540
2022-06-28 11:52:11 -04:00
Abe Jellinek
6295050fa6
Restore platform edit menu behavior without #ifdef ( #2674 )
2022-06-27 23:06:01 -04:00
Abe Jellinek
f0aef79c7a
fx-compat: Use permalink in comment
2022-06-27 14:26:00 -04:00
Abe Jellinek
a654ad291f
fx-compat: Add comment explaining menubar change
2022-06-27 14:22:02 -04:00
Abe Jellinek
a8c4e0637b
fx-compat: Restore Mac application menu
...
The stuff in hiddenWindow.xul doesn't seem to have been doing anything
in Fx102 anyway.
2022-06-27 14:15:11 -04:00
Abe Jellinek
89587e6b76
fx-compat: native="true" on more checkboxes/menulists
2022-06-24 09:11:38 -04:00
Dan Stillman
3805f901cf
fx-compat: Fix centering of library pane progress bar
2022-06-23 04:17:08 -04:00
Dan Stillman
f827b9ef50
fx-compat: initKeyEvent()
→ new KeyboardEvent()
...
Quick Format change is untested
2022-06-21 03:31:58 -04:00
Dan Stillman
587ae6ba7e
fx-compat: Fix blurring of textarea fields in item box
...
And fix tests
2022-06-21 03:03:37 -04:00
Dan Stillman
3743c179e1
Add missing commonDialog.js from dictionary manager
...
Currently provides close-on-Esc functionality
2022-06-21 01:39:07 -04:00
Dan Stillman
20945f60c9
fx-compat: Remove nsIURI.clone() usage
2022-06-21 01:39:07 -04:00
Dan Stillman
6297d0862f
fx-compat: Replace last use of getURLSpecFromFile()
...
Follow-up to 8f7a160ba1
Untested, since it's in the prefs -- we'll have to see if this works
after #2659
2022-06-21 01:39:00 -04:00
Dan Stillman
789a8a5fe9
fx-compat: Use new mozILocaleService API
...
Replace functions with arrays, as in https://phabricator.services.mozilla.com/D6339
2022-06-20 23:09:46 -04:00
Dan Stillman
96f6b871ce
fx-compat: Fix sync error panel
2022-06-20 18:43:09 -04:00
Martynas Bagdonas
5b879f75c5
fx-compat: Avoid dead object errors in note-editor
...
Fixes #2663
2022-06-20 11:33:10 +03:00
Dan Stillman
b3077182d2
fx-compat: Fix Zotero.MIME.getMIMETypeFromURL()
...
Replace
```
Components.classes["@mozilla.org/network/standard-url;1"]
.createInstance(Components.interfaces.nsIURL)
```
with
```
Services.io.newURI(url).QueryInterface(Ci.nsIURL);
```
2022-06-20 01:12:57 -04:00
Dan Stillman
30f636274b
Update Notifier ids for itemBox/notesEditor custom elements
2022-06-20 00:47:50 -04:00
Dan Stillman
be3b245dbe
Don't index PDF if fulltext.textMaxLength
is 0
...
Follow-up to 13adfd131c
2022-06-19 19:03:41 -04:00
Dan Stillman
dfff86df72
fx-compat: Fix Zotero.File.download()
2022-06-19 18:58:25 -04:00
Dan Stillman
8f7a160ba1
fx-compat: getURLSpecFromFile()
→ Zotero.File.pathToFileURI()
...
One remaining instance in the prefs that will need to be fixed
2022-06-19 15:20:54 -04:00
Abe Jellinek
9c69f73de5
Manually remove handler instead of using once
...
Since we only want to remove if the target matches.
2022-06-18 03:45:32 -04:00
Abe Jellinek
a48ebe2dd7
Show native menus from toolbar
2022-06-18 03:45:32 -04:00
Abe Jellinek
a60e46dd5c
fx-compat: Fix toolbar
2022-06-18 03:45:32 -04:00
Abe Jellinek
dd3385ec67
Revert "fx-compat: Remove Mac toolbarbutton images"
...
This reverts commit 280a1265c8
.
2022-06-18 03:45:32 -04:00
Dan Stillman
d90334e883
fx-compat: Initial nsIWebBrowserPersist.saveURI() fixes
...
Will need additional fixes for cookie handling, etc., but this at least
fixes the signature
2022-06-17 20:29:01 -04:00
Dan Stillman
2b41b0127c
Get binary contents in Zotero.File.getSample()
...
And fix magic numbers for content-type sniffing, which wrongly used the
Unicode replacement character (which likely just meant we were falling
back to file-extension-based detection)
2022-06-17 20:29:01 -04:00
Dan Stillman
13adfd131c
fx-compat: Update full-text indexing
...
Use the new PageData mechanism for character set detection, don't try to
index HTML files directly without properly detecting the charset, and
generally simplify the indexing code.
HTML files are now considered cached files that require indexing and
won't be indexed automatically in Zotero.FullText.findTextInItems(),
which breaks certain expectations, including in some tests. This will
need to be addressed.
2022-06-17 20:29:01 -04:00
Dan Stillman
1dd24f7082
Remove Zotero.File.getCharsetFromFile()
/addCharsetListener()
...
Unused in over a decade, and now replaced by the PageData actor
2022-06-17 20:29:01 -04:00
Dan Stillman
6a2949be8a
fx-compat: Add HiddenBrowser.jsm
...
Remove Zotero.Browser and add HiddenBrowser.jsm. Post-Fission, web/file
content loads in a separate process, so it's not possible (as best as I
can tell) to directly access the contents of a hidden browser -- it just
appears as about:blank in the parent process. We now use Mozilla's
JSWindowActor mechanism [1] to get page data, including character set
and body text for full-text indexing. We'll have to evaluate other uses
of hidden browsers to see how to handle them.
This also adds include.jsm for loading the Zotero object into a JSM.
[1] https://firefox-source-docs.mozilla.org/dom/ipc/jsactors.html
2022-06-17 20:28:58 -04:00
Dan Stillman
7f748b2620
Take path or nsIFile in Zotero.File.pathToFileURI()
2022-06-17 20:24:43 -04:00
Dan Stillman
730e86d661
fx-compat: Restore tests and test using actual Zotero executable
...
The test runner now uses the Zotero executable from
`zotero-standalone-build/staging` rather than the Firefox from
`zotero-standalone-build/xulrunner`. Along with testing the actual
program, this restores visible UI updates during tests, which should
make debugging various things easier. We can also now remove anything
related to Zotero being an extension.
Many tests are still broken, but this at least lets us start running
them.
2022-06-17 20:24:43 -04:00
Dan Stillman
3c9dcea46b
Add comment explaining CSS rule to hide menuitem icons on macOS
2022-06-17 20:24:43 -04:00
Abe Jellinek
0e1a16b96b
fx-compat: Show native field/creator transform popups
...
No longer anchored to the element, but instead to the cursor.
2022-06-17 18:49:07 -05:00
Abe Jellinek
c31df4ae6b
fx-compat: Display item box using CSS grid
...
- Widths are now correct
- Rows are a little too tall
- Field value vertical alignment is off
- Platform styling isn't done and some styles might be redundant
- Still can't scroll vertically
- Creator name inputs still displayed wrong
2022-06-16 16:27:16 -05:00
Tom Najdek
cb3d4b1800
Fix tag selector menus not appearing on fx102 ( #2654 )
...
Also tweaked offset where a context menu appears to 1px from cursor
(was 2px) to match other context menus.
2022-06-14 18:28:02 -04:00
Abe Jellinek
cd17c90f2e
fx-compat: Don't show hidden types in Item Type menu
2022-06-10 14:03:53 -05:00
Abe Jellinek
ac9e882bda
fx-compat: Item box: Fix URL opening and field blurring
2022-06-10 13:59:01 -05:00
Martynas Bagdonas
097d423275
fx-compat: Fix spellchecker and dictionary manager
2022-06-10 12:57:27 +03:00
Martynas Bagdonas
5924753fd1
fx-compat: Fix unloaded tab loading
2022-06-09 16:30:34 +03:00
Martynas Bagdonas
64c652ea06
fx-compat: Replace eval with wrappedJSObject in PDF reader
2022-06-09 13:13:08 +03:00
Abe Jellinek
9a2e98360a
fx-compat: Scaffold: Update Monaco
...
Now that we can. Quite a bit faster and more customizable.
2022-06-08 17:38:59 -05:00
Abe Jellinek
e537018e71
fx-compat: Initial fix for Scaffold
...
Not working:
- Web tests (hidden browser is broken)
- Test Updated status text
- Various platform menu things (code copied from ZP and will use whichever
approach we settle on there)
2022-06-08 17:16:50 -05:00
Martynas Bagdonas
1b324f9bd1
fx-compat: Fix color rendering in annotation popup, use checkbox
2022-06-08 21:22:37 +03:00
Martynas Bagdonas
1e25e2ac4c
fx-compat: Fix invisible caret issue in linksBox tags popup
2022-06-08 21:22:37 +03:00
Martynas Bagdonas
a7bc25b553
fx-compat: Fix PDF reader window
2022-06-08 18:57:26 +03:00
Martynas Bagdonas
08089d6120
fx-compat: Fix tooltip node to work in PDF reader tab
2022-06-08 18:57:26 +03:00
Martynas Bagdonas
2e5388af5b
fx-compat: Implement tagsBox element
2022-06-07 17:13:48 +03:00
Abe Jellinek
7e55ea59bb
fx-compat: Item box: Change creator type label correctly
2022-05-31 16:31:20 -07:00
Abe Jellinek
b9f3bea8c3
fx-compat: Attachment box: Only add listener once
2022-05-31 16:30:55 -07:00
Abe Jellinek
1b74befd64
fx-compat: Fix Item Type menu regression
2022-05-31 15:04:14 -07:00
Abe Jellinek
d3555228b2
fx-compat: Fix Duplicate Items merge view
2022-05-31 14:57:47 -07:00
Abe Jellinek
59d5013952
fx-compat: Item box: Fix menu actions, plus/minus buttons
2022-05-31 11:23:19 -07:00
Abe Jellinek
496f34117c
fx-compat: Fix attachment rename, remove <links-box> observer
...
<links-box> doesn't actually have a notify() method, so an error was
being thrown on each notification.
2022-05-27 13:28:07 -06:00
Abe Jellinek
1ef40d9423
fx-compat: Fix attachment box
2022-05-27 12:56:13 -06:00
Martynas Bagdonas
307701788f
fx-compat: Fix and extract notesBox into a separate element
2022-05-27 13:21:18 +03:00
Abe Jellinek
f05d6fe0e0
fx-compat: Fix basicViewer for http(s):// URLs
...
maychangeremoteness="true" is required to successfully load pages from
the web even though we never actually change remoteness.
https://searchfox.org/comm-central/rev/2cf3a09a0127fe73e932c5ee793986f3bed2ccd2/mail/base/content/aboutMessage.xhtml#118
2022-05-26 10:45:57 -06:00
Abe Jellinek
e26fd18450
fx-compat: Change autocomplete-input load method
2022-05-26 09:39:30 -06:00
Martynas Bagdonas
0079fbdb08
fx-compat: Fix relatedBox 'Add' button visibility
2022-05-26 18:31:07 +03:00
Martynas Bagdonas
db0ac723fa
fx-compat: Note editor and links box fixes:
...
- Add links-box component (inside noteEditor.js).
- Add related-box component and fix related pane.
- Use tagsBox.jsx instead of tagsbox.xml in note editor links box popup.
- Remove CSS styles and bindings for noteeditor, relatedbox and tagsbox.
2022-05-26 18:23:31 +03:00
Martynas Bagdonas
4a1812e5ba
fx-compat: Fix selectItemsDialog
2022-05-26 18:23:31 +03:00
Abe Jellinek
4a856b94cc
fx-compat: Item box: Fix abstract expander
2022-05-25 13:22:52 -06:00
Abe Jellinek
3566d1fc1f
fx-compat: Item box: Fix item type menulist
...
- Use IDs as list item values
- Use addEventListener() so events are actually received
- Put menulist inside <td>
* This causes a small appearance regression at the moment because
<td> margins/padding are a bit off, but that issue is visible on
all other fields already.
2022-05-25 12:51:15 -06:00
Abe Jellinek
c2ce5c7596
fx-compat: Remove duplicate menulistItemTypes.js
2022-05-24 15:56:09 -06:00
Abe Jellinek
5d96f9960a
fx-compat: Item box: Fix unstyled menulists
2022-05-24 15:48:10 -06:00
Abe Jellinek
fdd73d4ada
fx-compat: Item box: Fix multiline fields & autocomplete
2022-05-24 15:42:54 -06:00
Abe Jellinek
02bcb1712c
fx-compat: Fix content shrinking to half of window height
...
On my system, this would always happen after adding a new attachment.
2022-05-24 13:59:12 -06:00
Abe Jellinek
29b270e761
fx-compat: Fix progress queue / Find Available PDFs
2022-05-24 13:52:52 -06:00
Abe Jellinek
195dd379d9
fx-compat: Fix context menu icons showing on Mac
...
Why does :is match when a regular selector doesn't? I have absolutely no
idea, but it's more concise anyway.
Fixes #2620
2022-05-24 13:37:20 -06:00
Abe Jellinek
87decd0f8d
fx-compat: Fix _getExtensionFromURL()
2022-05-24 12:07:30 -06:00
Abe Jellinek
300af4477f
fx-compat: Fix Attach Link dialog
2022-05-24 12:02:37 -06:00
Abe Jellinek
a2215cb8f6
fx-compat: Fix hard confirmation dialog
...
ID changed to commonDialog so we get commonDialog.css styling for free.
2022-05-24 11:43:45 -06:00
Dan Stillman
1a1a5924da
fx-compat: Simplify Zotero.File.download()
...
`NetUtil.newChannel()` can take a string spec, so don't bother parsing
to an nsIURI first
Follow-up to 7adb8fd150
2022-05-24 03:03:36 -04:00
Abe Jellinek
7adb8fd150
fx-compat: Fix Zotero.File.download()
2022-05-24 00:47:22 -06:00
Abe Jellinek
eae9a4447d
fx-compat: Mostly fix locateManager
...
Still many selectors to update in preferences.css, but how we do that
depends on what our <prefwindow>/<prefpane> replacement looks like.
2022-05-24 00:46:39 -06:00
Martynas Bagdonas
7b4c4e528c
fx-compat: Fix context pane:
...
- Stacked view.
- Item pane tabs.
- Note list search box.
2022-05-19 14:10:51 +03:00
Martynas Bagdonas
e99a0d4515
fx-compat: Partial fixes for note editor
2022-05-19 14:10:51 +03:00
Dan Stillman
29bc36c02a
fx-compat: Tweak styling of Create Bibligraphy window
...
And generalize CSS rules for richlistitem and groupbox headers (using
HTML H2s for the latter, as Mozilla does)
Follow-up to 547311ff26
2022-05-19 02:06:42 -04:00
Dan Stillman
9bf61f9914
fx-compat: Update CSL Edit window
2022-05-18 23:45:51 -04:00
Dan Stillman
d6e0c90baa
Revert "fx-compat: Fix item box CSS link casing"
...
This reverts commit 4c21a42b53
.
itemBox.css is correct
2022-05-18 23:45:51 -04:00
Abe Jellinek
948b09a27f
fx-compat: Remove uses of defunct DOM constructors
...
This fixes feed translation. Getting a lot of '[object Object]' fields
from that, but I don't think it's related to these changes.
2022-05-18 20:03:37 -07:00
Abe Jellinek
09ec5b1fde
fx-compat: Fix ProgressWindow
...
popup -> alwaysontop because popup removes the background.
2022-05-18 19:52:59 -07:00
Abe Jellinek
547311ff26
Fix Create Bibliography
...
listbox is gone, but richlistbox is still here as a custom element and
works fine for cases where we don't need virtualization.
groupbox label and richlistitem styles should probably be copied to
somewhere global once tuned a bit.
2022-05-18 19:32:39 -07:00
Abe Jellinek
4c21a42b53
fx-compat: Fix item box CSS link casing
2022-05-17 10:03:29 -07:00
Abe Jellinek
5f24b2dc98
Fix Create Parent dialog
2022-05-17 09:47:19 -07:00
Abe Jellinek
49a9c2dba9
fx-compat: Fix Export dialog
...
RDF isn't working yet, but CSV works well.
2022-05-16 14:27:23 -07:00
Abe Jellinek
60606a8528
fx-compat: Fix Add to Collection menu
...
Document.createXULElement is handy.
2022-05-16 13:18:16 -07:00
Martynas Bagdonas
9e93007355
fx-compat: Initial fixes for PDF reader, tabs and contextPane
2022-05-13 18:50:19 +03:00
Dan Stillman
4eb405d405
Update utilities submodule
2022-05-13 04:28:57 -04:00
Dan Stillman
da9154d811
fx-compat: Get basicViewer working for debug output
...
Doesn't work with, e.g., zotero://timeline/library
2022-05-13 04:28:57 -04:00
Dan Stillman
d6875e1182
fx-compat: Switch to Mozilla's method of loading window scripts
2022-05-13 04:28:57 -04:00
Dan Stillman
9b3d7a32e3
Include error message in startup error dialog
2022-05-13 04:28:57 -04:00
Dan Stillman
7c458b9bd3
fx-compat: Fix positioning of some context menus
2022-05-13 04:28:57 -04:00
Dan Stillman
bc68b6e9fe
fx-compat: Start to fix tag color chooser dialog
...
Among other things, need to recreate XBL <customcolorpicker> as a Custom
Element and need to change `ondialogaccept`/etc. to event listeners:
https://searchfox.org/mozilla-central/rev/b72e9d7d63bf499d1d8168291b93d4ec7fde236e/browser/components/places/content/bookmarkProperties.js#232-237
2022-05-13 04:28:57 -04:00
Dan Stillman
63634eed02
fx-compat: Fix clicking URL label
...
Now that it's a div rather than a label, have to use `textContent`
instead `nodeValue`
2022-05-13 04:28:57 -04:00
Dan Stillman
516c76a4ab
fx-compat: Start to update feed settings dialog
2022-05-13 04:28:57 -04:00
Dan Stillman
909d68eac3
fx-compat: Fix New Item menu
2022-05-13 04:28:57 -04:00
Dan Stillman
2e26703b50
fx-compat: goQuitApplication() now takes an event
argument
2022-05-13 04:28:57 -04:00
Dan Stillman
172c2da2cc
fx-compat: Add dropmarkers to toolbarbuttons
2022-05-13 04:28:57 -04:00
Dan Stillman
758c3187fc
fx-compat: Update Edit menu (WIP)
2022-05-13 04:28:57 -04:00
Dan Stillman
280a1265c8
fx-compat: Remove Mac toolbarbutton images
...
Need to replace with proper styling, but the former approach doesn't
work with the new toolbarbutton component.
2022-05-13 04:28:57 -04:00
Dan Stillman
10a801fcc7
WIP: Localization
2022-05-13 04:28:57 -04:00
Dan Stillman
a16e0620d2
WIP: Localization 3
2022-05-13 04:28:57 -04:00
Dan Stillman
65658b16e6
WIP: Localization 2
2022-05-13 04:28:57 -04:00
Dan Stillman
77015336a4
WIP: Localization
2022-05-13 04:28:56 -04:00
Dan Stillman
c82af749ac
Don't force Lucida Grande in various components on macOS
2022-05-13 04:28:56 -04:00
Dan Stillman
4f5b7bbccb
Remove old commented-out lines in include.js
2022-05-13 04:28:56 -04:00
Dan Stillman
002132bc4b
fx-compat: Populate Window menu on macOS
2022-05-13 04:28:56 -04:00
Dan Stillman
ebc511f418
coroutine()
→ async
for Zotero.init()
2022-05-13 04:28:56 -04:00
Dan Stillman
f8e10f80cc
fx-compat: __defineGetter__()
→ defineProperty()
2022-05-13 04:28:56 -04:00
Dan Stillman
13b9837524
fx-compat: Fix New Item menu and serializePersist()
...
`document.getElementsByAttribute` → `document.querySelectorAll`
2022-05-13 04:28:56 -04:00
Dan Stillman
9222b939ab
fx-compat: Fix error viewing items
...
`Components.classes["@mozilla.org/network/standard-url;1"]` no longer
exists
2022-05-13 04:28:56 -04:00
Dan Stillman
31677dd296
fx-compat: Fix error generating item context menus with locate options
2022-05-13 04:28:56 -04:00
Dan Stillman
f91bf49aae
fx-compat: nsIIdleService
→ nsIUserIdleService
2022-05-13 04:28:56 -04:00
Dan Stillman
1714351cc9
fx-compat: Fix position of collection and item context menus
2022-05-13 04:28:56 -04:00
Dan Stillman
b49b8ad140
fx-compat: Mostly fix About pane
...
Example of converting top-level XUL `<dialog/>` to
`<window><dialog/></window>`, which uses a Mozilla-provided `<dialog>`
Custom Element
2022-05-13 04:28:56 -04:00
Dan Stillman
f4675c02df
fx-compat: Update nsILoginManager::findLogins() calls
2022-05-13 04:28:56 -04:00
Dan Stillman
c7c61f72c9
fx-compat: Stop trying to load overlay.js, which was removed
2022-05-13 04:28:56 -04:00
Dan Stillman
7ee40c4682
fx-compat: Fix Add Item by Identifier window
...
Still a little buggy
2022-05-13 04:28:56 -04:00
Dan Stillman
8075c2d938
Remove obsolete tab.css
2022-05-13 04:28:56 -04:00
Dan Stillman
753824a7e2
fx-compat: Temporarily disable quick search bar mode menu
2022-05-13 04:28:56 -04:00
Dan Stillman
a54da965a7
fx-compat: Use search-textbox custom element for quick search bar
2022-05-13 04:28:56 -04:00
Dan Stillman
26c4bea4fd
fx-compat: .boxObject was removed in Fx69
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1519948
2022-05-13 04:28:56 -04:00
Dan Stillman
0717612b4b
fx-compat: Remove contentAreaContextMenu menupopup
...
No longer necessary
2022-05-13 04:28:56 -04:00
Dan Stillman
260c110d05
fx-compat: Convert itembox XBL to custom element
...
Still lots of things to fix, particularly with styling, but the basic
functionality is there.
2022-05-13 04:28:56 -04:00
Dan Stillman
3c6f0b26af
Move .zotero-clicky to its own SCSS component
...
This will allow it to be included in shadow DOM.
2022-05-12 05:18:47 -04:00
Dan Stillman
87f2716da8
fx-compat: zoteroPane.xul → zoteroPane.xhtml
2022-05-12 05:18:47 -04:00
Dan Stillman
abfa09df51
fx-compat: loadURI() signature change in HTTP.loadDocuments()
2022-05-12 05:18:47 -04:00
Dan Stillman
59fd8247b4
fx-compat: Remove overlay.js, since overlays no longer exist
2022-05-12 05:18:47 -04:00
Dan Stillman
d635fdda41
fx-compat: AddonManager.getAllAddons() now returns a promise
2022-05-12 05:18:47 -04:00
Dan Stillman
94c7e0674d
fx-compat: Remove 'context' from onStartRequest()/onStopRequest()/etc.
2022-05-12 05:18:47 -04:00
Dan Stillman
3a77abc8d2
fx-compat: Zotero files are now packaged in app/omni.ja, not zotero.jar
2022-05-12 05:18:47 -04:00
Dan Stillman
004d5db2c3
fx-compat: Services.console.getMessageArray() returns an actual array
2022-05-12 05:18:47 -04:00
Dan Stillman
fb8984c947
fx-compat: XULDocument → XMLDocument
2022-05-12 05:18:47 -04:00
Dan Stillman
46a52b3e3e
fx-compat: Update locales code
2022-05-12 05:18:47 -04:00
Dan Stillman
6d5b2c3d12
Fx-compat: nsIUTF8ConverterService
→ nsIScriptableUnicodeConverter
...
It's not totally clear what this does or if it's necessary (see #1540 ),
but this is a replacement that Thunderbird used.
2022-05-12 05:18:47 -04:00
Dan Stillman
bbecb4d0bd
fx-compat: Add appcontent container to zoteroPane.xul
...
Part of inlining XUL
(View with -w for real diff)
2022-05-12 05:18:47 -04:00
Dan Stillman
1bb99a6bc8
fx-compat: nsIWebNavigation::loadURI() signature change
2022-05-12 05:18:47 -04:00
Dan Stillman
b6f5d7183f
fx-compat: Remove use of tree.treeBoxObject and change getCellAt() signature
...
Properties and methods are now available on the tree itself, and
getCellAt() now returns an object instead of using in-out variables.
2022-05-12 05:18:47 -04:00
Dan Stillman
ee78dd308b
fx-compat: Remove XBL stylesheets (WIP)
2022-05-12 05:18:47 -04:00
Dan Stillman
3f64310d45
fx-compat: Inline all XUL overlays
2022-05-12 05:18:47 -04:00
Dan Stillman
dd2ff63019
fx-compat: Replace nsIDOMParser
with new DOMParser()
2022-05-12 02:38:59 -04:00
Dan Stillman
993320655e
fx-compat: Throw error if generator is passed to DB.executeTransaction()
2022-05-12 02:38:59 -04:00
Dan Stillman
03242e8984
fx-compat: DB.executeTransaction() no longer takes generator functions
2022-05-12 02:38:59 -04:00
Dan Stillman
ccbc785499
fx-compat: XPCOMUtils.generateQI() → ChromeUtils.generateQI()
2022-05-12 02:38:59 -04:00
Adomas Venčkauskas
4d35cdf095
Remove unneeded constant in virtualized table
2022-05-10 17:03:34 +03:00
Adomas Venčkauskas
eb6b14a218
Fix item tree column resizing issues
...
Report https://forums.zotero.org/discussion/97077/problem-with-column-width-adjustment
2022-05-10 17:02:36 +03:00
Adomas Venčkauskas
a406e62fd3
Item Tree: Fix column dividers not aligned for second-level items
...
Closes #2605
2022-05-10 13:52:32 +03:00
Adomas Venčkauskas
aa483f579f
HTML tree: Find-as-you-type remains on matching string.
...
Closes #2607
2022-05-10 13:35:31 +03:00
Dan Stillman
273fc6c657
Update locales from Transifex
2022-05-09 10:05:55 -04:00
Abe Jellinek
db5b535ea6
Update translate submodule
2022-05-07 20:34:37 -07:00
Adomas Ven
c49a05d486
Improve column resizing robustness ( #2588 )
...
Also:
* Add staticWidth and minWidth column properties
2022-05-03 03:00:23 -04:00
Martynas Bagdonas
01645c5e51
Pin library tab ( #2589 )
...
Fixes #2575
2022-05-03 01:21:59 -04:00
Abe Jellinek
097308c5c6
Update utilities submodule
2022-05-02 17:12:39 -07:00
Dan Stillman
b6fdeeca13
Fix deadlock in integrity check before DB schema upgrade
...
One of the repair steps uses a transaction, which is reasonable, so
don't run integrity check within transaction at startup.
2022-05-01 02:14:45 -04:00
Dan Stillman
d201fdc119
Fix target is undefined
error during upgrade from Zotero 4
...
https://forums.zotero.org/discussion/96811/database-upgrade-error-when-migrating-from-version-4-0-to-6-0-directly-skipping-zotero-5
Regression from 078e3bb07
, probably
2022-05-01 02:14:36 -04:00
Dan Stillman
5e0674b842
Add logging for PDF exports
2022-04-30 05:17:41 -04:00
Abe Jellinek
9829ea7009
Update utilities, move tests, add to CI ( #2584 )
2022-04-30 04:55:11 -04:00
Dan Stillman
fd859bd976
Update locales from Transifex and merge new English strings
2022-04-29 18:28:52 -04:00
Dan Stillman
b536432866
Fix mistake in tab-unavailable integration message
2022-04-29 16:54:16 -04:00
Dan Stillman
644cce219a
Tweak tab-unavailable integration message
2022-04-29 16:51:41 -04:00
Adomas Venčkauskas
ff920de130
Fix integration transaction getting stuck when google docs tab is closed
...
Closes #2583
2022-04-29 15:19:20 +03:00
Adomas Venčkauskas
fca16d2ad5
Fix find-as-you-type not matching beyond first letter
...
Closes #2581
2022-04-29 15:19:20 +03:00
Martynas Bagdonas
70c9bef320
Switch tabs with Cmd-Option-←/→
...
Fixes #2475
2022-04-29 12:56:04 +03:00
Abe Jellinek
3bfc6740c4
Add tests for improved compareCallNumbers
( #2579 )
2022-04-28 04:43:30 -04:00
Abe Jellinek
5196ba379b
Update typeSchemaData and builder script ( #2576 )
2022-04-28 02:12:29 -04:00
Martynas Bagdonas
fe14ee79a3
Show a few missing options in Tools menu when PDF reader tab is open
...
Fixes #2502
2022-04-27 18:20:41 +03:00
Martynas Bagdonas
41bdd36068
Add an option to disable smart quotes
...
Fixes #2524
2022-04-27 10:23:10 +03:00
Dan Stillman
a4cdaf0407
Show "Add Note from Annotations" in attachment context menu
2022-04-27 02:34:42 -04:00
Dan Stillman
c405fa76a1
Add sortNotesChronologically.reader pref for PDF reader notes list
...
And default to true. I forgot we were sorting reverse chronologically by
default in order to make it easy to open recent notes.
Follow-up to https://github.com/zotero/zotero/issues/2526 for
https://forums.zotero.org/discussion/96743/pdf-reader-two-feature-requests
2022-04-26 17:59:45 -04:00
Dan Stillman
40501c3953
Update locales from Transifex and merge new English strings
2022-04-26 17:22:39 -04:00
Martynas Bagdonas
10c8fc4c74
Implement tab duplication
...
Fixes #2566
2022-04-26 19:41:51 +03:00
Abe Jellinek
89aaa10504
Sort LC call numbers better, sort integers as integers ( #2569 )
...
* Update utilities submodule after https://github.com/zotero/utilities/pull/8
* Extract and add tests
2022-04-26 04:11:29 -04:00
Martynas Bagdonas
7a06671ecb
Fix undefined variable issue in annotation templates
2022-04-26 08:29:42 +02:00
Adomas Venčkauskas
d96ebad82a
Allow adding multiple sources at once in classic citation dialog.
...
Closes #2568
2022-04-25 13:28:00 +03:00
Adomas Venčkauskas
1be2d69f1e
Log integration invocations before other integration actions
2022-04-25 12:43:48 +03:00
Martynas Bagdonas
b8d427790c
Fix error when using a note template and checking if array is not empty
2022-04-23 14:52:24 +07:00
Adomas Venčkauskas
d9463daa66
HTML Tree: Search by typing loops instead of starting from beginning
...
Closes #2559
2022-04-22 10:58:25 +03:00
Martynas Bagdonas
c1fde1d3d9
Improve tab title visibility and adjust scroll arrow scroll step
...
Fixes #2554
Fixes #2553
2022-04-22 13:07:18 +07:00
Dan Stillman
114b48d5b8
Update locales from Transifex
2022-04-21 15:46:50 -04:00
Dan Stillman
031ff1824b
Fix middle click to close tabs ( #1993 )
2022-04-21 12:23:14 -04:00
Martynas Bagdonas
a8cb9bfddd
Restore custom note styling
...
Fixes #2560
2022-04-21 13:17:04 +07:00
Abe Jellinek
f91ca9c18a
Don't merge with a deleted master attachment
2022-04-20 11:04:24 -07:00
Martynas Bagdonas
142e3b09f8
Unload tabs ( #2500 )
...
- Keep all tabs unloaded on Zotero opening.
- Keep loaded only the last five selected tabs.
- Keep loaded only in the last 24h selected tabs.
Fixes #2383
2022-04-20 03:14:50 -04:00
Dan Stillman
578986ab1e
Fix item types not appearing in New Item submenu
...
https://forums.zotero.org/discussion/96530/a-issue-about-new-item-drop-down-menu
After a type from the submenu was selected and added to the MRU, the
submenu wouldn't be updated. Not sure how long this has been going on.
Fixes #2534
2022-04-19 23:04:18 -04:00
Martynas Bagdonas
5d442b706e
Make tab bar scrollable ( #2506 )
...
Fixes #2232
2022-04-19 18:51:32 -04:00
Adomas Ven
7b0d6951d2
Update csl validator for CSL 1.0.2 ( #2493 )
2022-04-19 18:42:48 -04:00
Dan Stillman
3f10e4c064
Bad JSON in sync cache shouldn't break syncing
...
https://forums.zotero.org/discussion/95926/zotero-not-syncing-report-id-1924846177
2022-04-19 17:49:13 -04:00
Martynas Bagdonas
5c8ea0174a
Fix empty table row height in generated report, prevent table overflow
...
Fixes #2545
2022-04-15 21:59:27 +07:00
Adomas Venčkauskas
5ca8486047
Adjust conditional clause for Windows from 76276a3
2022-04-15 11:21:07 +03:00
Adomas Venčkauskas
76276a39ce
HTML Tree: adjust row padding per OS
2022-04-15 11:15:40 +03:00
Abe Jellinek
e8ad2fab95
getSortTitle: Only strip initial punctuation clusters ( #2537 )
...
Specifically exclude @, #, and *
2022-04-15 02:08:14 -04:00
Dan Stillman
c9b39675ba
Update locales from Transifex and merge new English strings
2022-04-14 18:06:32 -04:00
Dan Stillman
498e38730b
Update translate submodule
2022-04-14 18:06:32 -04:00
Abe Jellinek
d842e7a9bc
Fix save() without transaction when saving search
2022-04-14 14:39:34 -07:00
Martynas Bagdonas
f494ab5114
Allow creating and editing tables in note-editor ( #2511 )
...
Fixes #2480
2022-04-14 17:17:32 -04:00
Adomas Venčkauskas
01506b27e9
Allow moving cursor by clicking on collection name while editing
...
Closes #2513
2022-04-14 17:03:54 +03:00
Adomas Venčkauskas
599c6821b7
Ensure columns don't resize when switching tabs
2022-04-14 16:51:13 +03:00
Abe Jellinek
1538a836b9
Show label of translator that causes import error ( #2539 )
2022-04-14 07:01:43 -04:00
Dan Stillman
08d3880d88
Don't remove relations in annotation item JSON
...
This was causing UUIDs for annotations from Mendeley imports to be
removed after a sync, resulting in annotations being duplicated on a
reimport.
2022-04-14 06:37:30 -04:00
Abe Jellinek
3792c89fbd
Allow >4 numbers after the decimal point in Dewey
...
https://github.com/zotero/zotero/pull/2538#issuecomment-1097292396
2022-04-12 15:45:50 -07:00
Abe Jellinek
ce39185fa7
Sort call numbers alphabetically, handle Dewey specially ( #2538 )
2022-04-12 17:40:25 -04:00
Dan Stillman
a72deb4648
Update locales from Transifex and merge new English strings
2022-04-12 02:57:07 -04:00
Abe Jellinek
e03c1603ca
Fix "%S" in displayed startup error message
2022-04-11 19:03:29 -07:00
Abe Jellinek
38f5551ee5
Add "Open PDF in New Window" to context menu ( #2490 )
...
Also:
* Remove Locate tooltips
2022-04-11 17:53:40 -04:00
Abe Jellinek
a5fc8b859c
Context Pane: Use getNoteTitle()
...
ad36c9fb2a (r71022779)
2022-04-11 13:36:03 -07:00
Abe Jellinek
b8b1f8be55
Disable Import actions in uneditable libraries ( #2471 )
2022-04-11 16:12:43 -04:00
Abe Jellinek
ad36c9fb2a
Context Pane: Sort notes in item tree order
...
Fixes #2526 .
2022-04-11 10:13:50 -07:00
Abe Jellinek
892c1169c8
Attachment merge: Compare link mode type
...
Actually fixes #2527 .
2022-04-11 09:30:16 -07:00
Adomas Venčkauskas
237bd8f0ce
Fix Restore Column Order in Item Tree not always working
...
Closes #2521
2022-04-11 13:55:30 +03:00
Adomas Ven
4c445554a3
Item Tree: Attempt to fix OS font scaling ( #2488 )
2022-04-11 05:16:59 -04:00
Martynas Bagdonas
2af7275968
Fix template condition evaluating to true for empty string from function
...
Fixes #2529
2022-04-11 12:22:20 +07:00
Abe Jellinek
be0b0a7151
Always autocomplete creators in hideEditor ( #2516 )
2022-04-11 00:21:14 -04:00
Abe Jellinek
47a2f3cad9
Attachment merge: Compare linkModes, improve logging
...
Using keys instead of IDs should make logs more useful.
Fixes #2527 .
2022-04-09 20:39:37 -07:00
Dan Stillman
0df8b7670d
Fix broken tag selector with colored tags that differ with normalization
...
https://forums.zotero.org/discussion/96138/lost-content-in-tag-selector
An entered character from the CJK_COMPATIBILITY_IDEOGRAPHS block (char
code 63834, or similar) was normalized to the CJK_UNIFIED_IDEOGRAPHS
block (char code 35712), which then caused an expected key not to exist.
To fix, normalize colored tag values coming from the DB.
2022-04-09 06:24:17 -04:00
Martynas Bagdonas
2112aa7271
Don't jump back to library tab when PDF recognition finishes
2022-04-08 15:31:28 +07:00
Adomas Venčkauskas
b850d16c89
Fix integration error handling code when citeproc-rs disabled.
...
Closes #2508
2022-04-08 10:41:35 +03:00
Martynas Bagdonas
bdbde99fa7
Remove alpha channel from highlight color when inserting a note
...
Fixes #2499
2022-04-08 13:00:33 +07:00
Abe Jellinek
dea9fc5e88
Scaffold: setInterval -> activate listener
2022-04-07 19:50:13 -07:00
Abe Jellinek
a40ab83b71
Fix double separator in Edit menu on Win/Linux ( #2507 )
2022-04-06 23:42:13 -04:00