I am building a list of bibliography records by means of template variables, templates and so on.
Those bib. records will be rendered in several ways using Ditto. That’s ok.
It would be nice if the user could have an option similar to "Export as a bibTex file", which is a specific text-like format for bib. records.
It could be not very difficult to build a kind of function in Javascript (or whatever) in order to "translate" records in a MODx table to bibTeX entries.
But, first of all, I want to be sure it is not already done.
So, does any of you know any kind of piece of code (easy to put into MODx) that makes it possible to "translate" bibliography information into bibTeX??
I’ve only found a Javascript project (
http://sourceforge.net/projects/jsbibtex/), and also I know a similar "function" or module or whatever exists in Joomla! CMS.
I think it is not just about building a "simple" Ditto template chunk, because, for example, in order to translate the field "authors" into a valid "authors" field in BibTeX format, it could be necessary some "if" clauses. I do know conditional clauses are possible within Ditto (aren’t they?), but I think the overall process of "translating" or "exporting" into BibTeX format could be a little bit confusing to "program" and to maintain with Ditto syntax.
What do you think about?