Mercurial > hg > soundsoftware-site
annotate vendor/plugins/redmine_bibliography/app/models/bibtex_entry.rb @ 779:06a9d1cf5e15 feature_14
Addresses Bug #331 - using a remote form to submit the "filters".
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 23:34:18 +0000 |
parents | 4481db876cdb |
children | 70849df4eae1 |
rev | line source |
---|---|
luis@393 | 1 class BibtexEntry < ActiveRecord::Base |
luis@544 | 2 unloadable |
luis@544 | 3 |
luis@393 | 4 belongs_to :publication |
luis@544 | 5 validates_presence_of :entry_type |
luis@544 | 6 |
luis@544 | 7 def entry_type_name |
luis@544 | 8 entry_type = self.entry_type |
luis@544 | 9 BibtexEntryType.find(entry_type).name |
luis@544 | 10 end |
luis@544 | 11 |
chris@586 | 12 def entry_type_label |
chris@586 | 13 entry_type = self.entry_type |
chris@586 | 14 BibtexEntryType.find(entry_type).label |
luis@685 | 15 end |
luis@393 | 16 end |