Commit graph

9993 commits

Author SHA1 Message Date
Dan Stillman
d05fd69fc2 Block JS and media loading in reports 2023-11-02 17:40:03 -04:00
Adomas Venčkauskas
32e50d89be Fix http word integration word path unicode issues. 2023-09-27 12:19:58 +03:00
Dan Stillman
16ea4da9b2 Don't show underline or text annotations in Zotero 6 2023-09-05 00:00:18 -04:00
Adomas Venčkauskas
a8a691fddb Fix the integration template check for unknown agents
(cherry picked from commit 9668270017)
2023-09-04 03:09:16 -04:00
Dan Stillman
e19ab9b30b Don't require unused date field in retractions list
(cherry picked from commit b4c3c0c7f9)
2023-09-03 18:53:15 -04:00
Abe Jellinek
8f3f3c9b86 Fix ScienceDirect PDF downloads
ScienceDirect sometimes puts the `name` directive at the end of the Content-Type
header instead of in Content-Disposition. That isn't strictly spec-approved, but
there are other directives (`charset` and `boundary`) that can also be appended
to Content-Type per the spec. We want to strip them before looking for handlers.

https://forums.zotero.org/discussion/105194/sciencedirect-pdf-downloads-not-working-zotero-7

(cherry picked from commit a4c3f5267b)
2023-08-30 05:46:31 -04:00
Dan Stillman
117bc45ed4 Look up PubMed IDs in batches of 200
https://forums.zotero.org/discussion/comment/440245/#Comment_440245

(cherry picked from commit af91173734)
2023-08-30 05:46:29 -04:00
Dan Stillman
4db311eb46 Serialize lookup requests
These were switched to parallel in 86b77cc45, resulting in blocks:

https://forums.zotero.org/discussion/106658/limited-amount-of-articles-that-can-be-added-through-pmid

(cherry picked from commit fcc68d6d80)
2023-08-30 05:46:26 -04:00
Dan Stillman
fb148497ba Add Zotero.getMainWindows()
(cherry picked from commit 07309d7c25)
2023-08-30 05:34:39 -04:00
Dan Stillman
6f506bbc3d Make annotation sortIndex more flexible
(cherry picked from commit af892e5cbd)
2023-08-30 05:23:18 -04:00
Martynas Bagdonas
78865ed2ef Add support for text annotations
(cherry picked from commit 89adf56eed)
2023-08-30 05:21:48 -04:00
Martynas Bagdonas
0ad55a6a70 Add support for underline annotations
(cherry picked from commit cb14034c46)
2023-08-30 05:21:43 -04:00
Dan Stillman
4f7583e1c0 Disable attachmentContentType check to prevent sync errors
(cherry picked from commit 81ec8287f8)
2023-08-30 05:21:12 -04:00
Adomas Venčkauskas
48c7c60bf1 Include information about saved snapshots in /saveSnapshot 2023-07-12 10:32:08 +03:00
Adomas Venčkauskas
9515912830 Update template version check 2023-06-16 10:18:42 +03:00
Adomas Venčkauskas
078626be82 Add support for macWord transaction initialization via HTTP 2023-06-16 10:17:53 +03:00
Abe Jellinek
0d6678a735 Disable window dragging inside toolbar controls
And enable in the context pane toolbar extension.
2023-05-17 16:54:01 +03:00
Abe Jellinek
1b3caadd20 Allow window dragging from PDF reader toolbar
Fixes #2713
2023-05-16 16:21:48 +03:00
Abe Jellinek
c9381f307c Accept non-integer attachmentLastPageIndex 2023-05-12 22:30:01 +03:00
Dan Stillman
c9c7805cdf Remove connectorTypeSchemaData.js and update build_typeSchemaData.js
We now use zoteroTypeSchemaData.js in the connector, so update the
build script to generate that.
2023-05-06 02:01:36 -04:00
Dan Stillman
3e12f3f20b Revert to earlier translate submodule before Z7 HiddenBrowser changes 2023-05-01 02:06:31 -04:00
Dan Stillman
2f0d41c0cb Ignore numeric values for Type: lines in Extra
https://forums.zotero.org/discussion/comment/433334/#Comment_433334
2023-04-23 17:07:57 -04:00
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
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
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
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
ac2c001291 Update locales from Transifex 2023-04-18 17:45:39 -04: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
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
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
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
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