scientific papers
Hi,
I started to add some scientific journals. For now, i just added it as a science
theme.
Perhaps it needs a real fork, because it does not fit perfectly with standard newspapers; i don't always have a summary, but I always have an ID (DOI, PMID, arxivID...). Moreover, I have less details in the date field (day is optional and I cannot get any hours/minutes fields).
Repository has been forked and then, i added a new branch: https://framagit.org/remyd1/meta-press-ext/tree/scipress
I tried to add 5 journals (in fact, it is only 4 journals + a search engine dedicated to science (pubmed)).
3/5 seems to work fine. For the two others, it is still quite difficult. I think some results on those journals are built dynamically with ajax requests. Maybe that could explain some issues...
It would be great to get some help on those two journals or a better way to debug it. I tried to add some console.{log,debug}
in the main js script but that did not help much. Maybe some comments would be helpful in this script. For instance, adding the possibility to parse all return values, site by site.
Another question: if the number of results == 0 (although it is not), will it try to fetch results ?
Anyway, I am also wondering why are you not using some basic javascript libraries to parse easily the DOM (eg: jquery). Is it for a minimal size and/or speed loading purpose ?
Another problem I see, and maybe that deserves a new issue, is that if the DOM is changing on the websites, the plugin does not work anymore.
Best regards, Rémy.