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
Dan Stillman
868a21b7e7
Update renamed styles
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
aa908516eb
Use spy.resetHistory instead of reset
...
Reset was deprecated in 4.1.4 and removed in 5.0.
2018-08-04 22:07:27 +02:00
Sylvester Keil
a8dce25cef
Deprecate Z.File.getBinaryContents
2018-08-03 22:37:09 +02:00
Sylvester Keil
37412c68ff
Fix style download stub
2018-08-03 13:42:15 +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
aa94a62a74
Make test more independent of db state
...
If there are library ids above 9 string sorting may not put the
highest id last in the array.
2018-08-03 11:53:54 +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
Sylvester Keil
824e9c78d6
Move localeCompare tests to Zotero.Intl tests
2018-08-01 15:41:54 +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
Sylvester Keil
3a8d04f467
Remove Zotero.localeJoin
2018-07-30 12:33:08 +02:00
Sylvester Keil
8e6896c27d
Move Zotero.getString() test to Zotero.Intl tests
2018-07-30 10:20:05 +02:00
Sylvester Keil
143fdd5f2b
Revert "Remove legacy iterator protocol use in Zotero.DB"
...
Reverting this until we can use Fx60 for testing.
This reverts commit dfe412d448
.
2018-07-30 10:18:11 +02:00
Sylvester Keil
2dce5f4842
Import PluralForm.jsm in Zotero.Intl.
...
PluralForm is not used directly anywhere else.
2018-07-30 10:04:14 +02:00
Sylvester Keil
e24f3414b8
Zotero.intl -> Zotero.Intl
...
Use upper-case namespace for consitency.
2018-07-30 10:00:53 +02:00
Dan Stillman
36fb465014
Merge pull request #826 from adam3smith:abbrev-fix
...
< "journal of chemical society perkin transactions 1": "J. Chem. Soc. [Perkin 1]",
---
> "journal of chemical society perkin transactions 1": "J. Chem. Soc. Perkin 1",
< "biochemistry": "Biochemistry (Mosc.)",
---
> "biochemistry": "Biochemistry",
Closes #826
2018-07-30 00:50:34 -04:00
adam3smith
94dde661f7
remove Moscow from biochemistry
2018-07-30 00:40:08 -04:00
adam3smith
a8521d2712
fix abbreviation for http://www.ncbi.nlm.nih.gov/nlmcatalog/7505598 (following NLM)
2018-07-30 00:40:03 -04:00
Sylvester Keil
38166d4e05
Add Zotero.intl namespace
...
Move `Zotero.getString()` and intl init code to `Zotero.intl` to make
it easier to re-use.
Link `Zotero.getString()` to `Zotero.intl.getString()`.
Do not expose `getStringFromBundle`, `pluralFormGet`, and
`pluralFormNumForms` because they are not used.
2018-07-28 21:31:20 +02:00
Sylvester Keil
e8cd4c9338
Use Services.io to access IOService
2018-07-27 16:44:28 +02:00
Sylvester Keil
3f2dd94752
Load schema resources via Zotero.File.getResourceAsync
2018-07-27 15:56:34 +02:00
Sylvester Keil
aa1adc8817
Add Zotero.File.getResourceAsync
2018-07-27 15:56:00 +02:00
Dan Stillman
cd24102681
Update locales from Transifex
2018-07-27 02:03:00 -04:00
Dan Stillman
cdda572728
Support additional data from OA PDF lookup service
...
Handle an array of objects with 'url' and 'version' rather than just an
array of URLs.
Also:
- Don't throw an error from addOpenAccessPDF() if there's an error from
getOpenAccessPDFURLs()
- Make addPDFFromURLs() a separate function so URL lookup can be done
separately from download
2018-07-27 00:55:19 -04:00
Adomas Venčkauskas
c3bdf72f35
Misc nodejs environment compatibility
2018-07-25 17:45:06 +03:00
Adomas Venčkauskas
b62b1968cf
Change string throws to Error throws (no stack trace with former)
2018-07-25 17:45:06 +03:00
Dan Stillman
687b1b300c
Update version
2018-07-23 16:21:35 -04:00
Dan Stillman
2652fac24b
Throw translation error on >=400 status code for doGet()/doPost()
...
Previously the handler would be called even on error pages, which often
meant that an import translator (e.g., BibTeX) would fail to find
anything on the page and the save popup would just close silently. The
popup will now show an error message as soon as the error occurs.
2018-07-23 07:05:44 -04:00
Sylvester Keil
dfe412d448
Remove legacy iterator protocol use in Zotero.DB
2018-07-19 12:21:01 +02:00
Dan Stillman
85667429a8
Fix 2x icon size in Edit Bibliography dialog
2018-07-18 13:15:09 -04:00
Dan Stillman
1f8cf22a35
Delete group files when deleting group
...
Fixes #1532
2018-07-15 23:09:34 -04:00
Dan Stillman
8390f30be9
Update citeproc-js to 1.1.210
2018-07-15 09:09:23 -04:00
Sylvester Keil
9737a4d974
Initialize Dates in Electron
2018-07-13 14:03:23 +02:00
Adomas Venčkauskas
28535ac64d
Throw proper error in Prefs.get(). Use double-quotes in default prefs
2018-07-11 19:35:14 +03:00
Adomas Venčkauskas
856bbf49ab
Remove redundant QueryInterface for PrefBranch2
2018-07-11 16:44:04 +03:00