Closed opoudjis closed 6 years ago
@opoudjis could we close this issue?
No, because I want to check what you've done against what filtering I already have in place. I'll be doing that next week.
@opoudjis I don't understand what I should do with this issue. But want to mention that hit.hit["year"]
isn't the year of publishing. The hit
hash is returned by Algoliasearch service. I don't know what is hit.hit["year"]
. Suppose we can extract publishing year from hit.hit["title"]
.
It's a request to refactor isobib to do filtering by year; but there's nothing to be done until I have filtering code in place in asciidoctor-iso that works.
Obsoleted by code included in #24
Isobib returns a big list of entries; the first entry found is not necessarily the right entry to return, and both @andrew2net and I have several routines in asciidoctor-iso that sort through the returned isobib entries, (a) confirming that the right document code has been returned; (b) trying to match on year; (c) ignoring matches with no titles (e.g. https://www.iso.org/standard/15905.html).
This code should move into isobib, it shouldn't be the client's job to sift through all match hits on the ISO website. I'll move the code into isobib once it's stabilised in asciidoctor-iso, I'm still working on it.
FYI, this is the code so far: