Revision 1023:3d924264419a vendor/plugins/redmine_bibliography/app

View differences:

vendor/plugins/redmine_bibliography/app/models/publication.rb
82 82
    end
83 83
    
84 84
    if style == :ieee
85
      CiteProc.process bib.to_citeproc, :style => :ieee, :format => :html
86
    else
87
      bib.to_s :include => :meta_content
85
      CiteProc.process bib.to_citeproc, :style => :ieee, :format => :html      
86
    else 
87
      bibtex = bib.to_s :include => :meta_content
88
      bibtex.strip!
89
      logger.error { bibtex }
88 90
    end  
89 91
  end
90 92
end
vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb
20 20
         <%= link_to_function "[Bibtex]", onclick="toggleBibtex(this)" -%> 
21 21
       </dd>
22 22
       <dd class="bibtex-textarea collapsed" style="display: none;">
23
         <textarea> 
24
           <%= publication.print_entry(:bibtex) -%>         
25
         </textarea>         
23
         <textarea readonly><%= publication.print_entry(:bibtex) -%></textarea>         
26 24
       </dd>
27 25
   <% end -%>
28 26
     </dl>

Also available in: Unified diff