Revision 720:5eb7efd59ed7 vendor/plugins/redmine_bibliography/app/models

View differences:

vendor/plugins/redmine_bibliography/app/models/bibtex_entry_type.rb
1 1
class BibtexEntryType < ActiveRecord::Base
2 2

  
3
  @@all_fields = [ "editor", "publisher", "chapter", "pages", "volume", "series", "address", "edition", "month", "year", "type", "note", "number", "journal", "howpublished", "key", "school" ]
4

  
5 3
  @@fields = Hash['article', ['journal', 'year', 'volume', 'number', 'pages', 'month', 'note' ], 
6 4
                  'book' , [ 'editor', 'publisher', 'volume', 'series', 'address', 'edition', 'month', 'year', 'note' ],
7 5
                  'booklet' , [ 'howpublished', 'address', 'year', 'month', 'note', 'key' ],
......
28 26
  def self.fields (type)
29 27
    @@fields[ self.find(type).name ]    
30 28
  end
31

  
32
  def self.all_fields
33
    @@all_fields
34
  end
35 29
end

Also available in: Unified diff