Dan Stillman
62aeb1da32
Full-text syncing support via API [DB reupgrade]
2015-11-12 02:54:51 -05:00
Dan Stillman
cb81f3febd
Set 'Content-Type: application/json' on object uploads
2015-11-12 02:51:48 -05:00
Dan Stillman
69e5c5ae05
Don't accept libraryVersion in syncAPIClient::getVersions()
...
Since /settings is always called first with If-Modified-Since-Version,
it's never necessary to include that in the versions request.
2015-11-12 02:50:24 -05:00
Dan Stillman
ae277391b6
Miscellaneous tweaks
2015-11-12 02:48:41 -05:00
Dan Stillman
614232754a
Allow "Zotero.Fulltext" as "Zotero.FullText"
...
"Zotero.Fulltext" should be considered deprecated, though there's no
warning for it yet.
2015-11-12 02:42:20 -05:00
Dan Stillman
6d289797bf
Retry API requests automatically after 5xx errors
2015-11-12 02:41:40 -05:00
Dan Stillman
790d6d3dd6
Fix "Save to Zotero" in download overlay
2015-11-10 15:52:09 -05:00
Dan Stillman
8197fa4ce8
Fix LIKE binding error in Nightly loading duplicates
2015-11-08 16:16:05 -05:00
Philipp Zumstein
89a0f8910a
Relax condition in parseContextObject
...
Especially, allow rft.subject and rft.description in core OpenURL without Dublin Core declared as format. This fixes #851
2015-11-08 11:21:45 +01:00
Dan Stillman
1e6bb44e80
Show My Publications in Advanced Search and disable Save Search button
...
Closes #703 (unless I'm forgetting something)
2015-11-04 14:06:32 -05:00
Dan Stillman
3100f10396
Make Zotero.Libraries.getAll() return sorted Zotero.Library instances
...
My Library, My Publications, and then groups sorted by name
2015-11-04 14:04:21 -05:00
Dan Stillman
e8a887304e
Move Zotero.CollectionTreeRow to separate file
2015-11-03 17:08:55 -05:00
Dan Stillman
41f5137e24
Update some attachmentMIMEType -> attachmentContentType
2015-11-03 17:08:55 -05:00
Dan Stillman
b8d00e2051
Fix error showing pages/modified in attachment box
2015-11-03 17:08:55 -05:00
Dan Stillman
b52cfae225
Show "Delete Permanently..." button in right-hand pane in trash
2015-11-03 17:08:54 -05:00
Dan Stillman
f2bef5998c
Disable actions in My Publications and clean up trash item menu
...
Disallow everything other than adding a child note in My Publications,
since the wizard only shows on drag (currently, at least). Need to
disable translation separately.
Also show "Delete Item[s]..." in the trash context menu, and hide rather
than disable various menu options.
Addresses #703 -- still need to disable saved search saving
2015-11-03 17:08:10 -05:00
Dan Stillman
687ee6ba07
Fix sync error from items dragged between libraries before first sync
...
And fix bug in Zotero.URI.getURILibrary()
2015-11-02 20:36:47 -05:00
Dan Stillman
318528df4d
Remove obsolete sync code
2015-11-02 03:23:15 -05:00
Dan Stillman
d07756d68d
Store API key in login manager, and add temp field in prefs
2015-11-02 03:22:37 -05:00
Dan Stillman
e03cf637b6
Fix 412 handling
2015-11-02 03:20:29 -05:00
Dan Stillman
7f43ca9503
Merge branch '4.0'
2015-11-01 21:22:13 -05:00
Dan Stillman
e0b5111442
Update some outdated Zotero.Libraries.getType()/getName() calls
2015-11-01 18:29:02 -05:00
Dan Stillman
3ad6e78d98
"Use"->"Keep" existing rights field for clarity in My Publications
2015-11-01 18:21:48 -05:00
Dan Stillman
53478f4752
Allow 412 when uploading deletions
2015-11-01 13:28:03 -05:00
Dan Stillman
110f637d1e
Don't default to Creative Commons license for My Publications
...
Just share on zotero.org by default, and let user choose CC if desired.
2015-11-01 03:59:01 -05:00
Dan Stillman
7e3ba7bc61
Misc. debug tweaks
2015-11-01 03:59:01 -05:00
Dan Stillman
1e6c29766f
Add deletion uploading to API syncing [DB reupgrade]
...
Tags deletions are not currently synced, and maybe don't need to be.
2015-11-01 03:58:54 -05:00
Dan Stillman
6b8e5bafc6
Don't show deleted items outside of trash
2015-11-01 03:36:23 -05:00
Dan Stillman
3692536770
Fixes #862 , Trash Looks Empty
...
Broken by 3ff1ff88a9
2015-10-31 17:13:51 -04:00
Dan Stillman
532d485793
Delete older versions of processed objects in cache
...
And recover from "Sync cache had later version than remote" error, which
shouldn't actually happen...
2015-10-31 15:19:50 -04:00
Dan Stillman
6ccfed2488
Don't show item context menu until it's ready
...
With async generation, an incorrect menu was showing first before the
correct version appeared.
2015-10-31 03:46:47 -04:00
Dan Stillman
b06d93be50
Fix error syncing items in unloaded library
2015-10-31 01:39:36 -04:00
Dan Stillman
37b6a14f17
Fix attachment pane loading
2015-10-31 01:36:49 -04:00
Dan Stillman
c2ad4ceb0a
Output 'deleted' as 1 instead of true in item JSON
...
Good idea? Not sure, but that's what the API does.
2015-10-30 19:07:12 -04:00
Dan Stillman
6993ca252c
Fix download-on-sync mode for ZFS
2015-10-30 17:08:38 -04:00
Dan Stillman
73f4d28ab2
ZFS file sync overhaul for API syncing
...
This mostly gets ZFS file syncing and file conflict resolution working
with the API sync process. WebDAV will need to be updated separately.
Known issues:
- File sync progress is temporarily gone
- File uploads can result in an unnecessary 412 loop on the next data
sync
- This causes Firefox to crash on one of my computers during tests,
which would be easier to debug if it produced a crash log.
Also:
- Adds httpd.js for use in tests when FakeXMLHttpRequest can't be used
(e.g., saveURI()).
- Adds some additional test data files for attachment tests
2015-10-29 04:38:27 -04:00
Dan Stillman
6d46b06617
Better debugging/errors in Zotero.DataObjects
2015-10-29 03:57:09 -04:00
Dan Stillman
1ce4cda384
Don't change 0 to null in Zotero.DataObjectUtilities.checkKey()
...
Not totally sure this function should allow falsy values to begin with,
but it does.
2015-10-29 03:57:08 -04:00
Dan Stillman
0803bb84e3
Don't set collections: "" in PATCH JSON when changing item to child
2015-10-29 03:57:08 -04:00
Dan Stillman
62e586073d
concurrent-caller.js -> concurrentCaller.js
2015-10-29 02:49:31 -04:00
Dan Stillman
2b00a53e02
Accept headers and string path in Zotero.Utilities.Internal.saveURI()
2015-10-29 02:42:44 -04:00
Dan Stillman
3ff6626c12
Zotero.Attachments tweaks
...
Accept a file path from some functions and skip charset detection if
item already has a charset set
2015-10-29 02:41:01 -04:00
Dan Stillman
55c1f0d508
Zotero.HTTP.request() tweaks
2015-10-29 02:37:56 -04:00
Dan Stillman
7cfa857887
Make Zotero.Item::attachmentFilename work without file
...
And have getFilePath() return false instead of failing on unsaved items
2015-10-29 02:33:25 -04:00
Dan Stillman
90286d2a50
Make Zotero.Item::attachmentHash getter asynchronous
2015-10-29 02:30:27 -04:00
Dan Stillman
3fca0644ee
Disable debug output from Notifier
2015-10-29 02:25:02 -04:00
Dan Stillman
d70e9cf41b
Add Zotero.File::zipDirectory()
2015-10-29 02:22:06 -04:00
Dan Stillman
7d8a1b2573
Make Zotero.DataObject#fromJSON() synchronous
...
When called on an identified object (i.e., one with an id or
library/key), loadAllData() must be called first. When called on a new
object (which is more common anyway), fromJSON() can be called
immediately.
2015-10-29 01:19:14 -04:00
Dan Stillman
5d8670db1d
Fix additional causes of high CPU use from items list
2015-10-13 00:33:58 -04:00
Dan Stillman
493d37d1c7
Fix 100% CPU usage with pane open (since 9e356a7e6
)
...
And make Zotero.Item.prototype.fileExists() check the file regardless of
whether there's a cached state.
2015-10-12 23:08:02 -04:00