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
Adomas Venčkauskas
cb8280f0ff
Move Zotero.Prefs into its own file
2018-07-11 15:53:46 +03:00
Adomas Venčkauskas
d5c2d887a7
Make ConcurrentCaller.js importable in electron
2018-07-11 14:32:45 +03:00
Sylvester Keil
53522c2cbe
Add Zotero.File.getResource for local resources
...
Use `getResource` in Zotero.Date.init (this turns it into a
synchronous function). Zotero.File.getResource makes it easier
to load local files on platforms that do not support the
`resource://` URLs.
2018-07-11 14:08:45 +03:00
Sylvester Keil
06cb9aff98
Prefer use of Services.appinfo
2018-07-11 13:58:41 +03:00
Sylvester Keil
b2a1977d5a
Gecko 16 and later sets topic to 'active'
2018-07-11 13:58:41 +03:00
Sylvester Keil
e406ddc54b
Prefer Services.jsm getters for common services
2018-07-11 13:58:41 +03:00
Sylvester Keil
3f026239f1
Remove unused methods
...
`.getAsyncStatement()` and `.executeAsyncStatement()` are not used
anywhere.
2018-07-11 13:58:41 +03:00
Sylvester Keil
31395e9516
Export ZOTERO_CONFIG when required as CommonJS
2018-07-11 13:58:41 +03:00
Dan Stillman
892b37db8b
Update styles submodule
2018-07-09 14:58:02 +02:00
Dan Stillman
fe348ddd71
Update version
2018-07-09 14:57:53 +02:00
Dan Stillman
99a1ac62c7
Fix a couple cases of open item box field changes not being saved
...
When clicking directly from an open field to the creator delete button
or a creator type in the creator type menu
2018-07-09 14:54:50 +02:00
Dan Stillman
62e403bc55
Limit OA PDF lookup to dev builds
2018-07-07 13:12:33 +02:00
Dan Stillman
2ebc78adc0
Update submodules
2018-07-07 13:04:49 +02:00
Brenton M. Wiernik
baafd49b8c
Update link to import formats documentation ( #1525 )
...
The existing destination has never really been the appropriate page for this dialogue, as it has never actual listed the supported formats.
2018-07-04 21:09:45 +02:00
Dan Stillman
da9537c5e4
Mendeley import: Properly handle "Mendeley Ltd." folder with period
...
At some point Mendeley seems to have changed the default path to the
data directory on Windows to remove the period, and for people with the
old directory we were linking rather than storing attachment files from
"Downloaded".
2018-07-02 01:06:17 +02:00
Adomas Venčkauskas
c1a9735081
Fix citations updating even after user asks for them not to be updated
2018-07-01 14:23:49 +03:00
Dan Stillman
99584dc918
Import base-directory-relative linked files
...
Zotero RDF contained 'attachments:' paths when files weren't included
but they weren't imported properly
2018-06-30 09:19:09 +02:00
Brenton M. Wiernik
b4ee2fbd98
Add support for bear:// URI protocol ( #1520 )
...
https://forums.zotero.org/discussion/comment/310717#Comment_310717
2018-06-29 02:27:19 +02:00
Adomas Venčkauskas
5425c272b2
Update translation-server-v2 dependent files to be commonJS compatible
...
Also some minor misc changes to translate.js
2018-06-27 17:31:10 +03:00
Dan Stillman
3c82263082
Fix Add Item by Identifier test failure due to capitalization change
2018-06-27 16:28:38 +02:00
Dan Stillman
3aefcdf2d9
Mendeley import: Import folders with parentId of 0 instead of -1
...
Top-level folders should have a parentId of -1, but at least in one user
report there's a folder with 0.
2018-06-27 02:19:00 +02:00
Dan Stillman
f715c02a66
Throw proper error when collection is moved into one of its descendents
2018-06-26 21:06:11 +02:00
Dan Stillman
3c1cdd57d2
Fix error with nested saved searches containing post-search filters
...
Addresses #1518
2018-06-26 00:48:08 +02:00
Dan Stillman
cbf63f4e72
Skip blank tags when importing from Mendeley
2018-06-24 20:04:37 +02:00
Dan Stillman
7785b8df14
Restore open-access PDF retrieval for Add Item by Identifier
...
This reverts commit faa310e0f0
.
2018-06-20 17:19:39 -04:00
Dan Stillman
3d818a6cac
Update version
2018-06-20 17:19:28 -04:00
Dan Stillman
c26bd73895
Update translators
2018-06-20 17:09:11 -04:00
Dan Stillman
faa310e0f0
Temporarily disable Add Item by Identifier open-access PDF retrieval
...
Not going out in 5.0.52
2018-06-20 17:07:11 -04:00
Dan Stillman
a9cd47dc3f
Avoid hang on invalid attachment during import
...
E.g., if a .pdf is really an HTML file, we try to load it in a hidden
browser (because we properly detect the content type), but then the .pdf
extension causes the hidden browser to launch it via the OS and the
hidden browser never finishes loading it. This adds a 5-second timeout
to abort the process.
2018-06-19 18:26:34 -04:00