A project to aggregate preprint archives of published articles.
See http://catalysis-preprint-archive.github.io/.
The cappa command will generate the html pages.
./cappa index
./cappa html
As each of these are done, add them as a single commit to the git repo.
Add all the recipes for repos currently at http://catalysis-preprint-archive.github.io to the recipes folder
The bibtex entries should be there. We need to add the repo links.
Add this html to the end (inside the </body> tag) of the templates.
doi = '10.1063/1.1737365'
html = ("<object height=\"50\" data=\"http://api.elsevier.com/content/abstract/citation-count?doi="
+ doi
+ "&httpAccept=image/jpeg&apiKey=5cd06d8a7df3de986bf3d0cd9971a47c\"></object>")
print(html)
Related articles
doi = '10.1063/1.1737365'
url = ("http://ws.isiknowledge.com/cps/openurl/service?url_ver=Z39.88-2004&rft_id=info%3Adoi%2F"
+ doi
+ "&svc_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Asch_svc&svc.related=yes")
print("<a href=\"" + url + "\">related</a>")
Citing articles
doi = '10.1063/1.1737365'
url = ("http://ws.isiknowledge.com/cps/openurl/service?url_ver=Z39.88-2004&rft_id=info%3Adoi%2F"
+ doi
+ "&svc_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Asch_svc&svc.citing=yes")
print("<a href=\"" + url + "\">citing</a>")
Maybe pybtex https://pypi.python.org/pypi/pybtex could help with this.
This might be the “recipe” link, but right now that link points to something that is not in the html folder, so the link will break when it is published. I would move this link to a “bibtex” link below the bibtex entry.
It might be easiest to copy the recipes to html/recipes and link to it in the html folder.
Please enable JavaScript to view the comments powered by Disqus.The file will be named html/cappa.bib and contain all the recipes.
Something like http://tablesorter.com/docs/
For now this won’t be too powerful since it can sort on key, repo, and eventually citation.
It would be great to show page views. I guess this is a javascript bit from Google Analytics. It could be useful to have this in the table in index.html so we could sort preprints so see the ones most viewed. https://developers.google.com/analytics/devguides/collection/analyticsjs/pages
I am not sure if we can get a sortable citation count in the table. The Scopus citation badge is an image that is dynamically updated, but not a number that is sortable. Still, we should put this badge, and a small altmetric badge in the index.html table.
Ideally it would only contain updates. It should be called html/rss.xml
See http://lkiesow.github.io/python-feedgen/, it looks like it might do the job. There are others too (http://flask.pocoo.org/snippets/10/, https://www.shiftedup.com/2014/11/30/rfeed-an-extensible-rss-20-generator-written-in-python).
Model it after http://catalysis-preprint-archive.github.io/updates.rss
Eventually I want to make this an installable package so other people could make a preprint archive. This will need a configuration file for:
- A Scopus API key for citation badges
- A Disqus setup for comments
- A google search bar
- Google analytics
- Paths to html/recipes
- Publishing details, e.g. GitHUB repo