Back-ported TEI export to FromThePage in Rails 2