A couple of days ago I started an experiment to use a Wiki system to organize my research project about building a pattern language. For this purpose its essential to cite other peoples work as its common in scientific articles. In other contexts like writing with Latex or managing papers with Mendeley the BibTex data format showed up as very useful to manage and reuse a whole lot of citations. The question was how to include a BibTex citation manager into a Wiki sytsem?
These desirable feature has been missing in popular Wiki systems like MediaWiki or TKWiki. In case of MediaWiki there were two promising extensions. The first is called Bibtex but lacks on efficient citation management across several pages. The second is called Biblio which provides an excellent citation manager including support for for ISBN and other medical document indexes. But unfortunately Biblio has no built in BibTex support.
The solution on how to combine the extensions Biblio and Bibtex needs four steps:
- Download Biblio Extension from their homepage and install it as it is mentioned there.
- Search for function “function render_biblio(” and paste a new variable:
$bibtexx = new BibTex();
- Open the file Biblio.php in the Extension directory. Search for the string “$text = $this->get($ref, ‘text’);” and insert the following code behind it:
if(strcmp(substr($text, 0, 10), '< ;bibtex') == 0){ $bibtexx->BibTex($text); $text = $bibtexx->html(); }
- Now you can render bibtex entries like:
#localref local reference #[[Literature]] #somebook @book{Alexander1979, Author = {Christopher Alexander}, Publisher = {Oxford University Press}, Title = {The Timeless Way of Building}, Year = {1979}} #someusualbook MySelf. "Me Myself and I". Self. #x ...
Especially if you store all BibTex entries in one single Wiki page (e.g. [[Literature]]) it gives you the advantage of synchronizing your local BibTex database with the entries inside the Wiki.
You’re welcome!
The solution above suits my needs and should be easy to add to the new release anyway.
–nise
Interesting enhancement. I’m fixing Biblio because of an unrelated problem and hope to release a new revision over the next month. I’d be glad to incorporate your mods into the extension. Get in touch with me and let’s see if we can add it to the release.
Thanks.
Bill