NYULibraries/citation — pull request #5 by hab278 (2012-09-24 20:28:22+00:00)
Title: Development

Citation Tool Passes Tests and Is Documented, Comes with new Builder form
=============

The tests check to see if the formatting matches that of output format, so all of Citation's outputs are properly formatted.

The mappings were taken directly from Zotero, so they should also match up. The code has been thoroughly cleaned and aptly documented. It now uses [PropertiesConfiguration](http://commons.apache.org/configuration/howto_properties.html) instead of YAML files and thus is much easier to read and write in CSF.

Zotero translators:
- [PNX](https://github.com/zotero/translators/blob/master/Primo.js)
- [BibTeX](https://github.com/zotero/translators/blob/master/BibTeX.js)
- [OpenURL](https://github.com/zotero/zotero/blob/master/chrome/content/zotero/xpcom/openurl.js)
- [RIS](https://github.com/zotero/translators/blob/master/RIS.js) *Recently updated, Citation may need to update as well*

Next steps include:
- Auto detect the format.
- Provide a Utility class to handle often used methods for translators ( removing diacritics, formatting first and last names).
- Benchmarking (time and space)

Looking at the code will be much easier now, as well as using it.

The Citation tool now uses the Builder pattern, and you can simply convert from one format to another by calling Citation.map("data to map").from(Formats.fromFormat).to(Formats.toFormat).