0
Beantwoord

Filtering Zotero group library by author (and other options)

Keith Larson 7 jaar geleden bijgewerkt 7 jaar geleden 3

I have a Zotero group for my research centre. I would like to subset the output from BibBase by researcher on their homepages.


Here is my BibBase URL:


http://bibbase.org/show?bib=https://api.zotero.org/groups/986230/items?key=toLYm4ZmsffGetBPhyaSe8eU%26format=bibtex%26limit=100%26filter%3Dauthor%3AKarlsson


I have tried adding &filter=author:Karlsson


The result is no filter at all. I have also tried filter=year:2017, again with no luck!


What am I doing wrong?

PS: I just discovered BibBase and I am very thankful for your excellent effort!

Antwoord

Antwoord
Beantwoord

There were two problem: the field name to filter authors on is `authors` (not author), but also, it can be very tricky to use the right syntax when using zotero, because some of the arguments need to be encoded, so that BibBase doesn't interpreted them but passes them on to Zotero (e.g., format). But others, the ones for BibBase, must not be. In your case you were using an encoded representation of the ampersand, which meant it was forwarded to Zotero, but it needs to be interpreted by BibBase.


This link works:

http://bibbase.org/show?bib=https://api.zotero.org/groups/986230/items?key=toLYm4ZmsffGetBPhyaSe8eU%26format=bibtex%26limit=100&filter=authors:Karlsson

Similarly, to filter by year you would use, e.g.:

http://bibbase.org/show?bib=https://api.zotero.org/groups/986230/items?key=toLYm4ZmsffGetBPhyaSe8eU%26format=bibtex%26limit=100&filter=year:2007



Antwoord
Beantwoord

There were two problem: the field name to filter authors on is `authors` (not author), but also, it can be very tricky to use the right syntax when using zotero, because some of the arguments need to be encoded, so that BibBase doesn't interpreted them but passes them on to Zotero (e.g., format). But others, the ones for BibBase, must not be. In your case you were using an encoded representation of the ampersand, which meant it was forwarded to Zotero, but it needs to be interpreted by BibBase.


This link works:

http://bibbase.org/show?bib=https://api.zotero.org/groups/986230/items?key=toLYm4ZmsffGetBPhyaSe8eU%26format=bibtex%26limit=100&filter=authors:Karlsson

Similarly, to filter by year you would use, e.g.:

http://bibbase.org/show?bib=https://api.zotero.org/groups/986230/items?key=toLYm4ZmsffGetBPhyaSe8eU%26format=bibtex%26limit=100&filter=year:2007



You are right this is tricky! I thought I had the field name correct by inspecting the bibtex list of field names.