changeset 1028:b8ae7b3af25a bibplugin_bibtex_display

Fixed wrong bibtex entries type when converting to bibtex format.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 13 Nov 2012 13:33:15 +0000
parents b0e0ffb43fa1
children beea10a56132 72294a3b0647 6a48306d5df8 5afaa9c17891
files vendor/plugins/redmine_bibliography/app/models/publication.rb
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/models/publication.rb	Tue Nov 13 13:25:11 2012 +0000
+++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb	Tue Nov 13 13:33:15 2012 +0000
@@ -69,13 +69,12 @@
     bib.author = self.print_bibtex_author_names
     bib.title = self.title
 
-
     self.bibtex_entry.attributes.keys.sort.each do |key|      
       value = self.bibtex_entry.attributes[key].to_s
       next if key == 'id' or key == 'publication_id' or value == ""
 
-      if key == "entry_type"
-        bib.type = self.bibtex_entry.entry_type_label
+      if key == "entry_type"        
+        bib.type = BibtexEntryType.find(self.bibtex_entry.entry_type).name
       else
         bib[key.to_sym] = value
       end