Dan Stillman
8383c5cda8
Ignore failure trying to show data dir migration status message
...
I saw this once in Standalone but haven't been able to reproduce it. (It
will now manifest as a progress bar without a status message.)
2016-11-22 03:32:16 -05:00
Dan Stillman
ef3e098586
Migrate data directory automatically on macOS and Linux
...
If data directory is within the profile directory and we can move the
subdirectories instantaneously with /bin/mv, just do it silently at startup.
2016-11-22 02:33:05 -05:00
Dan Stillman
288d0c7c06
Create 'profile' and 'Zotero' directories in temp dir for tests
2016-11-22 01:45:07 -05:00
Dan Stillman
98e3a9addf
Allow immediate retry on partial data dir migration failure
...
A common cause of this on Windows will likely be open attachment files,
so suggest closing those and make retrying the default action.
2016-11-21 05:19:18 -05:00
Adomas Venčkauskas
0668faa584
Update connector ItemSaver constructor and misc refactoring
...
(should have been updated along with 3fc38d750
)
2016-11-21 11:45:34 +02:00
Dan Stillman
e8d8f4a0a3
Use spinner instead of items pane message for search
...
Fixes #1116 , and is generally more pleasant
2016-11-21 02:59:31 -05:00
Dan Stillman
335c3d0b98
Fix error creating context menu for independent save button
2016-11-20 03:04:38 -05:00
Dan Stillman
aeaa0d12c7
Avoid console error if page closed before translators are available
...
Was showing up in some test runs
2016-11-20 01:31:47 -05:00
Dan Stillman
d89da85606
Fix error when overwriting translation with some filename
2016-11-19 17:15:46 -05:00
Dan Stillman
ebc01db446
Fix "Zotero.Libraries.get(…).filesEditable is not a function"
...
Since da7da749
2016-11-18 04:54:42 -05:00
Dan Stillman
ef2a403d7b
More data dir fixes (after f2163b3433
and bc3386ff9d
)
...
Fixes error creating a new Standalone profile
2016-11-18 01:44:01 -05:00
Dan Stillman
162c7198d3
Fix console error in Standalone trying to load toolbar icon
2016-11-16 12:42:08 -05:00
Dan Stillman
65a39417bf
Closes #1112 , Show "Upgrading database…" message
2016-11-16 12:41:49 -05:00
Dan Stillman
a1710c3307
Fix hang running tests (since d88cfc6c5f
)
2016-11-16 11:07:58 -05:00
Dan Stillman
bc3386ff9d
Tweak existing data directory detection
...
Fixes some issues after f2163b3433
2016-11-16 09:51:46 -05:00
Dan Stillman
4863670104
Display "Migration in progress — do not interrupt…" during migration
...
Would be nice to have a determinate progress meter on Windows, but that
will require enumerating all files, which maybe would just make things
slower. Might be safer, though, by discouraging people from
force-quitting.
2016-11-16 01:07:26 -05:00
Dan Stillman
062ff18596
Don't clear Zotero pane progress meter message by default
...
If showZoteroPaneProgressMeter() is called with the first argument
undefined, don't clear any existing message. To clear, pass
null/false/"". The message is also cleared when the progress meter is
hidden.
2016-11-16 01:06:54 -05:00
Dan Stillman
06ad369368
Create database when new data dir location is set in pref
...
Regression from new data directory handling
2016-11-16 00:38:58 -05:00
Dan Stillman
d88cfc6c5f
Make Zotero.Styles/Translators.init() wait until bundled files are updated
...
Fixes #1123 , Quick Copy error in console with new data directory
2016-11-15 03:38:27 -05:00
Dan Stillman
c6a2057340
Fixes to hasAttachments column
...
- Fix #1121 , sorting of hasAttachments column -- doesn't work if
hasAttachments is the active sort column on startup, since file states
have to be cached, but works for subsequent clicks on the column
- Don't sort linked URL attachments as missing
- Use hiDPI icon in all cases
2016-11-14 03:08:41 -05:00
Dan Stillman
d70ebce108
Show Styles tab before Word Processors in Cite preferences
2016-11-14 02:23:52 -05:00
Dan Stillman
62177e208d
Check DB lock before checking for restore-from-server marker
2016-11-13 04:55:51 -05:00
Dan Stillman
ce6a0ecb01
Tell connector to reinit after moving data directory
2016-11-13 04:55:51 -05:00
Dan Stillman
cfc7f36829
Don't send lockReleased on Standalone restart
...
This prevents Zotero for Firefox from starting up and shutting down when
Standalone is just restarting.
2016-11-13 04:55:51 -05:00
Dan Stillman
79700969e1
Data directory migration
...
This adds a new button to the Advanced prefs to migrate the data directory to
$HOME/Zotero. The button only appears if the data directory is set to the
default location within a profile directory (including the other program from
the one running, even though that's technically stored as a custom data
directory).
On Mac/Linux, directories within the data directory are moved with /bin/mv. On
Windows, or if that fails, they're copied recursively using OS.File.move()
(which annoyingly doesn't reliably support directory moving). The former should
be instantaneous on most systems (unless the data directory or 'storage' were
on a different filesystem from $HOME).
If the database fails to transfer, migration fails and the data directory
setting remains on the old directory. If the database transfers but other files
fail, the data directory setting is updated. In both cases, the user is
encouraged to migrate remaining files manually with a button that reveals the
directories and quits the program.
This isn't yet tested on Linux or Windows, and migration isn't yet suggested
automatically.
Adds Zotero.File.reveal(), Zotero.File.directoryIsEmpty(), and
Zotero.File.moveDirectory().
2016-11-13 04:55:51 -05:00
Dan Stillman
cfe76a6f83
Add Zotero.test, which is true during tests
...
(Zotero.automatedTest is only true in Travis)
2016-11-13 04:54:57 -05:00
Dan Stillman
4082ff9e8c
Simplify assignment of init options
2016-11-13 04:52:58 -05:00
Dan Stillman
0f19e5c89b
Use coroutine() on Zotero.init()
2016-11-12 16:55:55 -05:00
Dan Stillman
b22850efed
Update data dir prefs for new default location
...
- Show "Default (<path>)" for default option unless set to profile directory
- Don't try to restart on selection if location hasn't changed
2016-11-12 16:44:34 -05:00
Dan Stillman
a5b222edac
Convert dataDir pref to string path and remove lastDataDir
...
.persistentDescriptor now appears to return (and parse) a string path anyway on
macOS, which is the only place where it didn't use a string path to begin with,
so this will only affect earlier users.
2016-11-12 16:44:34 -05:00
Dan Stillman
f2163b3433
New data directory handling
...
- Use $HOME/Zotero if zotero.sqlite exists, and set it as a custom data
directory so that 4.0 uses it if loaded (resulting in a
newer-db-version error instead of an empty database)
- Don't prompt whether to use data directory from the other version's
profile directory (i.e., Firefox or Standalone) -- just do it
2016-11-12 16:44:34 -05:00
Dan Stillman
f00a50bf5a
Better handling of startup errors
...
- Show toolbar icon on startup error (fixes #742 )
- Don't show DB upgrade error message for other startup errors
- Fix some cases of a startup error not being logged/presented
- Show actual error in error dialog for more errors
2016-11-10 02:20:13 -05:00
Dan Stillman
2ad537e4c6
Fix console error trying to add toolbar icon more than once
...
This was appearing a lot in tests.
2016-11-10 02:20:13 -05:00
Adomas Venčkauskas
091c5c279c
Pass the import url over to the standalone on /connector/saveItems.
...
Should address some issues related to translating via a proxy like this one
https://forums.zotero.org/discussion/63057/zotero-not-downloading-pdfs
Addresses zotero/zotero-connectors#3
2016-11-09 11:57:11 +02:00
Dan Stillman
1ae71c3830
Merge branch '4.0'
2016-11-03 17:40:58 -04:00
Dan Stillman
fabf801fdb
Fix some locate engines (e.g., Google Scholar)
2016-11-03 17:35:21 -04:00
Dan Stillman
6e21bb4b57
Update citeproc-js to 1.1.139
2016-11-03 10:11:54 -04:00
Adomas Venčkauskas
7179712909
Change padding-left to margin-left property for hanging indent
...
Intended to fix at least Google Docs. Even the newest versions of MS Office
appear to ignore both padding and margin properties
2016-11-03 13:54:42 +02:00
Dan Stillman
2c014a9af1
Debugging for https://forums.zotero.org/discussion/62942/
2016-10-31 02:29:53 -04:00
Dan Stillman
da7da74986
Update some deprecated function calls
2016-10-26 02:27:31 -04:00
Dan Stillman
ff9e822bd3
Fix errors filtering filenames of synced file downloads
2016-10-26 02:15:56 -04:00
Dan Stillman
a2b7f086d7
Restore diagnostic info in error reports (broken by 59f534d56
)
2016-10-25 03:15:32 -04:00
Dan Stillman
fb15c9a37c
Allow file drag to web targets (e.g., Gmail) and Linux filesystem
...
Closes #67
Closes #465
2016-10-25 03:02:07 -04:00
Dan Stillman
341d3d69b3
Fix export failure on missing file attachments
...
This relies on synchronous file access, but making it async would require
rewriting all export translators that save files.
2016-10-25 02:36:13 -04:00
Adomas Venčkauskas
44e48700ef
Fix connector debug script syntax errors from 24709a9c
2016-10-24 12:40:28 +03:00
Adomas Venčkauskas
24709a9c4b
Remove coroutines from connector-shared code
2016-10-24 11:45:35 +03:00
Adomas Venčkauskas
96e3c2e81c
Remove object with quoted properties syntax in server_connector.js
2016-10-24 10:59:41 +03:00
Adomas Venčkauskas
0d205e8377
Connector server endpoint for reverse dns
2016-10-24 10:56:14 +03:00
Dan Stillman
a3f5ead987
Fix file renaming and same-dir relinking (broken by 79baac3158
)
2016-10-22 15:24:05 -04:00
Dan Stillman
f0bc0274f1
Fix renaming and deleting tags in tag selector
2016-10-22 15:11:12 -04:00
Dan Stillman
79baac3158
Fix relinking of imported attachment with external file
2016-10-22 15:11:12 -04:00
Dan Stillman
0016c5ecf8
Fix editing of saved search in a group
2016-10-20 22:55:42 -04:00
Dan Stillman
8a915beaaa
Fix bug in relations upgrade fix
2016-10-20 22:48:20 -04:00
Dan Stillman
fb6cf4f9a9
Fix upgrade error on duplicate creatorData rows
2016-10-20 20:07:21 -04:00
Dan Stillman
0ce45103bb
Fix style installation from file
2016-10-20 15:41:08 -04:00
Dan Stillman
ba1285fdef
Fix upgrade error if no related items
2016-10-16 12:13:59 -04:00
Adomas Venčkauskas
40abd18895
Add a zoteroPane progress window and use for feed translation
2016-10-16 00:26:07 +03:00
Dan Stillman
0eacbc939b
Fix tag selector context menu
2016-10-15 16:12:42 -04:00
Dan Stillman
63ab9da467
Fix incorrect related items upgrade
...
https://forums.zotero.org/discussion/62779/zotero-5-0-relations-made-in-4-0-disappeared
2016-10-15 16:04:08 -04:00
Adomas Venčkauskas
0d2794531a
Better progress window handling for feed item scraping
2016-10-14 15:46:23 +03:00
Adomas Venčkauskas
32ea7cfbb5
Fix tag selector errors due to unloaded feed synced settings
2016-10-14 12:10:15 +03:00
Adomas Venčkauskas
897b3993b4
Fix feed item translation in standalone
...
Broken due to non-existing progress window in standalone Zotero_Browser
2016-10-14 11:13:00 +03:00
Dan Stillman
b2d580f3c9
Fix Host check regexp from 10ad4c337
...
(And don't allow 127.0.0.1.evil.com)
2016-10-13 01:20:15 -04:00
Dan Stillman
10ad4c3379
Check Host header in connector server to prevent DNS rebinding attack
...
https://twitter.com/FredericJacobs/status/786314822526742528
(The worst an attack could do at the moment is save items to the library, but
the connector server will likely do more in future.)
2016-10-13 00:58:00 -04:00
Dan Stillman
51a3687123
Merge branch '4.0'
2016-10-12 19:29:32 -04:00
Dan Stillman
775d39f93a
Update citeproc-js to 1.1.138
2016-10-12 13:22:15 -04:00
Dan Stillman
bc47b6b171
Reset Collection search condition menu on library change
...
Reported here:
https://github.com/zotero/zotero/issues/145#issuecomment-252678872
2016-10-11 23:55:17 -04:00
Dan Stillman
30f2ecd75a
Move most item field search conditions into submenu
...
This could be extended to address #118/#145, but for now it makes some of the
more common search conditions (Creator, Collection, etc.) more prominent.
2016-10-09 01:02:44 -04:00
Dan Stillman
10d76a1741
Code cleanup in zoterosearch.xml constructor
2016-10-08 20:33:42 -04:00
Dan Stillman
20fd5dd299
Include installed extensions with Debug ID
...
Previously only with Report ID
2016-10-08 20:26:54 -04:00
Dan Stillman
c3dcaf9fe0
Fix error calling ZoteroPane.getCollectionTreeRow() if collection view
2016-10-08 19:59:06 -04:00
Dan Stillman
496e289dd9
Fix NSF schema installation/uninstallation
...
I don't know if this is still used, but now it works on this branch.
2016-10-08 19:57:49 -04:00
Dan Stillman
6f6ce33377
Remove obsolete code for old Firefox versions
2016-10-08 19:15:49 -04:00
Dan Stillman
3bf82a4d4d
Hide items pane at startup to avoid showing column lines
...
Column groups aren't processed until after startup progress meter closes, so
otherwise lines show behind the progress meter for all possible columns.
2016-10-08 18:59:20 -04:00
Dan Stillman
c477d482bf
Update citeproc-js to 1.1.137
2016-10-06 01:33:03 -04:00
Dan Stillman
9c52ebdf8b
Show saved searches under "Collection" search condition
...
With icons to identify collections and searches
Also:
- `savedSearch` search condition in general
- Clean up some search window code
- Reorganize search tests
2016-10-06 01:17:06 -04:00
Dan Stillman
8f38b01712
Move search code into separate files in xpcom/data
2016-10-04 23:44:07 -04:00
Dan Stillman
0769a84a00
Fix low-res icons after switching out of Fx connector mode
2016-10-04 03:12:20 -04:00
Dan Stillman
27f348c7af
Don't count Quick Start Guide items when checking for empty library
2016-10-04 02:59:53 -04:00
Dan Stillman
cfc1b56ca6
Merge pull request #1104 from adomasven/feature/connector-targetAll-support
...
Connector targetAll support
2016-10-04 02:59:11 -04:00
Adomas Venčkauskas
a76256c7f7
Connector translator targetAll support changes
...
Addresses #1021
2016-10-04 09:15:23 +03:00
Dan Stillman
28601a4380
Merge branch '4.0'
2016-09-30 02:58:52 -04:00
Dan Stillman
db8d3fd4b4
Fix dragging of files to the filesystem on macOS (and maybe Linux)
...
Calling getTransferData('zotero/item') when handling the
application/x-moz-file-promise seems to have stopped working between Fx46 and
Fx47, though I can't get older Nightly builds to run with mozregression
(Sierra?) to find the specific change. Instead, work around this by passing an
array of item ids to the file drag data provider.
2016-09-30 02:47:51 -04:00
Adomas Venčkauskas
d3ca13930d
Update http server endpoint
2016-09-29 16:22:21 +03:00
Adomas Venčkauskas
8208ece9df
Fix proxy dialog checkboxes disabled state on init
2016-09-29 04:46:25 -04:00
Dan Stillman
753252be77
Merge pull request #1090 from adomasven/feature/iframe-translator-rules
...
Changes for #1021 to support targetAll translator property.
2016-09-28 11:42:58 -04:00
Dan Stillman
b2152f811a
Tweak text in sync-user-change warning
2016-09-28 00:00:02 -04:00
Dan Stillman
6e74110078
10x speedup in tag selector refresh
...
Using createDocumentFragment() and event delegation
Filtering for a tag could still be sped up quite a lot. Resizing the tag
selector is also very laggy, but that might require switching to clusterize.js
or similar.
2016-09-27 23:58:46 -04:00
Adomas Venčkauskas
5d17ff3f53
Implements #1021 on Z4fx extension
2016-09-27 17:43:56 +03:00
Dan Stillman
ed46414502
Merge branch '4.0'
2016-09-27 02:12:12 -04:00
Dan Stillman
4dc6ef3045
Fix #1100 , Deleting collection also deletes items
2016-09-27 02:10:14 -04:00
Dan Stillman
e0b96a873b
Update citeproc-js to 1.1.136
2016-09-26 14:02:09 -04:00
Dan Stillman
30f7ef093a
Remove Extra field parsing when generating CSL JSON
...
Now done by the processor in 1.1.133 (#1099 )
2016-09-26 01:08:52 -04:00
Dan Stillman
d857a06661
Use OS.File for file reads in Zotero.File.get(Binary)ContentsAsync()
...
This is the recommended approach (since NetUtil can still do some main-thread
I/O for files) and avoids warnings in the console.
For getContentsAsync(), also sends nsIURIs and string URIs to
Zotero.HTTP.request(), which should be used instead.
This makes getBinaryContentsAsync() much slower (due to the conversion from an
array of bytes to a binary string), but it's only used in tests. For one test
that compares two large files, use MD5 instead.
2016-09-24 06:42:30 -04:00
Dan Stillman
12da3f00dc
Fix deregistration of auto-sync listener
2016-09-24 02:29:20 -04:00
Dan Stillman
1adb8d74f0
Properly save search when using "New Saved Search…" menu option
2016-09-23 21:03:00 -04:00
Dan Stillman
a3a9cb9c1e
Fix for too-wide item pane after 4.0 upgrade or prefs reset
...
Regression from stacked layout mode (6bff554976
)
2016-09-23 20:15:00 -04:00
Adomas Venčkauskas
3ca5526f29
Fix translator tester on xul extension
2016-09-23 17:37:47 +03:00
Adomas Venčkauskas
353b935c74
Add targetAll translator param for connector iframe detection
2016-09-23 17:37:47 +03:00
Dan Stillman
794b582244
Merge branch '4.0'
2016-09-22 14:33:42 -04:00