Zotero API and JQuery creators.creatorType
Hi!
I am trying to use the Zotero API to print some citations in my app but I have found a strange behaviour which I am not able to track down.
If I call from my group library this tagged entry like this
https://api.zotero.org/groups/358366/items?&tag=bm:testNewBiblioMarrassini
I get the JSON with the correct information.
"creators": [
{
"creatorType": "editor",
"firstName": "Paolo",
"lastName": "Marrassini"
},
{
"creatorType": "translator",
"firstName": "Paolo",
"lastName": "Marrassini"
}
],
If I run that from a script with $.getJSON() instead, I get a response, but it looks like this
"creators": [
{
"creatorType": "author",
"firstName": "Paolo",
"lastName": "Marrassini"
},
{
"creatorType": "author",
"firstName": "Paolo",
"lastName": "Marrassini"
}
],
There is no other difference as far as I can see and data.dateModified is correct in both.
can any one help me to find out what the problem is? Thanks a lot!
I am trying to use the Zotero API to print some citations in my app but I have found a strange behaviour which I am not able to track down.
If I call from my group library this tagged entry like this
https://api.zotero.org/groups/358366/items?&tag=bm:testNewBiblioMarrassini
I get the JSON with the correct information.
"creators": [
{
"creatorType": "editor",
"firstName": "Paolo",
"lastName": "Marrassini"
},
{
"creatorType": "translator",
"firstName": "Paolo",
"lastName": "Marrassini"
}
],
If I run that from a script with $.getJSON() instead, I get a response, but it looks like this
"creators": [
{
"creatorType": "author",
"firstName": "Paolo",
"lastName": "Marrassini"
},
{
"creatorType": "author",
"firstName": "Paolo",
"lastName": "Marrassini"
}
],
There is no other difference as far as I can see and data.dateModified is correct in both.
can any one help me to find out what the problem is? Thanks a lot!
-
adamsmithGenerally better to ask API/coding questions on https://groups.google.com/forum/#!topic/zotero-dev/ -- people would probably want to see the entire script, too.