Ville Karavirta

July 1, 2010

New Publication List with bib-publication-list

I finally got tired of updating my old HTML publication list by hand. I wanted something that would be automatically generated from my BibTeX file, without me having to remember to run any scripts or copy files. So, I wrote bib-publication-list. With it, I can just include the BibTeX into my HTML page and tell the script to turn it into a sortable and searchable table. Besides loading the required JavaScript files, all that is needed is to add a table where the data should be added and include the BibTeX:

@article{Karavirta:JVLCTaxonomy,
    title = {A comprehensive taxonomy of algorithm animation languages},
    journal = {Journal of Visual Languages \& Computing},
    volume = {20},
    number = {1},
    pages = {1--22},
    year = {2010},
    issn = {1045-926X},
    doi = {DOI: 10.1016/j.jvlc.2009.09.001},
    author = {Ville Karavirta and Ari Korhonen and Lauri Malmi and Thomas Naps}
}

Alternatively, the bibtex can be loaded from a file. I prefer including it in the HTML, though. This way, browsers without JavaScript enabled get at least to see the bibtex instead of a blank page.

Finally, the bib-publication-list needs to know the input data element and the output table. So, one line of JavaScript:

bibtexify("#bibtex", "pubTable");

The result looks like the figure below (or my new publication list).

Publication list created by bib-publication-list

The source code for the library is available on GitHub. The code uses some great libraries: jQuery, DataTables, Protovis, and JavaScript BibTeX Parser.

Let me know what you think. Especially comment if you have problems with it, I haven’t tested it on all browsers (yet).