Commit graph

8631 commits

Author SHA1 Message Date
Martynas Bagdonas
5ad5598089 Don't show HTML and Markdown options for collection export
Fixes #3033
2023-04-05 09:15:36 +02:00
Dan Stillman
2e4fed4000 Update global schema and utilities 2023-04-02 19:12:17 -04:00
Dan Stillman
db99d4cfe1 Update utilities submodule 2023-04-02 19:04:15 -04:00
Dan Stillman
c8109fef18 Restore "Authority" as localized string
We still use base-only fields as search conditions, and schema.json
consumers might want to do so as well, so it makes sense to include
them.

Also remove base-only localized strings from `searchConditions` that are
already included in `itemFields.`
2023-04-01 17:13:28 -04:00
Dan Stillman
cd88d1f661 Update CSL locales 2023-03-23 01:37:29 -04:00
Dan Stillman
42a4649420 Add Dataset and Standard item types
zotero/zotero-bits#22
zotero/zotero-bits#52
2023-03-23 01:37:29 -04:00
Dan Stillman
778fba60cb Limit Everything full-text-word subsearch to current library
This fixes an error using Everything if another library hasn't yet been
loaded and should speed up Everything searches for people with multiple
libraries.

This is sort of an awkward fix, because it doesn't fix the underlying
problem of `addCondition('libraryID', ...)` not working the same as
`.libraryID =` for some search conditions that perform subsearches. But
supporting `addCondition('libraryID', ...)` for those would get
complicated, because there could technically be multiple such
conditions, and applying those to a subsearch that used `AND` would get
messy. So let's just fix the problem at hand.

Fixes #3032
2023-03-21 16:11:59 -04:00
Dan Stillman
bba09658e1 Update CSL locales 2023-03-21 15:56:47 -04:00
Dan Stillman
b298a48cda Better way of skipping migration of Place and Date from Extra
Or at least a way that we already have built-in and that only applies to
the call in `Zotero.Item::migrateExtraFields()`. This doesn't
distinguish between CSL fields (`publisher-place`, `event-place`,
`issued`) and actual Zotero field, and we really only need to skip
the former, but it's fine.

Follow-up to 8a1dd3637, related to #3030
2023-03-21 06:29:50 -04:00
Dan Stillman
8a1dd3637c Temporarily disable extracting Issued from Extra
Until we can parse ranges in the Date field. See #3030.

