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
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
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
Sylvester Keil
dfe412d448
Remove legacy iterator protocol use in Zotero.DB
2018-07-19 12:21:01 +02: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