Dan Stillman
24022623a1
Move patchBase into options in Zotero.Item.prototype.toJSON()
...
Also:
- Make .mode == 'patch' optional if .patchBase is provided.
- Remove requirement for item to be unchanged, which hopefully wasn't there for
a good reason
- Add a few tests, though more are needed
2015-05-12 20:12:10 -04:00
Dan Stillman
27899c85b5
Add setter and tests for dateAdded
...
Setting dateAdded is necessary for syncing
2015-05-12 19:55:14 -04:00
Dan Stillman
14d435b8d8
Closes #711 , Remove support for nested transactions
2015-05-10 18:32:10 -04:00
Dan Stillman
5635fec4e3
Various creator-saving fixes
2015-05-08 13:35:01 -04:00
Dan Stillman
37f5669319
Fix making an item a child item if it's in any collections
2015-05-07 15:09:40 -04:00
Dan Stillman
3a995d64a4
Fix saving of tags
2015-05-06 04:23:31 -04:00
Dan Stillman
26e1372f46
Throw an error if item type isn't set when saving
...
And add a test for throwing from setField(), which already happens.
2015-05-06 04:20:47 -04:00
Dan Stillman
7879e5432a
Fix new attachment charset saving, which I definitely didn't test before
2015-05-06 04:20:45 -04:00
Dan Stillman
33eaaffd83
Fix Date Modified handling when saving items
2015-05-06 04:19:20 -04:00
Dan Stillman
beb17436f8
Don't mark parentKey as changed when set to false for an unsaved item
...
And return undefined for search objects
2015-05-05 15:57:37 -04:00
Dan Stillman
93a6a4ffdb
Don't mark an empty field set to an empty string as changed
...
And some tests
2015-05-05 15:57:36 -04:00
Dan Stillman
43a2045aec
Change computerProgram 'version' to 'versionNumber'
...
And use 'version' instead of 'itemVersion' for object version for items
Also add deferred foreign key checking to system.sql so that DROP TABLE
commands don't fail mid-transaction
2015-05-04 02:45:53 -04:00
Dan Stillman
e8d4b3e840
Add Zotero.Item.prototype.attachmentFilename
2015-05-04 02:41:14 -04:00
Dan Stillman
1c372f7892
Remove extra debug lines in item test
2015-04-26 18:08:25 -04:00
Dan Stillman
a2b572665d
Make libraryID optional for DataObjects, defaulting to user library
2015-04-26 17:51:29 -04:00
Dan Stillman
db2348f100
Tests for data layer and item fixes/changes
2015-04-25 03:17:42 -04:00