To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_bibliography / app / models / bibtex_entry.rb @ 1026:b42553f6df71
History | View | Annotate | Download (335 Bytes)
| 1 |
class BibtexEntry < ActiveRecord::Base |
|---|---|
| 2 |
unloadable |
| 3 |
|
| 4 |
belongs_to :publication
|
| 5 |
validates_presence_of :entry_type
|
| 6 |
|
| 7 |
def entry_type_name |
| 8 |
entry_type = self.entry_type
|
| 9 |
BibtexEntryType.find(entry_type).name
|
| 10 |
end
|
| 11 |
|
| 12 |
def entry_type_label |
| 13 |
entry_type = self.entry_type
|
| 14 |
BibtexEntryType.find(entry_type).label
|
| 15 |
end
|
| 16 |
end
|