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
Dan Stillman
3703bf0423
Move lastStorageSync to shared accessor code
...
And fix variable spelling
2015-09-29 13:06:58 -04:00
Dan Stillman
ba3d90eaf9
Make sure Zotero.Libraries.userLibrary doesn't get out of sync
...
b976c84a29 (commitcomment-13492424)
2015-09-29 13:06:58 -04:00
Dan Stillman
1b333be23f
Add Zotero.Library.prototype.lastStorageSync
2015-09-29 04:42:13 -04:00
Dan Stillman
b976c84a29
Add Zotero.Libraries.userLibrary
2015-09-29 04:42:13 -04:00
Dan Stillman
691819bd32
Add Zotero.Library.prototype.libraryTypeID
...
Get the library-type-specific id for the library (e.g., userID for user
library, groupID for group library)
2015-09-29 04:42:13 -04:00
Dan Stillman
88627adcdb
Update linked attachment base directory code
...
- Replace nsIFile and persistent descriptors with OS.File and string paths
- Add tests for base dir settings
2015-09-29 04:42:12 -04:00
Dan Stillman
9e356a7e63
Migrate relative/persistent descriptors to string paths [DB reupgrade]
...
Absolute paths have been stored as strings on all platforms for a while,
but old Mac persistent descriptors (Base64-encoded opaque alias records)
could still exist in the DB. Additionally, relative paths for stored
files were stored as Mozilla-specific opaque strings rather than UTF-8
strings.
This adds a schema step to convert those to strings paths in the DB.
Since Mac persistent descriptors aren't converted if the file isn't
found, we still handle and (convert) old-style persistent descriptors if
necessary when reading paths from the DB.
This also moves path string handling -- converting a path to a prefixed
string for stored or base-dir-relative files -- to the
Zotero.Item#attachmentPath setter instead of save() so that reading it
back immediately returns the correct value. One consequence is that the
attachment link mode must now be set before setting the path.
Zotero.Item#getFile() is now deprecated in favor of getFilePath() and
getFilePathAsync() (which checks file existence).
Zotero.File.directoryContains() now takes string paths instead of files.
2015-09-29 04:42:08 -04:00
Dan Stillman
80008fd13d
Pass tabIndex param to pref window to select tab within specified pane
2015-09-29 04:11:21 -04:00
Dan Stillman
d9b5e17c9c
Asyncify Zotero.Attachments.getNumFiles() and add hasMultipleFiles()
...
Latter is probably all that's needed
2015-09-22 04:11:31 -04:00
Dan Stillman
fc1137b769
Asyncify Zotero.Attachments.getTotalFileSize()
2015-09-22 04:11:30 -04:00
Dan Stillman
2df630e83c
Fix hang in sync tests from library version changes
2015-09-22 04:11:30 -04:00
Dan Stillman
0965079842
Use correct property in Zotero.Libraries.getVersion/setVersion()
2015-09-22 03:52:46 -04:00
Dan Stillman
add9481c63
Adjust error and feed tests for access error on read-only libraries
2015-09-22 03:52:31 -04:00
Aurimas Vinckevicius
0a88032715
ZU.capitalize should not throw for empty string
2015-09-21 17:08:23 -05:00
Aurimas Vinckevicius
d122323dbf
Fix fullText tests on Windows
2015-09-21 17:08:22 -05:00
Aurimas Vinckevicius
88ab129ffb
Add Feed and FeedItem
...
Also:
* _finalizeErase in Zotero.DataObject is now inheritable
* Call _initErase before starting a DB transaction
* removes Zotero.Libraries.add and Zotero.Libraries.remove (doesn't seem like this is used any more)
2015-09-21 17:08:21 -05:00
Aurimas Vinckevicius
74863843f4
Tweak varDump to not use object property getter unnecessarily
2015-09-21 02:28:09 -05:00
Aurimas Vinckevicius
0320b08b05
Do not return lastInsertRowID for INSERT, REPLACE, and CREATE
...
Unreliable for async queries
2015-09-21 02:28:09 -05:00
Aurimas Vinckevicius
6cef123662
Don't allow trashing items in read-only or "no trash" libraries
2015-09-21 02:27:53 -05:00
Aurimas Vinckevicius
e5a5a8d303
Don't allow erasing objects from read-only libraries
2015-09-21 02:27:53 -05:00
Aurimas Vinckevicius
1621f5772b
Fix deleting collection with items
2015-09-18 03:34:04 -05:00
Aurimas Vinckevicius
07ca00edd5
Use _canHaveParent property to determine if object can have parent
2015-09-18 03:34:04 -05:00
Dan Stillman
b53892fe54
Fix various collection-dragging UI bugs
...
Fixes #823 , hopefully
2015-08-08 17:26:42 -04:00
Dan Stillman
9fa53439ef
Update hasChildCollections() when child moved to another collection
2015-08-08 16:45:51 -04:00
Dan Stillman
5a61ac4871
Don't try to select unselectable row on library tree row removal
...
(If deleting a group, don't select the header or separator before it.)
2015-08-07 16:36:53 -04:00
Dan Stillman
cbf4876173
Fix attachment renaming
...
Fixes #822
2015-08-07 15:36:46 -04:00
Dan Stillman
06867d886e
Fix note loading
2015-08-06 22:49:21 -04:00