Abe Jellinek
f6dd47dd1f
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:42:36 -05:00
Abe Jellinek
86c56951df
Add /connector/request endpoint
2022-12-23 21:42:36 -05:00
Dan Stillman
5697f12310
Update locales from Transifex
2022-12-23 00:40:26 -05:00
Dan Stillman
4184dc18d2
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 00:20:43 -05:00
Dan Stillman
da392518ed
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-17 04:02:20 -07:00
Dan Stillman
1a83b472e8
Merge new English strings
2022-12-17 02:35:08 -07:00
Dan Stillman
7262465109
Mendeley citation relinking tweaks
...
- Show "More information" link next to relink option
- Automatically check relink option when coming from integration prompt
- Change done message to "[x] items were relinked" instead of "0 items
were imported"
2022-12-17 04:31:55 -05:00
Tom Najdek
91c385a67a
Add option to Mendeley importer to relink items
...
New option only appears if importer version is < 1 or not present.
It will:
* Skip fetching collections and attachments
* Skip any new items
* Update relations on existing items
2022-12-17 04:31:55 -05:00
Dan Stillman
48ad7c0ab7
Mendeley import prompt tweaks
...
- Tweak message text
- Add "More Information" button
2022-12-17 03:58:16 -05:00
Adomas Venčkauskas
2082b68dd3
Add a prompt to import Mendeley DB if mendeley citation found in doc
2022-12-17 03:58:16 -05:00
Adomas Venčkauskas
dcd6cdbcb3
Add a nicer interface for prompts
2022-12-17 03:58:16 -05:00
Adomas Venčkauskas
d27fc31ef0
Fix a potential bug in integration plugin when field codes are corrupt
2022-12-14 16:20:44 +02:00
Dan Stillman
95e46ac8a2
Store Mendeley importer version number in database
2022-12-13 23:38:53 -07:00
Dan Stillman
41b0e64109
"installed" → "enabled" in ZotFile error message for Mendeley import
2022-12-13 23:38:53 -07:00
Dan Stillman
df3856f735
Update locales from Transifex
2022-12-12 00:27:04 -07:00
Abe Jellinek
6a0ecd243d
v-t: Fix freeze when type-to-find wraps and first row is selected
2022-12-06 14:00:54 +01:00
Adomas Venčkauskas
3d8bbb3e55
Link Mendeley citations in documents to imported items. Closes #2622
2022-11-29 16:27:36 +02:00
Dan Stillman
f33cf1cde3
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 20c6fe67
2022-11-28 04:30:50 -05:00
Adomas Venčkauskas
deb5d1cd27
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:57:07 +02:00
Adomas Venčkauskas
29006c556d
Fix quick format locator regexp to not match numbers without space.
...
Closes #2915
2022-11-22 15:57:05 +02:00
Adomas Venčkauskas
2db90511f9
Import URL from XPCOM code instead of relying on window for Proxy code
...
Also fix other failing proxy tests. Closes #2928
2022-11-21 11:51:18 +02:00
Adomas Venčkauskas
dfdc66a41c
Proxy code: ensure URL constructor in non-window JS scope
...
Closes #2924
2022-11-21 10:24:11 +02:00
Dan Stillman
1106685f2d
Fix Item.fromJSON()
failure after deb17d450e
2022-11-19 05:26:04 -05:00
Dan Stillman
deb17d450e
Don't allow note on embedded-image attachments
...
https://github.com/windingwind/zotero-better-notes/issues/212
2022-11-19 04:55:32 -05:00
Dan Stillman
a48e0f2437
Handle relative PDF links when using custom PDF resolver
2022-11-16 18:35:31 -05:00
Tom Najdek
ac4308b3e7
Fix focus stealing in item box #2885 ( #2895 )
2022-11-16 15:55:24 -05:00
Adomas Venčkauskas
c3c0b363c1
Make sure URL constructor is available in non-window environment
2022-11-15 15:23:24 +02:00
Adomas Venčkauskas
ae14d433f9
Don't throw when getting potential proxies with invalid URL
2022-11-15 13:53:25 +02:00
Adomas Venčkauskas
b91d85f288
Deproxify homepage URLs without trailing slash. Closes #2884
2022-11-15 13:23:04 +02:00
Dan Stillman
26847c672f
Fix clearing of active quick search after annotation change
...
https://forums.zotero.org/discussion/90727/search-results-disappear
2022-11-14 22:56:11 -05:00
Dan Stillman
a505c94751
Update locales from Transifex and merge new English strings
2022-11-14 16:46:59 -05:00
Tom Najdek
0e12126436
Block Mendeley import if ZotFile installed
2022-11-13 12:47:29 +01:00
Tom Najdek
d131fe3dc9
Mendeley Import: Auth using direct login
...
* Importer will now ask user for a login and password via form and will perform sign-in directly
using credentials rather than oauth
* Signing in this way enables importer to obtain desktop document ID which is now stored for each
item
* It's possible to switch back to the old method (ouath) by setting `import.mendeleyUseOAuth` pref
to `true`.
* New option to only import new items. This options only appears if database contains previously
imported items.
* Importer will now update mendeleyDB:documentUUID on existing items to match value used in Mendeley
Desktop if available
* Importer will no longer create collections when no new items are imported
* Importer will only report number of new items imported on re-import
* Importer will now preserve dateAdded on re-import
Co-authored-by: Dan Stillman <dstillman@zotero.org>
2022-11-13 12:47:29 +01:00
Abe Jellinek
c2941738e6
Add "Any Field" advanced search condition ( #2902 )
2022-11-11 12:17:56 -05:00
Adomas Venčkauskas
0aae101196
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:55:55 +02:00
Adomas Venčkauskas
e3d13826c8
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:46:36 +02:00
Adomas Venčkauskas
6fc5b037d9
Update translate submodule
2022-11-10 12:28:06 +02:00
Adomas Venčkauskas
6a4a329ec6
Always replace dots to hyphens for https proxy schemes
2022-11-10 12:25:40 +02:00
Adomas Venčkauskas
1920a5efd7
Prevent citation merging from being always enabled after refreshing the doc
2022-11-09 11:07:45 +02:00
Abe Jellinek
47610d0faa
Scaffold: Autocomplete translator IDs in setTranslator() calls
2022-11-01 16:38:01 -04:00
Abe Jellinek
42e042c6c6
Scaffold: Fix copying JSON test data
...
Previously only copied '[object Object]'.
2022-11-01 16:05:54 -04:00
Dan Stillman
b9a5fd9f78
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:57:50 -04:00
Dan Stillman
cbb524d257
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:57:50 -04:00
Dan Stillman
624101832e
Update locales from Transifex
2022-10-31 17:34:24 -04:00
Dan Stillman
a8a0cabcc4
Fix HiDPI icon for webpages
2022-10-31 05:43:17 -04:00
Adomas Venčkauskas
1c8554d527
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:56 +02:00
Dan Stillman
5cea183ae3
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:53:09 -04:00
Dan Stillman
92434dbb78
Update Mac Word automation settings instructions for Ventura
2022-10-30 04:53:08 -04:00
Dan Stillman
2c5a91682e
Fix comment for Zotero.Attachments.getPDFResolvers()
2022-10-29 04:43:23 -04:00
Dan Stillman
3cc54eaf95
Retry only twice on error in Find Available PDF
...
Not three times
2022-10-29 04:43:23 -04:00
Dan Stillman
7f91a0c1a8
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:43:23 -04:00
Adomas Venčkauskas
77fdc8e40c
Truncate long citation text in citation dialog. Closes #2879
2022-10-28 15:09:35 +03:00
Adomas Venčkauskas
a4eafd0307
Fix wrong given name disambiguation after editing author for citeproc-js
...
Closes #2870
2022-10-25 14:55:16 +03:00
Dan Stillman
238c7ce410
Update locales from Transifex and merge new English strings
2022-10-24 21:13:24 -04:00
Dan Stillman
8a15e5abe0
Don't localize "Markdown" in Quick Copy settings
2022-10-24 19:53:42 -04:00
Dan Stillman
159c112257
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-24 19:49:10 -04:00
Dan Stillman
c4876fd5ae
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-22 16:41:48 -04:00
Dan Stillman
7fcc1d35a4
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-22 16:41:48 -04:00
Martynas Bagdonas
d0d3ed731d
Add "Include Zotero Links" option for note export and QuickCopy
...
Fixes #2349
2022-10-22 16:41:48 -04:00
Dan Stillman
f2bfaeb7a9
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-22 05:28:02 -04:00
Adomas Ven
2fa67bae64
Adds support for merging adjacent citations ( #2875 )
2022-10-21 03:17:35 -04:00
Dan Stillman
a2db01c633
Merge new English strings
2022-10-18 00:00:46 -04:00
Dan Stillman
2b9e9c174f
Don't match all attachments with annotations for "not" search conditions
...
Fixes #2867
2022-10-17 23:59:29 -04:00
Dan Stillman
aa0ef7012c
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-17 23:59:07 -04:00
Dan Stillman
73306ee5fb
PDF reader: Add "Page" to rotate menu options for clarity
2022-10-17 23:58:52 -04:00
Martynas Bagdonas
d8d6054927
Add rotation options to Edit menu to rotate the current PDF page
2022-10-17 12:26:47 +03:00
Dan Stillman
410ebc288b
Update locales from Transifex
2022-10-14 17:17:48 -04:00
Martynas Bagdonas
55095ba354
Reduce loaded tabs limit if the system has 8 GB or less memory
2022-10-14 11:13:02 +03:00
Dan Stillman
3ba6343668
Merge new English strings
2022-10-12 05:04:49 -04:00
Dan Stillman
3582405f55
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-12 05:01:10 -04:00
Abe Jellinek
618e71b5f1
Fix last editpane tab being misaligned vertically ( #2864 )
2022-10-11 10:49:30 -04:00
Martynas Bagdonas
af436d34a8
Add pdf-reader annotation creation test
2022-10-10 16:53:42 +03:00
Dan Stillman
e45becce2a
Tweak text in LABD auto-relinking dialogs ( #2374 , #2092 )
2022-10-08 02:29:39 -04:00
Abe Jellinek
fb4f7b7932
Automatically relink attachments from LABD ( #2374 )
...
Fixes #2092
2022-10-08 02:29:31 -04:00
Dan Stillman
fd8aa4433c
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-07 01:31:59 -04:00
Martynas Bagdonas
29dd0cf5dc
Don't allow to rotate or delete pages for read-only PDF
2022-10-06 18:00:32 +03:00
Martynas Bagdonas
28329aa785
Fix annotation image saving to cache for read-only annotations
2022-10-06 17:32:51 +03:00
Martynas Bagdonas
c5d418fc16
Fix annotation saving regression
2022-10-06 16:43:58 +03:00
Martynas Bagdonas
e9c6c76e79
Properly handle errors when trying to open too large (>2GB-1) PDF file
2022-10-06 10:57:04 +03:00
Martynas Bagdonas
b7cc1d549b
Fix pref observer handler unregistering
2022-10-05 14:09:39 +03:00
Dan Stillman
9a3f8dbc94
Update locales from Transifex
2022-10-05 02:45:05 -04:00
Martynas Bagdonas
b594ad0b0a
Allow importing annotations in group libraries
2022-10-04 14:22:54 +03:00
Martynas Bagdonas
4dd1851140
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.
2022-10-04 13:59:16 +03:00
Martynas Bagdonas
006dd20d5b
Re-render annotation images when rotating a page
...
Fixes #2824
2022-10-03 17:03:32 +03:00
Adomas Venčkauskas
55afe7c08d
Fix item list row text not read when using non-contiguous kb selection
...
Closes #2830
2022-10-03 15:20:38 +03:00
Dan Stillman
9fadfac7ee
Add 15 and 16 as note font size options in menu
...
https://forums.zotero.org/discussion/100079/notebook-fonts
2022-10-03 06:43:28 -04:00
Martynas Bagdonas
38ae3a2600
Remove PDF view rotation options
2022-10-03 13:14:37 +03:00
Dan Stillman
3b93147052
Update locales from Transifex
2022-09-30 16:52:13 -04:00
Dan Stillman
b9a1e93518
Merge new English strings
2022-09-30 16:09:56 -04:00
Dan Stillman
99084084d4
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-09-30 16:08:12 -04:00
Dan Stillman
64047f181a
Remove stray "aaa" in "Split Horizontally" in PDF window
...
From 12b1897478
2022-09-30 15:33:00 -04:00
Dan Stillman
12b1897478
Swap "Split Vertically" and "Split Horizontally" in PDF reader
2022-09-30 04:22:48 -04:00
Dan Stillman
8fc9ebe4ab
Update locales from Transifex and merge new English strings
2022-09-30 02:59:52 -04:00
Martynas Bagdonas
4fdf43ed92
Prevent error when creating a note from annotations that have ink
2022-09-30 09:44:27 +03:00
Martynas Bagdonas
9691fcafc2
Import external annotations before trying to add a note from annotations
2022-09-30 09:40:35 +03:00
Martynas Bagdonas
6aad0cbb9c
Add split view for PDF reader ( #2832 )
2022-09-29 13:25:58 +03:00
Dan Stillman
a7e6fc330c
Update locales from Transifex
2022-09-28 05:09:52 -04:00
Dan Stillman
677499865a
Update translators and CSL locales
2022-09-28 04:50:28 -04:00
Dan Stillman
2271913e49
Add Number as items list column option
...
https://forums.zotero.org/discussion/99844/add-columns-to-desktop-app-report-number
2022-09-22 01:48:15 -04:00
Dan Stillman
0b89b15f66
Update locales from Transifex and merge new English strings
2022-09-22 01:14:26 -04:00