zotero/translators — pull request #431 by aurimasv (2012-07-17 10:35:29+00:00)
Title: [DO NOT MERGE] [RIS] Rewritten to improve export/import and handling for ProCite RIS files

This is not yet done. I still have to work on the import (currently completely broken). But I did want to put this out there to get some comments on the whole structure of the translator.

The export is done and working. Essentially everything about the export structure is defined in the fieldMap and exportOrder objects. I wrote it in a way that makes it fairly easy to tweak various fields for specific items.

The best part of this, IMO, is that the export and import will work off of the same fieldMap object. This means that exports will be (mostly) guaranteed to import and only one piece of code needs to be changed to modify both import and export.

The RIS export should very significantly improved, though it probably needs a good amount of testing, since I may have introduced some typos that will never throw errors. :-(

Also, please ignore the additional commits. I thought I started this branch from scratch. When it's time to merge, I will squash all irrelevant commits into one.

Interested to hear your thoughts on this.

TODO: rewrite doImport to use the fieldMap. Add handling for ProCite RIS