citeproc-js will still use it (which is the point).
2023-03-21 05:55:08 -04:00
Adomas Ven
e024449732
Sorts first-author last name matches first when year present. (#3025)
Closes #3024
2023-03-18 20:52:54 -04:00
Abe Jellinek
14bb46f434
Scaffold: Support the detectedItemType test field (#3023) 2023-03-13 17:50:41 -04:00
Tom Najdek
c57c3c470e
Mendeley importer: Fix issue with empty tags (#3018)
Also adds a test for this particular case and for importing tags in
general.
2023-03-09 16:13:19 -05:00
Tom Najdek
a1d06066b2
Mendeley importer: Fix issue with empty creators (#3016)
It does not appear to be possible to create a creator with no values in
Mendeley, however we got reports of these causing the imports to fail.
This tweak makes the importer more resilient by discarding empty/invalid
creators.
2023-03-07 19:40:42 -05:00
Dan Stillman
1f45c44b86 Fix no such column: IA.authorName error from early 6.0 beta upgrade
Fixes #3013
2023-03-04 22:19:01 -05:00
Andreas Grapentin
8ac77bf9f0
modified standalone keyset to include the quitApplication keybinding (#3010)
modified unix keyset to include the quitApplication keybinding, modified windows keyset to use the correct keybinding
2023-03-04 22:16:05 -05:00
Adomas Venčkauskas
59ba212cf8 Use referrer from connector when saving snapshots
Closes #3006
2023-02-28 13:38:05 +02:00
Dan Stillman
935c67bc01 Match duplicates with same last name but different field modes
https://forums.zotero.org/discussion/103307/duplicates-not-being-recognised-as-duplicates
2023-02-28 00:35:13 -05:00
Dan Stillman
adf6f9f2fb Use clearer variable in item box
https://groups.google.com/g/zotero-dev/c/TvOfXVxwwkA/m/SdpU1QD7AAAJ
2023-02-25 01:39:22 -05:00
Abe Jellinek
bdadd363d3 Scaffold web template: Serialize multiples
Fixes #2980
2023-02-23 16:37:16 -05:00
Dan Stillman
c3cde7784d Update CSL locales 2023-02-22 22:16:05 -05:00
Dan Stillman
f3c0c01fe1 Fix startup error if DB corrupt and no backup files
Fixes #2996
2023-02-18 03:49:56 -05:00
Martynas Bagdonas
0bd39ef42e Fix annotation image rendering caused issues:
- Don't save unmodified annotation item when rendering annotation image
- Don't render annotation image multiple times
2023-02-17 10:31:28 +00:00
James Eschrich
d866a10a2b
Made toolbar accessible to keyboard (#2853) 2023-02-13 23:28:53 -05:00
Adomas Ven
0f9024dc98
Remove firefox-zotero IPC pipe and switching code (#2990) 2023-02-13 19:18:40 -05:00
Martynas Bagdonas
b956d9b429 Add Filename option for PDF tab title pref 2023-02-06 17:44:01 +00:00
Dan Stillman
962cc23d1a Update Retraction Watch retraction reasons 2023-02-05 21:50:29 -05:00
Dan Stillman
b924720a2d Detect retractions for DOIs with capital letters
https://forums.zotero.org/discussion/102745/retraction-watch-not-working
2023-02-05 21:50:29 -05:00
Dan Stillman
ce60ce90f6 Add PDF reader tab title pref to General pane 2023-02-03 00:43:18 -05:00
Dan Stillman
6d0e5959e6 Rename PDF tab title pref to include reader
In case we have a separate pref for notes or something else
2023-02-03 00:43:18 -05:00
Martynas Bagdonas
a5fb64f295
Add a hidden pref for tab title with support for Creator-Year-Title option (#2985) 2023-02-02 17:35:58 -05:00
Adomas Ven
0ffe3122c2
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-01-17 15:59:19 -05:00
Martynas Bagdonas
1f721feab7 Increase active tabs count from 2 to 3 on Windows and <=8 GB systems 2023-01-17 19:35:38 +02:00
YFdyh000
9f53b48984
Show fieldLocalizedName in Scaffold - List All Fields (#2965) 2023-01-17 10:38:43 -05:00
Dan Stillman
5919f0e77a Fix DOI field context menu not appearing after field edit
Context menu wouldn't appear again until the item box was refreshed
2023-01-12 20:35:22 -05:00
Dan Stillman
f006995676 Item box: Use addEventListener() 2023-01-12 20:35:20 -05:00
Dan Stillman
665473b108 Add protection against immediate retries in delayGenerator 2023-01-11 02:32:44 -05:00
Dan Stillman
21777af980 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:32:39 -05:00
YFdyh000
4fbb89a588
stop opening while right click on attachment's url (#2962) 2023-01-09 19:36:05 -05:00
Dan Stillman
ff38ff5b9d 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-01-09 06:15:33 -05:00
Dan Stillman
9d2c7d44f8 Additional logging for "Invalid sync state undefined"
https://forums.zotero.org/discussion/102186/invalid-sync-state-undefined
2023-01-07 15:25:21 -05:00
Abe Jellinek
3678639273
LABD file relinking: Process using Unix paths (#2961) 2023-01-05 15:07:10 -05:00
Martynas Bagdonas
52a079044d Limit Windows version to 2 PDF tabs in memory
Fixes zotero/zotero#2955
2023-01-02 12:51:14 +02:00
Dan Stillman
0862e1e1bc Revert "Zotero.HTTP.request(): Process headers case insensitively"
This reverts commit f6dd47dd1f.

I shouldn't have cherry-picked this from fx102.
2022-12-24 03:55:15 -05:00
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
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
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