converting bilbiographic metadata with ruby