On 7/22/16 1:28 PM, Anda Zhou wrote:
> I am using Zotero 4.0
>
> I am getting error logs to the console. I'm able to add items and set
> fields and such just fine. Everything else on the xpcom works, just
> this collection issue. When I try addToCollection, I get an
> "addToCollection" is not defined error. When I tried
> collection.addItem I managed to freeze the library panel in that it
> would remain collapsed I wouldn't be able to view child collections.
"addToCollection" exists in 5.0, not 4.0. If you're looking for example
code for 4.0, you'd want to look at the 4.0 branch.
For the collection.addItem() issue I'd need to see the exact code you're
using, including the item creation.