Commit graph

12560 commits

Author SHA1 Message Date
Dan Stillman
00e63f0f8a Lint: Fix some missing spaces that make eslint behave annoyingly 2023-04-23 17:07:57 -04:00
Abe Jellinek
8096e22f40 Scaffold: Improve perceived translation speed
When translators do a lot of logging.

https://github.com/zotero/translators/pull/3022#issuecomment-1517291971
2023-04-21 13:45:54 -04:00
Dan Stillman
e59e6cdcd8 Update version 2023-04-21 07:18:50 -04:00
Dan Stillman
fcc6cc17a9 Better logging for changes to deleted property 2023-04-21 06:52:11 -04:00
Dan Stillman
8992efc869 Fix potential sync error after Replace Online Library in group
https://forums.zotero.org/discussion/104431/syncing-problem

Replace Online Library can upload annotations created by others in a
group library, so if the upload resulted in a local write, "Cannot edit
item in library" was thrown, since annotations by others aren't
writable. This should've only been a problem if the uploaded data was
actually modified by the server, but we were also checking whether
objects were editable before checking if they had actually changed, so
it would happen for any upload of another person's annotation.

This fixes the order of checks when saving objects and makes an
edit-check exception for saving uploaded data for group annotations.
2023-04-21 06:52:08 -04:00
Dan Stillman
01ebeb1834 Update utilities and translate submodules 2023-04-20 04:37:38 -04:00
Dan Stillman
bed256318a Update connectorTypeSchemaData and test data for Dataset Number removal 2023-04-20 03:36:33 -04:00
Dan Stillman
860e901240 Fix redundant Number on Dataset item type 2023-04-20 03:24:26 -04:00
Dan Stillman
9ce8855fa4 Update citeproc-js to 1.4.63
73bc1b44bc
2023-04-19 17:27:37 -04:00
Dan Stillman
ecbee6ee26 Update version 2023-04-19 16:53:26 -04:00
Dan Stillman
fe8308c9dd Update version 2023-04-19 04:27:33 -04:00
Adomas Venčkauskas
90589606c2 Fix classic citation dialog collection tree not working (regression b213b8f1)
Report https://forums.zotero.org/discussion/104460/zotero-6-0-24-classic-add-citation-dialog-doesnt-show-collections-content
2023-04-19 11:25:29 +03:00
Dan Stillman
77e0c71c74 Update version 2023-04-18 17:45:39 -04:00
Dan Stillman
ac2c001291 Update locales from Transifex 2023-04-18 17:45:39 -04:00
Dan Stillman
c641b28a9f Update translators 2023-04-18 16:45:18 -04:00
Adomas Venčkauskas
31fc418a97 Add a test for feed update scroll issues. See b213b8f1 2023-04-17 12:29:41 +03:00
Adomas Venčkauskas
b213b8f15d Fix feed update refreshing, scrolling item and collection trees
Closes #2950
2023-04-14 15:22:22 +03:00
Dan Stillman
7e6f7ac4b3 CI: Stop using --legacy-peer-deps
No longer necessary after react-virtualized update (#3055)
2023-04-13 00:56:23 -04:00
Dan Stillman
5327616376 Update react-virtualized to 9.22.4
Fixes #3055 for now
2023-04-13 00:53:53 -04:00
Dan Stillman
9a7486e53c Prevent setting search .name to empty value
Prevents bug in zotero-citation plugin (at least on macOS) from creating
a search that breaks syncing

We were already checking for a missing name in `saveTx()`, but the
plugin is saving the same search twice in rapid succession, the second
time without a name, and the second attempt clears the search object's
name value after the first save's `_initSave()` check and before its SQL
write. The second save fails, but the first save goes through without a
name, resulting in a sync error.

https://forums.zotero.org/discussion/104274/id-1702002152-cannot-sync
https://github.com/MuiseDestiny/zotero-citation/issues/31
2023-04-11 23:48:07 -04:00
Dan Stillman
1d6cae08d2 Add '#' to default annotation color
And add test
2023-04-09 17:03:50 -04:00
Dan Stillman
ce16a28f4a Set a default annotation color if not assigned
https://forums.zotero.org/discussion/104249/sync-issue-on-ipados
2023-04-09 17:00:08 -04:00
Dan Stillman
400396be25 CI: Update actions/cache version 2023-04-07 04:28:29 -04:00
Dan Stillman
41c0d9346e CI: Add --openssl-legacy-provider for Webpack 2023-04-07 03:41:51 -04:00
Dan Stillman
543bfdabd3 CI: Use npm i --legacy-peer-deps for react-virtualized 2023-04-07 03:18:25 -04:00
Dan Stillman
dcfce382d9 Update GitHub Actions action versions and Node version 2023-04-07 01:41:28 -04:00
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
a66db9b52b Update connectorTypeSchemaData.js for Dataset and Standard 2023-04-03 01:10:03 -04:00
Dan Stillman
49b08df0dd Update test sample data for authority/legislativeBody base mapping 2023-04-03 00:43:55 -04: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
85c35a2270 Update global schema 2023-04-02 18:41:30 -04:00
Dan Stillman
3cb5837bc6 Update styles and translators 2023-04-02 03:56:16 -04:00
Dan Stillman
7b614962c6 Update locales from Transifex and merge new English strings 2023-04-02 03:52:13 -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
1497524bab Remove localized string for "Authority"
This is only a base field and doesn't need to be localized.

Added by mistake in 42a4649420
2023-03-23 04:18:28 -04:00
Dan Stillman
cd88d1f661 Update CSL locales 2023-03-23 01:37:29 -04:00
Dan Stillman
23ebf277fe Write out path when generating item type/field data for tests
It writes to the build folder, so it's easy to think it's not working.
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
Dan Stillman
bc07bf803c Update locales from Transifex 2023-03-12 16:44:56 -04:00
Dan Stillman
367dfdf969 Update translators 2023-03-12 16:15:16 -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