inukshuk / jekyll-scholar

jekyll extensions for the blogging scholar
MIT License
1.13k stars 101 forks source link

Query by decade. #278

Closed HaoZeke closed 5 years ago

HaoZeke commented 5 years ago

First off, great plugin! I have noticed that I am not able to use multiple filters on the same key in my query. Specifically, I have been trying variations on the following:

{% assign dec1 = 2019 %}
{% assign dec2 = 2009 %}
{% bibliography --query @inproceedings[year<={{ dec1 }} && year>{{dec2}}] %}

However, this does not seem to be supported at the moment. Is there any work-flow to allow me to get a query containing the publications of multiple years?

inukshuk commented 5 years ago

It's too distant for to remember if there was a specific reason for this, but it seems like only <= and >= are valid query operators. Your query should work if you use year >= {{dec2}} and set dec2 to 2010.

HaoZeke commented 5 years ago

Actually it's not just the operators, I can't seem to chain queries with && on the same key.

Eg. year && author work together but not year and year.

inukshuk commented 5 years ago

I don't think so? This example works.

HaoZeke commented 5 years ago

Oh, thanks. I probably missed something.