Commit 3aa4330b authored by rmrf's avatar rmrf

Updated query syntax for bibtex-ruby.

There seems to be a change in bibtex-ruby where bibtex-defined fields
such as public that I had are no longer easily indexable from the result
of the queries.  Instead, it has to be explicitly added in the query.

For example,

    ```bib.query('@*') { |b| (bib.public == 'yes') }``` no longer works.

It needs to be replaced with:

```bib.query('@*[public=yes]')```
parent 1e8100cc
Pipeline #35323 failed with stages
......@@ -28,8 +28,9 @@ module Jekyll
}]
@type_counts.keys.each { |t|
bib = bibliography.query('@*') { |b|
(b.public == 'yes' && b.type == t)
bib = bibliography.query('@*[public=yes]') { |b|
#(b.public == 'yes' &&
(b.type == t)
}
@type_counts[t] = bib.size
}
......@@ -58,8 +59,8 @@ module Jekyll
def entries_year(year)
b = bibliography.query('@*') {
|a| (a.year == year && a.public == 'yes')
b = bibliography.query('@*[public=yes]') {
|a| (a.year == year)# && a.public? == 'yes')
}
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment