Adomas Venčkauskas
f5c4fb06e1
Ensure high-dpi icons are loaded in React components
2019-01-21 11:01:32 +02:00
Adomas Venčkauskas
90a70f7c31
Fix a /saveItems session management race condition bug
2019-01-21 11:01:32 +02:00
Adomas Venčkauskas
a24cada451
React Tag Selector polish, i18n and tests
...
- Added icon-button UI code for the menubutton
- Upgrade to React 16 to allow non-standard attrs, such as `tooltiptext`
to support XUL tooltips
- Add i18n support for React UI elements
- Update tests for reactified tag selector
2019-01-21 11:01:27 +02:00
Philipp Zumstein
97e53c5230
Fix some typos found by codespell ( #1570 )
...
$ codespell --skip="./.git,./styles,./translators,./chrome/locale,./resource,./chrome/content/zotero/xpcom/xregexp,./chrome/content/zotero/xpcom/rdf,./chrome/content/zotero/xpcom/citeproc.js,./test/resource,./node_modules" -q 2 -i 3 -w
2019-01-20 20:39:27 -05:00
Dan Stillman
4861b2e841
Update citeproc-js to 1.1.212
2019-01-19 02:38:56 -05:00
Dan Stillman
1c32d3856b
Include item URI in translator item object for notes and attachments
...
This allows for related items, referenced by URI in
`.relations['dc:relation']`, to be included in the export.
2019-01-14 00:35:00 -05:00
Dan Stillman
0d5abb018a
Ignore invalid paths during export
...
Invalid paths, including Windows UNC paths on other OSes, caused exports
to fail. Now they're ignored, which is what we do for other missing
attachment files.
Fixes #1622
2019-01-12 02:34:31 -05:00
Dan Stillman
9c0f5998a3
Use correct time-zone offset for access dates in bibliographies
...
Fixes #1069
2019-01-10 03:14:28 -05:00
Dan Stillman
bd78cacf24
Update locales from Transifex
2019-01-10 00:42:00 -05:00
Dan Stillman
ccdcb1bf72
Fix adding new advanced search row with More field selected
...
Broken in 28aa86eb79
2019-01-08 04:28:28 -05:00
Dan Stillman
5a6a772ca2
Fix linked-URL attachments not being saved to groups without files
...
It looks like this may have been broken for years.
2019-01-08 03:45:26 -05:00
Tom Najdek
897e74c7f1
Reactify the Tag Selector
2019-01-07 15:33:45 +02:00
Dan Stillman
506ed313da
Fix moving item via connector to library with files from one without
...
Broken in ce5be0bc75
for non-webpage items
2019-01-07 05:16:17 -05:00
Brenton M. Wiernik
cf66cc6424
Print highlight colors in Reports ( #1618 )
2019-01-03 16:11:09 -05:00
Dan Stillman
5fa608e379
Deprecate DB.getNextName() in favor of Utilities.Internal.getNextName()
2018-12-27 07:12:26 -05:00
Dan Stillman
7575cd8b29
Don't accept keyboard input before new-collection prompt appears
...
Fixes #1613
2018-12-27 07:11:15 -05:00
Dan Stillman
4bc8fab4f5
Allow translators to specify that attachment URLs shouldn't be proxied
...
Translators can include `proxy: false` in the attachment object to
indicate that the URL should be used as is, without further proxying.
This generally isn't necessary, but sometimes it is (e.g., on
EBSCOhost), and in theory we should start using this whenever a PDF URL
is extracted from the page instead of being constructed manually by the
translator.
Closes #1612
2018-12-26 06:23:26 -05:00
Dan Stillman
b58def7bc4
Expose Zotero.Notes for translation-server/Node
...
Needed for CSL JSON export of notes, which is pointless but better than
throwing an error, I guess.
2018-12-21 02:40:18 -05:00
Dan Stillman
559881b896
Update submodules
2018-12-18 21:17:48 -05:00
Dan Stillman
f9c0e9a571
Update locales from Transifex
2018-12-18 19:46:43 -05:00
Dan Stillman
7594fe1800
Fix advanced search test failure after 13d55910e
2018-12-17 05:36:14 -05:00
Dan Stillman
e82283494b
Update locales from Transifex and merge new English strings
2018-12-17 05:21:38 -05:00
Dan Stillman
bd5243221b
Fix another typo in c81961a9be
2018-12-16 22:41:32 -05:00
Dan Stillman
adcae4b902
Fix typo in previous commit ( c81961a9be
)
2018-12-16 21:36:59 -05:00
Dan Stillman
c81961a9be
Move Z.Items.getFirstCreatorFromItemJSON() to Z.Utilities.Internal
...
Needed for COinS export in translation-server
2018-12-16 21:26:16 -05:00
Dan Stillman
f4bf918f35
Remove ": a novel" from book titles
...
Closes #1581
2018-12-16 03:00:15 -05:00
Dan Stillman
6125d65bc2
Support duplicating saved searches
...
Closes #1431
2018-12-16 02:24:21 -05:00
Dan Stillman
c73e664312
Fix logged error when dragging collection to another library
...
"Collection ID '1234' is not an integer (string)"
2018-12-16 02:24:21 -05:00
Dan Stillman
13d55910ed
Simplify cloning of collections and searches
2018-12-16 02:24:21 -05:00
Dan Stillman
5f07f36ae5
Allow Zotero.Item instance instead of itemID in Collection.hasItem()
2018-12-16 02:24:21 -05:00
Dan Stillman
80f6b857f6
Add Utilities.Internal.getNextName(name, existingNames)
...
Function to get the next available name when duplicating something
2018-12-16 02:24:21 -05:00
Dan Stillman
bf6f1432c5
Move Utilities.Internal.escapeSQLExpression() to Zotero.DB
2018-12-16 02:10:15 -05:00
Dan Stillman
28aa86eb79
Default to previous condition when creating new advanced search row
...
Fixes #1533
2018-12-15 23:52:57 -05:00
Dan Stillman
1c47d21937
Expose Zotero.Cite for translation-server/Node
2018-12-13 02:06:10 -05:00
Adomas Venčkauskas
ffbe44a159
Fix snapshot saves refetching page instead of using passed html
2018-12-12 10:59:58 +02:00
Dan Stillman
9ed8bed778
Find direct PDF from page URL if Content-Type includes invalid parameter
...
The 'application/pdf' Content-Type shouldn't have any parameters, but a
site was returning 'application/pdf;charset=ISO-8859-1', so instead just
look for the 'application/pdf' prefix.
2018-12-11 16:02:57 -05:00
Dan Stillman
368e225ab8
Update locales from Transifex and merge new English strings
2018-12-05 03:35:55 -07:00
Adomas Venčkauskas
a13e788a60
Change Word permission prompt to reference Zotero instead of Terminal
...
This should have been obvious, but we've been seeing Terminal when testing
because we're launching Zotero from the Terminal. Users with installed
Zotero version actually see 'Zotero' in instead of Terminal.
2018-12-05 12:14:18 +02:00
Dan Stillman
0706430609
Add setRequestHeaders() method to Translate.Web
...
For use in zotero/translation-server#16 to pass Accept-Language through
to translation web requests
2018-12-04 02:50:40 -07:00
Dan Stillman
a6fb0b35c3
Update processDocuments() signature for allow passing headers
...
Also:
- Actually use the cookie sandbox passed to processDocuments()
For zotero/translation-server#16 , we want to include Accept-Language
(and maybe other headers) from the client request in upstream requests,
which requires passing it to both non-translate processDocuments().
translation-server's non-translate processDocuments() is defined in that
repo, but it's called by the cross-repo translate processDocuments() in
utilities_translate.js, so the signature needs to be changed in both
repos.
We also apparently weren't using the cookieSandbox in client
processDocuments() calls, though I think that only would've affected
translator testing.
2018-12-04 01:42:56 -07:00
Dan Stillman
223f582aa7
Fix search error on nonexistent collection in recursive mode
...
And don't return results for a nonexistent parent search
2018-11-28 15:31:57 -07:00
Dan Stillman
6137aeddb8
Follow meta redirects for Find Available PDF
...
This fixes direct and VPN-based retrieval of PDFs for Elsevier (e.g.,
ScienceDirect) items that have a DOI but no URL, since Elsevier resolves
DOIs through an intermediate page.
2018-11-26 00:57:48 -07:00
Dan Stillman
7d9b94c79e
Fix autocomplete for tags beginning with _ or %
...
Addresses #1598
2018-11-25 00:36:04 -07:00
Adomas Venčkauskas
b1e3195b5a
Adds translatorTester nodejs compatibility code that doesn't break Scaffold
2018-11-13 13:25:01 +02:00
Dan Stillman
b80c405da4
Revert "Changes for translator tester compatibility with translation server"
...
This reverts commit e526a8fa89
.
This is a repeat of a0ca67d879
. The reverted changes break Scaffold.
This will need to be fixed in a way that allows Scaffold to continue to
work.
2018-11-12 00:40:30 -05:00
Dan Stillman
173d24cce5
Update locales from Transifex
2018-11-11 23:57:58 -05:00
Dan Stillman
30291328ed
Update locales from Transifex and merge new English strings
2018-11-06 01:42:31 -05:00
Dan Stillman
382c11104f
Tweak Word 2011 permissions text
2018-11-06 01:42:26 -05:00
Adomas Venčkauskas
6d63a47e70
Add an i18n string for Word versions pre 2016
2018-11-05 16:50:48 +02:00
Adomas Venčkauskas
057bb3d037
Reduce citation style listbox size to make it fit on smaller displays
2018-11-05 15:14:38 +02:00
Adomas Venčkauskas
51d7959ccd
Revert "Ensure the doc prefs window is smaller than screen height"
...
This reverts commit 0fd28959bf
.
The change causes citation style listbox to fail displaying bottom
entries, a flexed listbox xul bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=413336
2018-11-05 15:14:38 +02:00
Adomas Venčkauskas
0bdebbd64c
Revert "Remove old style conversion code"
...
We got multiple requests from users that use custom 0.8 styles
so we'll have to keep this code for now
This reverts commit a59ce2c343
.
2018-10-31 14:01:11 +02:00
Adomas Venčkauskas
e526a8fa89
Changes for translator tester compatibility with translation server
2018-10-31 11:32:33 +02:00
Philipp Zumstein
8fdccb828f
Fix comment in ItemProgress.prototype.setIcon ( #1591 )
2018-10-27 03:26:16 -04:00
Adomas Venčkauskas
8d61e30a93
Update translatorTester for use in translation server
2018-10-26 16:30:08 +03:00
Dan Stillman
91bac0e052
Add 2x icons for attachment-snapshot and conferencePaper
2018-10-26 00:54:40 -04:00
Dan Stillman
f26c2c52d8
Update locales from Transifex
2018-10-24 01:27:32 -04:00
Dan Stillman
7fb20a8882
Update locales from Transifex
2018-10-23 17:08:13 -04:00
Dan Stillman
6abfd3b5b0
Fix 'req is undefined' error after consecutive S3 failures
2018-10-22 05:30:20 -04:00
Dan Stillman
053599993b
Add successCodes argument to translator doGet/doPost
...
In 2652fac24
we started failing the translator if doGet/doPost returned
a >=400 status code, but at least one translator (Primo) relied on doGet
continuing after a 404. This allows translators to specify the status
codes that are allowed, similar to the same argument in
Zotero.HTTP.request().
(We'll clean up the signature at some point or just get rid of these
functions, but this is a quick fix for Primo.)
2018-10-21 06:01:06 -04:00
Dan Stillman
a0ca67d879
Revert part of 5b3b1f0f1
to fix Scaffold breakage
...
I didn't look into the details, but `this` isn't defined when this file
is loaded within Scaffold, so this line caused an error and the
translator tester was broken.
2018-10-21 05:37:03 -04:00
Dan Stillman
28e1d7dfb6
Update submodules
2018-10-21 02:17:57 -04:00
Dan Stillman
c7915e5bc2
Don't add four spaces when tabbing to indent list in note
...
Fixes #1236
2018-10-20 03:39:26 -04:00
Adomas Venčkauskas
206b4d7005
Catch translation select callback errors
2018-10-19 14:59:16 +03:00
Adomas Venčkauskas
5b3b1f0f1b
Update translatorTester for translation server support
2018-10-19 13:47:44 +03:00
Adomas Venčkauskas
9d98f765b2
Point doc help to general word processor help page. Closes #1585
2018-10-18 13:34:26 +03:00
Dan Stillman
fc1f737986
Throw proper error for "key must be an 8-character string" error
2018-10-18 04:35:18 -04:00
Dan Stillman
4aaec5f091
Fix note being read-only after viewing note in trash
2018-10-14 23:35:05 -04:00
Adomas Venčkauskas
f7e9067660
Fix imports with missing attachments not closing progress window. Closes #1583
2018-10-12 13:48:20 +03:00
Dan Stillman
6bf31b274f
Update locales from Transifex and merge new English strings
2018-10-10 21:53:03 -04:00
Dan Stillman
00a680b692
Clean up Mac Word permission error text
2018-10-10 21:47:38 -04:00
Dan Stillman
1e3608e82e
Add zotero://select support for collections
...
zotero://select/(library|groups/:groupID)/collections/:collectionKey
2018-10-10 21:38:10 -04:00
Dan Stillman
2d38a0102c
Show "Find Available PDFs" even if non-regular items are selected
2018-10-10 21:38:10 -04:00
Dan Stillman
33a7cc57ea
Fix popup when no items are eligible for "Find Available PDFs"
2018-10-10 21:38:10 -04:00
Adomas Venčkauskas
e0630d16c2
Add i18n strings for the Mac Word SB Permission dialog
2018-10-10 15:51:00 +03:00
Adomas Venčkauskas
1beab1d3a7
Don't attempt to fetch daySuffixes in Connector/Bookmarklet
2018-10-10 14:25:24 +03:00
Dan Stillman
bd5fca3c23
Skip empty tags from connector
2018-10-10 06:03:41 -04:00
Adomas Venčkauskas
c65ca34afe
Permit /connector/delaySync for the bookmarklet
2018-10-10 12:41:16 +03:00
Dan Stillman
ab27dd154e
Fix status indicator for successful PDF retrieval in progress window
2018-10-09 18:24:53 -04:00
Dan Stillman
f6448c5de4
Update locales from Transifex
2018-10-09 17:51:05 -04:00
Dan Stillman
be8db4fc50
Don't show progress window for PDF recognition if only one file
2018-10-08 02:46:13 -04:00
Dan Stillman
1b9811c31d
Fix test failures after 18f79f9796
2018-10-06 01:38:32 -04:00
Dan Stillman
7630a8a054
Update locales from Transifex and merge new English strings
2018-10-06 00:32:38 -04:00
Dan Stillman
18f79f9796
Use progress dialog for PDF retrieval
2018-10-06 00:22:57 -04:00
Dan Stillman
a2f13c9043
Allow setting custom status line and hiding Minimize in progress dialog
2018-10-06 00:16:15 -04:00
Dan Stillman
4a6501c198
Update comments for PDF retrieval functions
2018-10-05 01:57:13 -04:00
Martynas Bagdonas
ae7ef109b7
Add universal progress queues ( #1573 )
2018-10-05 01:56:46 -04:00
Adomas Ven
b6065a7af6
Changes for bookmarklet update to current codebase ( #1579 )
2018-10-04 04:16:31 -04:00
Martynas Bagdonas
ec5424d5ae
Follow meta redirects and use the final URL when processing documents ( #1568 )
2018-10-03 22:24:39 -04:00
Adomas Venčkauskas
a59ce2c343
Remove old style conversion code
2018-10-03 15:48:27 +03:00
Dan Stillman
e57e297156
Update submodules
2018-09-26 19:00:05 -04:00
Dan Stillman
a97bbc6ab2
Update locales from Transifex
2018-09-26 18:59:01 -04:00
Dan Stillman
3a8fd4d942
Fix additional translatorCache problems at startup
2018-09-25 06:24:17 -04:00
Dan Stillman
10ca281c47
Update locales from Transifex
2018-09-23 02:45:40 -04:00
Dan Stillman
d899134e7c
Automatically delay between PDF retrieval requests to the same domain
...
Delay requests to the same domain by 1 second, respect a Retry-After
header if present for 429 and 503, and delay for 10 seconds on 429 or
5xx otherwise.
2018-09-22 04:03:25 -04:00
Dan Stillman
536c07e9f4
Pass URL to Zotero.HTTP.UnexpectedStatusException
...
This allows the URL to be retrieved at .url in the thrown error.
2018-09-22 04:03:25 -04:00
Dan Stillman
b25d2d9c56
Update Zotero.HTTP.request() documentation
2018-09-22 04:03:25 -04:00
Dan Stillman
b782120840
Add followRedirects: false option to Zotero.HTTP.request()
...
Currently only .status and .getResponseHeader() (for getting 'Location')
are available in the returned object, but we could make the body
available if necessary.
2018-09-22 04:03:25 -04:00
Dan Stillman
b8db83af08
Split out a couple helper functions for PDF retrieval
2018-09-21 21:12:15 -04:00
Dan Stillman
c6a2af7ab5
Use 'load' instead of 'pageshow' in Zotero.HTTP.loadDocuments()
...
This seems to fix snapshots in Twitter, which need to wait for a
JS-based self-redirect [1].
[1] https://blog.twitter.com/engineering/en_us/topics/insights/2018/twitter_silhouette.html
2018-09-21 21:12:15 -04:00
Philipp Zumstein
2957db2aa1
Delete two duplicate switch cases ( #1569 )
2018-09-14 17:01:47 -04:00
Dan Stillman
f4ac511b50
Copy items across libraries in batches of 100
...
This will hopefully fix failures when copying huge numbers of items.
2018-09-14 04:14:08 -04:00
Adomas Venčkauskas
0cb683ab18
Ensure we don't maintain document sessions across different doc processors
2018-09-10 08:40:48 +03:00
Maecenas Li
dd9ee66212
Add support for marginnoteapp:// URI protocol ( #1567 )
...
https://forums.zotero.org/discussion/comment/316070/#Comment_316070
2018-09-08 06:01:02 -04:00
Dan Stillman
d8b2d24524
Better fix for invalid file localUrl in Mendeley DB
2018-09-07 01:22:09 -04:00
Dan Stillman
3f2ee35d59
Tweak debug line
2018-09-06 17:22:03 -04:00
Dan Stillman
6b7c161bce
Update locales from Transifex and merge new English strings
2018-09-06 16:57:20 -04:00
Dan Stillman
7cf466a0b6
Save OA PDFs when the DOI resolves directly to the file
2018-09-06 16:44:11 -04:00
Dan Stillman
18821984e0
Accept a Blob as input in Zotero.File.putContentsAsync()
2018-09-06 16:44:11 -04:00
Dan Stillman
36afb34cf6
Show warning if Zotero is started from Mac disk image
...
Doing so can cause the Word for Mac extension not to load, and possibly
other problems.
https://forums.zotero.org/discussion/73470/word-could-not-communicate-with-zotero-with-three-full-uninstalls-and-reinstalls
2018-09-06 00:53:50 -04:00
Dan Stillman
4b64cc312c
Handle possible null file URL in Mendeley import
2018-09-05 14:41:13 -04:00
Dan Stillman
01e2f32d03
Updates locales from Transifex
2018-09-04 14:59:43 -04:00
Dan Stillman
03a15d47af
Remove redundant OA PDF search in Add Item by Identifier
2018-09-04 14:15:25 -04:00
Adomas Venčkauskas
66ed33b9fb
Fix must insert citation prompt in new doc with copied fields. Closes #1564
2018-09-04 16:37:46 +03:00
Dan Stillman
6061bbdfd8
Update locales from Transifex
2018-08-30 21:35:49 -04:00
Dan Stillman
05d8e7a8a3
Check Extra field for DOIs for PDF retrieval
...
E.g., a book with a DOI in Extra
Closes #1551
2018-08-30 16:52:24 -04:00
Adomas Venčkauskas
944188fa63
Fix RTF dontUpdate=true citations updating on LO. Closes #1561
2018-08-30 10:55:54 +03:00
Dan Stillman
5a008cf861
Don't save collections from Scaffold
...
Fixes zotero/scaffold#60
2018-08-27 17:45:42 -04:00
Dan Stillman
d0af622490
Add localized strings for Google Docs download warning
2018-08-27 17:14:22 -04:00
Dan Stillman
4eb4490723
Don't limit PDF retrieval to dev builds
2018-08-25 17:00:53 -04:00
Dan Stillman
862ac5ab40
Handle missing 'attachments' array in /connector/saveItems
2018-08-25 16:55:13 -04:00
Dan Stillman
9e1b9937e1
Update locales from Transifex and merge new English strings
2018-08-25 16:55:12 -04:00
Dan Stillman
e7e681c113
Set retrieved OA PDF title to reflect version
...
"Full Text", "Accepted Version", or "Submitted Version"
2018-08-25 16:48:17 -04:00
Dan Stillman
1860b57802
Update locales from Transifex and merge new English strings
2018-08-21 22:45:18 -04:00
Dan Stillman
abc4cd9dfe
Clear translatorCache table when resetting translators
2018-08-21 22:36:20 -04:00
Dan Stillman
91a3c27235
Fail schemaUpdatePromise and show alert on initialization failure
...
This will also cause the word processor plugin to throw an error isntead
of hanging if there was a problem loading translators or styles.
Closes #1557
2018-08-21 22:36:20 -04:00
Dan Stillman
475bd17b71
Fix 'title is null' error
...
Not sure why item.title would ever be null, but this was in a user's
error report and seemed to be causing a restart error.
2018-08-21 22:36:20 -04:00
Dan Stillman
1c8607d661
Update locales
2018-08-20 23:01:11 -04:00
Dan Stillman
6fe4c84b3d
Fix "Checking (null) items" for PDF retrieval
2018-08-20 17:26:37 -04:00
Adomas Venčkauskas
0fd28959bf
Ensure the doc prefs window is smaller than screen height
...
Dynamically resizes the style picker up to the window height of 700px
2018-08-20 12:42:45 +03:00
Dan Stillman
8d5338db2d
Additional debug output for setting base directory
2018-08-19 22:49:09 -04:00
Dan Stillman
4f98ad9567
Vacuum database automatically after clearing full-text index
2018-08-19 04:06:04 -04:00
Dan Stillman
926e2f7317
Reduce memory consumption of full-text index clear
2018-08-19 04:05:38 -04:00
Dan Stillman
18021d1aeb
Disable rebuild/clear buttons in Search prefs while in progress
2018-08-19 03:51:00 -04:00
Dan Stillman
c9e80319bb
Support "Show File" on evicted iCloud Drive files
2018-08-19 02:41:45 -04:00
Dan Stillman
ec76575645
Trigger downloading and opening of evicted iCloud Drive files
2018-08-19 01:44:49 -04:00
Dan Stillman
e48a1a2abb
Remove lots of old Zotero for Firefox code
...
We still run tests in Firefox, so not everything can be removed.
2018-08-17 03:17:08 -04:00
Dan Stillman
c2ca70055c
Merge branch 'electron'
2018-08-16 19:16:46 -04:00
Dan Stillman
6d898e4774
Add extra debug logging for file merging
2018-08-16 17:09:14 -04:00
Martynas Bagdonas
7a3dc61892
Add an utility to fix author name capitalization ( #1550 )
2018-08-16 05:22:39 -04:00
Dan Stillman
1ffc34a8ac
Don't try to retrieve PDFs when importing from a file
2018-08-16 05:21:00 -04:00
Dan Stillman
6d5abb55f0
Fix regression from 9fec063f4e
2018-08-16 05:20:03 -04:00
Adomas Venčkauskas
50a4bae945
Remove unused ZP.addItemFromPage()
2018-08-16 11:48:48 +03:00
Adomas Venčkauskas
044b08c9af
Fix broken DataDirectory.removeSubdirectory() (regression 7f2d83a6
)
2018-08-16 11:48:48 +03:00
Adomas Venčkauskas
2cf940763f
Remove usage of HTTP.loadDocuments() in electron shared code
2018-08-16 11:48:48 +03:00
Dan Stillman
8d105a7b18
Update locales from Transifex and merge new English strings
2018-08-16 04:12:30 -04:00
Dan Stillman
9fec063f4e
Tweak display of attachment status lines in connector for PDF retrieval
...
Generally speaking, don't show a status line unless we have reason to
believe we'll be saving something.
2018-08-16 04:04:20 -04:00
Dan Stillman
ce5be0bc75
Automatically download open-access PDFs when saving via the connector
...
If there's no translated PDF or the translated PDF fails and the item
has a DOI, check Zotero's Unpaywall mirror for possible sources and try
to download one of those.
Unlike with "Add Item by Identifier" and "Find Available PDF" in the
item context menu, this does not try the DOI/URL page, since it would
result in more data leakage and most of the time you'd be saving from
the DOI page already. We could consider offering it as an option, but
for it to be useful, you'd have to have an institutional subscription,
be on-campus or connected via VPN (for now), and be saving from
somewhere other than the main page.
A new connector endpoint, sessionProgress, takes the place of
attachmentProgress. Unlike attachmentProgress, sessionProgress can show
new attachments that have been added to the save, and with a little more
work should also be able to show when a parent item has been recognized
for a directly saved PDF.
This also adds support for custom PDF resolvers, available to all PDF
retrieval methods. I'll document those separately.
Closes #1542
2018-08-16 00:57:22 -04:00
Dan Stillman
7a646a292b
Pass response data to Zotero.WebProgressFinishListener callback
...
Pass an object with 'status' and 'contentType' if available
2018-08-16 00:57:22 -04:00
Dan Stillman
bcf94942f9
Don't include "Zotero" in User-Agent sent to non-Zotero sites
2018-08-16 00:57:22 -04:00
Dan Stillman
65bdef42a1
Fix double PDF when adding arXiv paper with Add Item by Identifier
2018-08-16 00:57:22 -04:00
Dan Stillman
f5beb5be7d
Update locales from Transifex
2018-08-15 21:32:12 -04:00
Dan Stillman
e38725cf65
Localize new PDF retrieval strings
...
Closes #1541
2018-08-15 21:32:12 -04:00
Adomas Venčkauskas
850d2d2977
Expose private Attachments functions for electron
2018-08-15 17:11:30 +03:00
Adomas Venčkauskas
01f3159b2f
Ensure all failing integration tests are fixed ( 8d8410ff
). Closes #1546
2018-08-14 11:40:19 +03:00
Dan Stillman
11f8bd20d6
Fix title display when installing style via connector (broken in 0f1687f1c7
)
2018-08-13 18:17:35 -04:00
Martynas Bagdonas
51996b537d
Force description when submitting a recognizer report ( #1547 )
2018-08-13 11:14:18 -04:00
Dan Stillman
5ad2a83b61
Fix possible restart error with invalid Quick Copy setting
...
If you had Quick Copy set to a missing translator, had a site-specific
Quick Copy setting, and loaded a page in the browser, the next click on
an item would result in a restart error.
2018-08-12 19:06:28 -04:00
Dan Stillman
6112002003
Fix breakage from ea8b15a44a
2018-08-12 04:09:26 -04:00
Dan Stillman
6d299f85f8
Merge new English strings
2018-08-12 02:45:55 -04:00
Dan Stillman
ff8df06c75
Improve error messages on certificate and connection errors
...
- Show a clearer message on a certificate error that includes the
underlying error, which should make debugging much simpler. (No more
checking in a browser and hoping it's the same connection.)
- Mention proxy server in message on startup proxy-check failure
- Include link to connection-error KB page on sync connection failure
Closes #1191
Closes #1513
2018-08-12 02:38:44 -04:00
Philipp Zumstein
ea8b15a44a
Replace getTargets with getStatementsMatching ( #768 )
...
As suggested in the same file `getTargets` is deprecated since 2.1
2018-08-11 14:36:43 -04:00
Dan Stillman
a97abed533
Extra logging for restart error
2018-08-11 06:29:09 -04:00
Dan Stillman
d278437a81
Only try 6 URLs from Unpaywall for a given DOI
...
Hard to imagine needing more than that many tries, and some DOIs appear
to have a huge number of URLs by mistake.
2018-08-11 06:17:28 -04:00
Dan Stillman
7cf6634764
Fix progress window hang if Find Available PDF fails
2018-08-10 17:36:04 -04:00
Adomas Venčkauskas
0f1687f1c7
Fix invalid document citation style recovery. Closes #1543
2018-08-10 11:00:07 +03:00
Dan Stillman
1274d5a4fe
Updates locales from Transifex and merge new English strings
2018-08-09 15:56:15 -04:00
Dan Stillman
c5890a2479
Remove unused WebDAV methods
2018-08-09 15:45:15 -04:00
Dan Stillman
276bb99fc9
Don't percent-encode periods in usernames in WebDAV requests
...
For some reason nsIURL encodes periods in usernames, even though RFC3986
says not to [1]. (It also says servers should normalize them, and most
seem to, but apparently not all [2].)
[1] https://tools.ietf.org/html/rfc3986#section-2.3
[2] https://forums.zotero.org/discussion/73127/zotero-will-convert-the-into-2e-in-the-name-of-the-webdav
2018-08-09 15:45:15 -04:00
Dan Stillman
168bc78f1a
Show error icon at startup if proxy check fails
...
If a proxy is required and we can't connect to S3, show the (sync) error
icon. For SSL certificate errors, which are the most common cause of
this, the panel includes a link to the SSL cert troubleshooting page.
2018-08-09 15:45:15 -04:00
Dan Stillman
0f19872a8d
Show 'https://' in SSL certificate error message
2018-08-09 06:10:55 -04:00
Dan Stillman
2b6d24bc75
Only show "Find Available PDF" in dev builds
2018-08-09 04:39:28 -04:00
Dan Stillman
c7076ab935
Add Zotero.isDevBuild
2018-08-09 04:36:36 -04:00
Dan Stillman
bb46d72fd1
Add DB integrity check repair step for TEXT userID
...
Follow-up to 26056c87f1
2018-08-09 04:18:30 -04:00
Dan Stillman
c45c9cc23b
Fix error backing up database
...
Broken since f7e411d561
. This affected automatic backups and DB
integrity check repairs (which do a backup first).
2018-08-09 04:17:45 -04:00
Dan Stillman
63d8d57f83
Add userID fix to earlier schema update
...
Since the userID is used in relations updates moving from Zotero 4 to 5
2018-08-09 03:42:28 -04:00
Dan Stillman
26056c87f1
Fix non-integer userID in settings table
...
A submitted database had a text userID with a trailing "A0. Not sure how
that happened -- it doesn't appear to be possible in current code -- but
it caused group permissions not to be properly synced.
2018-08-09 03:30:47 -04:00
Dan Stillman
8d8109dbac
Rename/move some of the PDF retrieval functions
2018-08-07 15:40:52 -04:00
Dan Stillman
b00704f54c
Add context-menu icon for "Find Available PDF"
2018-08-07 15:39:31 -04:00
Dan Stillman
43ba06fbc5
Update locales from Transifex and merge new English strings
2018-08-07 04:58:15 -04:00
Dan Stillman
679a6d5cc7
PDF retrieval improvements
...
- Add the ability to extract a PDF URL from a given webpage using the
translation framework
- Add the ability to get open-access PDFs from landing pages from
Unpaywall data in addition to direct PDF URLs
- Use the above functionality to improve PDF retrieval for "Add Item by
Identifier"
- Add "Find Available PDFs" option to the item context menu to retrieve
PDFs for existing items from the DOI or URL page or using Unpaywall
data. The option appears for single items with a DOI or URL and no PDF,
and it always appears when selecting multiple top-level items (but
skips ineligible items).
PDF extraction from DOI/URL pages will currently only work with
unauthenticated access (i.e., on-campus or VPN, but not via a web-based
proxy).
Supersedes and closes #948
2018-08-07 04:58:15 -04:00
Adomas Venčkauskas
51e181cb81
Fix some XPCOM Zotero breakage from previous commits
2018-08-06 12:24:17 +03:00
Sylvester Keil
a8dce25cef
Deprecate Z.File.getBinaryContents
2018-08-03 22:37:09 +02:00
Sylvester Keil
fa7a330b0e
Use Services.wm getter
2018-08-03 13:29:08 +02:00
Sylvester Keil
ad0c8aad53
Use Z.File.getResourceAsync to load local resources
2018-08-03 13:22:22 +02:00
Sylvester Keil
b0fe7d546d
Make Z.Styles.validate more portable
2018-08-03 13:21:12 +02:00
Sylvester Keil
07464d5c84
Make File.getResource expect full URLs
...
This change makes is easier to support different URL schemes
when overriding on other platforms.
2018-08-03 10:49:15 +02:00
Sylvester Keil
6fd25419a9
Use Services.io getter
2018-08-02 23:05:17 +02:00
Sylvester Keil
dc688a876f
Keep returning nsIFile from old directory getters
2018-08-02 17:56:57 +02:00
Sylvester Keil
91ddec5bd9
Move lazy, spawn, and serial to Utilities.Internal
2018-08-02 17:20:09 +02:00
Sylvester Keil
95559a0c62
Use Services.io getter
2018-08-02 13:11:15 +02:00
Sylvester Keil
7f2d83a602
Move data dire getters to Z.DataDirectory
...
Add Z.DataDirectory.getSubdirectory which, optionally, creates
the directory.
Add async Z.DataDirectory.removeSubdirectory and use it for
Z.removeTempDirectory (was sync call before!).
2018-08-02 13:02:28 +02:00
Sylvester Keil
fc8037a83b
Accept strings in File.createDirectoryIfNecessary
2018-08-02 12:52:04 +02:00
Sylvester Keil
e9e6a8313d
Move prviliged public methods to Utilities.Internal
...
Moving flattenArguments, setFontSize and getAncestorByTagName
2018-08-02 11:59:58 +02:00
Sylvester Keil
caaaed0af1
Move privileged public functions to Z.Utilities
2018-08-01 23:57:02 +02:00
Adomas Venčkauskas
e6d5be755a
Move some Utility functions from Zotero to Z.U.Internals
2018-08-01 16:30:17 +03:00
Sylvester Keil
887913de09
Fix use of bluebird's .delay
2018-08-01 11:49:00 +02:00
Sylvester Keil
cc47a3aab5
Use hard-coded list for default script direction
2018-07-30 13:23:54 +02:00
Sylvester Keil
94539ceac5
Do not bind to Zotero.Intl before it has been imported
2018-07-30 13:22:20 +02:00
Sylvester Keil
4a97529b66
Move getLocaleCollation and localeCompare to Zotero.Intl
2018-07-30 12:35:11 +02:00