Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add authority bibtex variants
see #8
  • Loading branch information
inukshuk committed Jul 10, 2014
1 parent 57b3603 commit dbf1999
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/anystyle/parser/parser.rb
Expand Up @@ -262,6 +262,14 @@ def format_bibtex(labels)
hash[:address] = hash.delete :location if hash.key?(:location)
hash[:urldate] = hash.delete :accessed if hash.key?(:accessed)

if hash.key?(:authority)
if [:techreport,:thesis].include?(hash[:type])
hash[:institution] = hash.delete :authority
else
hash[:organization] = hash.delete :authority
end
end

b << BibTeX::Entry.new(hash)
end
b
Expand Down

0 comments on commit dbf1999

Please sign in to comment.