Re: missing items in feed from api (bug?)

47 views
Skip to first unread message

Aurimas Vinckevicius

unread,
May 3, 2013, 7:17:10 AM5/3/13
to zoter...@googlegroups.com
API documentation says
“bib”, valid only for item requests, will return a formatted bibliography as XHTML. “bib” mode is currently limited to a maximum of 150 items.

but maybe Dan (accidentally?) cut the limit to 50?

format=keys returns all 64 items. Similarly, format=atom&limit=99 returns 64 items. Unfortunately, limit is not a valid argument for format=bib, but it does look like it's implicitly set to 50 instead of 150.

Aurimas

On Fri, May 3, 2013 at 5:42 AM, Kevin Gillan <kevg...@gmail.com> wrote:
Hi all

Not sure if this is a bug or me being silly. I'm currently using the following feed:

(Embedded in http://www.kevingillan.info/sms-book-list.php to advertise books available for review in a journal)

But, the feed doesn't include all the items in the collection. 63 in the collection (here: https://www.zotero.org/groups/sms-reviewers/items), but only about 50 showing in the feed. I can't find anything that missing items have in common. They're all books with all the basic bibliographic data. 

Any thoughts on whether I'm doing something wrong?

Many thanks,
Kevin 

--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To post to this group, send email to zoter...@googlegroups.com.
Visit this group at http://groups.google.com/group/zotero-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dan Stillman

unread,
May 3, 2013, 5:24:47 PM5/3/13
to zoter...@googlegroups.com
On 5/3/13 7:17 AM, Aurimas Vinckevicius wrote:
API documentation says
“bib”, valid only for item requests, will return a formatted bibliography as XHTML. “bib” mode is currently limited to a maximum of 150 items.

but maybe Dan (accidentally?) cut the limit to 50?

format=keys returns all 64 items. Similarly, format=atom&limit=99 returns 64 items. Unfortunately, limit is not a valid argument for format=bib, but it does look like it's implicitly set to 50 instead of 150.

Fixed, thanks. It was enforcing 150 for the maximum number of items it would allow the request for but not actually using that as the implicit limit. (We're still hoping to raise that maximum eventually.)

The reason we don't allow 'limit' for format=bib is that format=bib is sorted by the citation processor, and just getting the last x items (or some other sorted subset) and then sorting them by the style doesn't make a lot of sense. If you want a limited number of bibliography results sorted by something (e.g., dateAdded/dateModified descending), you can use content=bib.

Kevin Gillan

unread,
May 10, 2013, 7:20:30 AM5/10/13
to zoter...@googlegroups.com
Many thanks for the quick responses and the very quick fix! Now works exactly as I'd hoped so I can embed a nicely formatted list with just two lines of code. 
Reply all
Reply to author
Forward
0 new messages