Skip to content

Commit

Permalink
Add institution
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier committed Jan 19, 2014
1 parent d61cb9e commit 60cd6bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/bibtex/entry/rdf_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ def editor
end
end

def institution
return unless bibtex.field?(:institution)
remove_from_fallback(:institution)

org = agent(bibtex[:institution]) { create_agent(bibtex[:institution].to_s, :Organization) }

graph << [entry, RDF::DC.contributor, org]
end

def isbn
return unless bibtex.field?(:isbn)
remove_from_fallback(:isbn)
Expand Down

0 comments on commit 60cd6bf

Please sign in to comment.