Dan Stillman
9077b2f495
Fix display of some icons in Standalone
2016-07-22 11:59:55 -04:00
Dan Stillman
70a91f9674
Increase max tag colors from 6 to 9
2016-07-22 11:59:55 -04:00
Dan Stillman
3b71ec5410
Throw "Error", not "Exception", in merge.xml
2016-07-21 13:16:08 -04:00
Dan Stillman
01ba8dfc34
Don't show missing-group warning for skipped groups
2016-07-20 15:36:31 -04:00
Dan Stillman
1bd058ed48
Prompt for library data reset on 403 upload error
...
Addresses #1041 for data -- still needed for files
2016-07-19 22:12:13 -04:00
Dan Stillman
5fee2bf4ca
Prompt to reset library data/files on loss of write access
...
On reset, items are overwritten with pristine versions if available and deleted
otherwise, and then the library is marked for a full sync. Unsynced/changed
files are deleted and marked for download.
Closes #1002
Todo:
- Handle API key access change (#953 , in part)
- Handle 403 from data/file upload for existing users (#1041 )
2016-07-19 19:05:17 -04:00
Dan Stillman
ee74030d03
Warn if attachmentSyncedModificationTime is set to too-low timestamp
2016-07-19 18:51:15 -04:00
Dan Stillman
3655c09450
Zotero.Item.prototype.deleteAttachmentFile()
2016-07-19 18:51:05 -04:00
Dan Stillman
66ca2cfda2
Fix saving of automatically merged remote changes during sync
2016-07-19 02:27:38 -04:00
Dan Stillman
2857f85656
Alphabetize feed list
2016-07-19 01:50:18 -04:00
Dan Stillman
7b45b920fc
Fix clearing of missing fields in Item::fromJSON()
2016-07-18 23:44:36 -04:00
Dan Stillman
2d39614143
Fix subcollections being shown at top level of groups
...
Fixes #1065
2016-07-18 17:51:59 -04:00
Dan Stillman
ab10d1617e
Replace deprecated Zotero.Libraries.isEditable() call on note save
2016-07-17 15:14:06 -04:00
Dan Stillman
381fe38b89
Fix #1038 , Notes skip back to beginning if typing during auto-save
...
Set a unique id on the note editor at initialization and pass it along
to item.saveTx(). When notify() is called, if the save was triggered
from the current note field, don't do a refresh.
This does mean that the note field won't reflect changes (e.g.,
normalizations) made by the save process until the user clicks away and
back, which makes me a little uncomfortable. If we can find specific
cases where that occurs (paste?), we can reevaluate this approach.
2016-07-17 15:14:06 -04:00
Dan Stillman
69dec87aa6
Allow passing arbitrary values to notifier events from DataObject.save()
...
item.saveTx({
notifierData: {
foo: 1
}
});
foo: 1 will be included in the extraData[id] object in notify().
2016-07-17 15:14:06 -04:00
Dan Stillman
4449da7e91
Tweak note field auto-save triggering
...
This avoids unnecessary timeout calls and fixes a problem where typing
in a newly initialized note doesn't save it until the first blur().
2016-07-17 15:13:39 -04:00
Dan Stillman
6a7e3d0259
Add "is (less|greater) than" to num pages/volumes search conditions
...
https://forums.zotero.org/discussion/60897/
2016-07-16 17:15:17 -04:00
Adomas Ven
b0157efd23
Clone feed item if no translators available ( #1061 )
2016-07-14 14:17:56 -04:00
Adomas Venčkauskas
f7a6464f82
Use feed item links for guid if id unavailable
2016-07-13 13:49:46 +03:00
Dan Stillman
1b6dffb886
Don't refresh collections pane when updating library last-sync times
2016-07-12 03:23:47 -04:00
Dan Stillman
cd3f621a00
Don't auto-sync skipped libraries on change
2016-07-12 00:41:08 -04:00
Dan Stillman
599598566b
Use best first creator for OpenURL author, not just first position
...
This also fixes Google Scholar Search lookup to use an author not in first creator
position [1].
[1] https://forums.zotero.org/discussion/58384/
2016-07-11 06:30:55 -04:00
Dan Stillman
83d11947ff
Fix UI breakage that prevents switching collections
...
I'll add a test later once I figure out how to reproduce this, but I
think this should fix the "id is undefined" errors.
2016-07-11 06:25:19 -04:00
Dan Stillman
c1f7a188e2
Fix error modifying existing saved search with more than 1 condition
...
Closes #1056 , which wasn't actually the problem
2016-07-07 07:55:15 -04:00
Dan Stillman
18cf6088b0
Fix CR window for storage files (follow-up from d44eeb752b
)
2016-07-07 05:45:58 -04:00
Dan Stillman
54ba532ebd
Fix display of parent item title in popup note window
2016-07-07 05:19:26 -04:00
Dan Stillman
d44eeb752b
Fix error on CR of child note, and show parent item title in merge pane
2016-07-07 05:18:02 -04:00
Dan Stillman
72bad4309b
Show "Choose Parent" button for deleted items in CR window
2016-07-07 04:08:11 -04:00
Dan Stillman
9f9e95ea96
Show conflicts in debug output when showing CR window
2016-07-06 13:56:27 -04:00
Dan Stillman
bfbac24667
Condense debug output for skipped up-to-date items when syncing
2016-07-06 13:54:25 -04:00
Dan Stillman
7dce069490
Merge English strings to locales
2016-07-06 02:14:55 -04:00
Dan Stillman
c40a5a983c
Fix #1057 , Item order is lost in saved search after item edit
...
Broken by 3dc0ad37
2016-07-06 02:09:14 -04:00
Dan Stillman
fc857dc496
Close #1053 , Manual sync option in library context menu
...
This also reworks how the collection context menu is built to do more in
JS instead of XUL, though it can't do it all in JS because some
localized strings are in zotero.dtd and are used in standalone.xul too.
2016-07-02 03:15:37 -04:00
Dan Stillman
893b9ae1fc
Show "Duplicate Items" and "Unfiled Items" for all libraries by default
...
Previously they only showed for My Library by default, which I suspect
meant that most people didn't know you could get them for other
libraries...
This hides "Duplicate Items" and "Unfiled Items" from the context menu
when they're active, which may or may not be desirable (but we don't
show, say, "Trash" in the context menu).
Also tweaks selection behavior after hide to select next appropriate row
instead of the parent library.
2016-07-02 03:15:37 -04:00
Dan Stillman
51b3951fb0
Maintain open state of groups on collectionTreeView refresh()
2016-07-02 03:15:37 -04:00
Dan Stillman
86b5042781
Rename _rememberOpenStates() to _saveOpenStates() in collectionTreeView
2016-07-02 01:27:51 -04:00
Dan Stillman
e787bb1183
Fix save()/saveTx() warning when uploading settings
2016-06-30 07:24:06 -04:00
Dan Stillman
2a55e56f3f
Save open field when selecting from an item pane context menu
...
If a field is open and the user right-clicks on another field (e.g., swap
names, creator type, transform text), any changed value in the open field was
lost.
Also:
- Don't show swap-names menu in single-field mode
I can't quite get programmatic access to context menus to work correctly, so
tests are disabled for now. (They work individually, but not together.)
2016-06-29 05:35:51 -04:00
Adomas Ven
2cce099928
Add custom view groups for different library types ( #1042 )
...
I originally attempted this with zotero-persist and column attributes,
but there is no good way to make it succinct paramswise and the code was
painful to look at too. Thus different group settings are stored in
preferences.
Currently there are two view groups: "feed" and "default". Items view
columns have two new attributes:
`default-in` - a space separated list of views in which a column is
visible by default
`disabled-in` - a space separated list of views in which a column is
disabled by default (invisible + not possible to enable)
Fields not parsed for feeds are now disabled.
2016-06-28 20:12:54 -04:00
Dan Stillman
622530e889
Fix #1054 , UI breakage after unsubscribing from feed
2016-06-28 14:29:15 -04:00
Dan Stillman
9e6565fe00
Skip skipped groups when syncing
...
Except if a library list is passed to Zotero.Sync.Data.Runner.sync() (which
isn't done currently but will be in #1053 )
Follow-up to #1033
2016-06-27 16:48:32 -04:00
Adomas Ven
b0f3a234d0
Allow choosing of synced libraries in sync preferences ( #1033 )
...
Affects Sync button and auto-sync. Manual library sync will be possible later via library context menu.
2016-06-27 12:47:11 -04:00
Adomas Ven
11e7cef057
Show hard warning dialog when unlinking or linking to a different account ( #1047 )
...
And give option to delete local data when unlinking
This removes the old behavior of merging accounts when syncing with a different username.
2016-06-27 12:40:38 -04:00
retorquere
bd6dec352c
Sort items for translator
...
In response to https://forums.zotero.org/discussion/60375?page=1#Item_6
2016-06-27 15:54:50 +02:00
retorquere
32c6e1edb3
Sort items for translator
...
In response to https://forums.zotero.org/discussion/60375?page=1#Item_6
2016-06-27 15:12:02 +02:00
Dan Stillman
caaee87e9e
Fix showing of WebDAV settings in sync prefs
2016-06-26 05:29:51 -04:00
Dan Stillman
0ea328dac5
Fix changing of linked attachment base directory
2016-06-26 02:02:22 -04:00
Dan Stillman
2f562a4fdf
Fix Travis errors with OS.File.DirectoryIterator for real
2016-06-24 21:12:29 -04:00
Dan Stillman
edc996b1ed
Sanity-check OS.File.DirectoryIterator entry.isDir only on Travis
...
Follow up from 2c2a5a378
2016-06-24 18:32:35 -04:00
Dan Stillman
2d88b07855
Set Zotero.automatedTest flag instead of .noUserInput on Travis
...
And don't skip alerts in Zotero.alert() during automated tests. (That
was intended to avoid long timeouts after unexpected failures, but,
e.g., PDF metadata lookups (which are currently disabled in automated
tests) should just be mocked so they don't intermittently fail.)
2016-06-24 18:28:32 -04:00
Dan Stillman
2c2a5a3787
Maybe fix zipDirectory() test failures on Travis
2016-06-24 16:50:08 -04:00
Dan Stillman
ec212119cc
More zipDirectory debugging
2016-06-24 16:36:20 -04:00
Dan Stillman
62de330bef
Make sure sync errors are logged
...
This might result in some double-logging, but that's better than no
logging.
2016-06-23 14:37:20 -04:00
Dan Stillman
df1c92b9a3
Fix "librariesToSync is undefined" when full-text syncing is disabled
2016-06-23 14:28:13 -04:00
Dan Stillman
6a523347b2
Cancel delayed quickCopy initialization when resetting DB during tests
...
And improve cancellation of scheduled feed checks
2016-06-23 05:38:15 -04:00
Dan Stillman
511222bcaf
Skip child items when generating export format for CSL JSON
...
itemToCSLJSON() doesn't seem to need child items, so when a Zotero.Item
is passed to it, don't bother loading child items when calling
itemToExportFormat() to convert the item into the necessary format.
2016-06-23 04:26:24 -04:00
Dan Stillman
0238a2c13c
Fix errors citing items in unloaded libraries
2016-06-23 04:17:33 -04:00
Dan Stillman
74fe2a2bdc
Pass empty array to sync/finish event if no synced libraries
2016-06-23 03:08:16 -04:00
Dan Stillman
3de40256bf
Restore drag-and-drop Quick Copy
2016-06-23 03:08:16 -04:00
Dan Stillman
8a0081c84e
Sort translators list in Quick Copy drop-down
2016-06-23 03:08:16 -04:00
Dan Stillman
d4532f0cdf
Merge pull request #1040 from rmzelle/inherit-class
...
Correctly inherit "class" from parent style
2016-06-23 03:05:49 -04:00
Philipp Zumstein
f6da7bb8d4
Change const to var in utilities
...
In order to make these mappings also available when the
script is used with `loadSubScript` from outside we
have to use `var` instead of `const`, `let`.
See https://github.com/aurimasv/z2csl/issues/6
2016-06-23 00:38:48 +02:00
Dan Stillman
4d516c68bf
More zipDirectory() test debugging
2016-06-22 06:52:41 -04:00
Dan Stillman
94e0e8b752
Debugging for zipDirectory() test failure on Travis
2016-06-22 06:42:30 -04:00
Dan Stillman
b5344119bb
Don't warn if a modified library property is accessed before save
...
getCellText() can be called between when a property (e.g., .name) is
changed and when ._changed is reset after the save, making this warning
unavoidable
2016-06-22 06:26:02 -04:00
Dan Stillman
48a072d254
Update library version after settings upload
2016-06-22 05:58:12 -04:00
Adomas Venčkauskas
834597c8bb
Fix test failures introduced after #1044
2016-06-22 05:47:24 -04:00
Adomas Ven
dd8fd2b1ac
Feed syncing ( #1044 )
...
Closes #1036
Also:
- Store sync info for feeds more compactly. Address #1037
2016-06-22 03:24:22 -04:00
Dan Stillman
451c12513e
Remove unused toResponseJSON() overrides for Collection/Search
2016-06-20 01:21:24 -05:00
Dan Stillman
8e0e69332e
Fix syncing of search conditions
2016-06-20 01:08:25 -05:00
rmzelle
e49c09f4a1
Correctly inherit "class" from parent style
2016-06-18 20:28:28 -04:00
Dan Stillman
2225f459b7
Fix breakage after certain Notifier events with My Publications selected
2016-06-14 15:24:47 -04:00
Dan Stillman
87abfdf64d
Merge pull request #1032 from adomasven/fix/feed-dates
...
Changes date parsing and handling for feeds. Closes #1024 , #1025
2016-06-14 13:38:38 -04:00
Adomas Venčkauskas
137290b97f
Changes date parsing and handling for feeds. Closes #1024 , #1025
2016-06-14 13:22:04 +03:00
Dan Stillman
099b45438d
Merge branch '4.0'
2016-06-13 23:02:22 -04:00
Dan Stillman
954677636e
Fix hang if another key is pressed after Enter in Quick Format dialog
2016-06-13 23:00:08 -04:00
Dan Stillman
c312576d02
Fix indicated return value in comment for itemToExportFormat()
2016-06-13 04:57:26 -04:00
Adomas Ven
f9449b1749
Fixes hidden columns showing on restart. Closes #1030 ( #1031 )
2016-06-13 04:56:39 -04:00
Philipp Zumstein
a200f6cfc5
Fix more for-each-in ( #1029 )
2016-06-12 01:23:45 -04:00
Dan Stillman
7dda5a2f69
Fix saving to collection from fallback search translators
...
Fixes #1028
2016-06-11 14:54:06 -04:00
Dan Stillman
0b75b75b96
When merging items, add master item to all collections
...
Also changes Zotero.Item.prototype.clone() to take an `options` object for its
second parameter instead of a boolean `skipTags`. The object includes
`skipTags` as well as a new `includeCollections` property to add the new item
to the same collections.
2016-06-10 23:26:32 -04:00
Dan Stillman
e66954a6f7
Correct comment for Zotero.Date.isoToDate()
...
isoToDate() does handle non-UTC time zones
2016-06-10 20:37:53 -04:00
Dan Stillman
3179a2f0e7
Fix various issues with note pane tags box
2016-06-10 20:35:14 -04:00
Dan Stillman
3de5ed1332
Don't show "false" for empty notes after restart
2016-06-10 19:44:33 -04:00
Dan Stillman
41fe8365a9
Fix #1027 , 5.0: Not possible anymore to add tags to notes
...
Still a little weirdness in the tags popup that I'll clean up, but it should
work now.
2016-06-10 19:21:54 -04:00
Dan Stillman
fdd90b04d3
Save to My Library via connector when read-only library is selected
...
(Or My Publications, which is editable but shouldn't allow direct saving)
Also switches to My Library
2016-06-09 02:47:29 -04:00
Dan Stillman
de19d2fee5
Update locales from Transifex
2016-06-09 02:43:37 -04:00
Dan Stillman
0cf102b0e6
Fix missing word in string
2016-06-07 12:36:27 -04:00
Dan Stillman
b59edceec2
Fix some title casing of UI labels
2016-06-06 21:30:32 -04:00
Dan Stillman
cf2a673e2b
Don't split out "Items First" in feed prefs
2016-06-06 17:58:51 -04:00
Dan Stillman
80f31abc30
Merge new English strings for 5.0
2016-06-06 16:43:02 -04:00
Dan Stillman
a343a7af6e
Merge branch '4.0'
2016-06-06 16:42:39 -04:00
Dan Stillman
0a0283483e
Update submodules
2016-06-06 16:14:21 -04:00
Dan Stillman
2928e1fda1
Update locales from Transifex
2016-06-06 16:10:30 -04:00
Dan Stillman
8be22b84d1
Merge pull request #1012 from adomasven/fix/hide-list-cols-for-feeds
...
Closes #1008 . Omit certain item list columns in feed views
2016-06-06 15:48:59 -04:00
Dan Stillman
a2fbf04682
Fix handling of unexpected status code for repository update request
2016-06-05 19:08:08 -04:00
Adomas Venčkauskas
60c4262d1e
Closes #1008 . Omit certain item list columns in feed views
2016-06-03 15:48:46 +01:00
Dan Stillman
19714d5b9b
Avoid logged error after server_connector saveSnapshot tests
...
Indexing currently happens a second after the 201 is returned to the
connector, so we have to wait for that before continuing tests, or else
a DB clear in a later test (e.g., storageLocal) will cause an error to
be logged when the indexing kicks off.
2016-06-02 16:47:27 -04:00
Dan Stillman
7f339af104
Remove debug output during file sync
2016-06-02 16:14:30 -04:00
Dan Stillman
b0b9e84650
Clarify debug output for Zotero.DataObjects.prototype._loadDataTypeInLibrary()
2016-06-02 16:14:30 -04:00