# HG changeset patch # User luisf # Date 1311948841 -3600 # Node ID 85dd79181088c4ce6712277fb90060fc227b40d8 # Parent 23a9272bf7666435d90de204f3a2736ebbbb95b5 Continuing development of Feature #237–corrected seeding of database. diff -r 23a9272bf766 -r 85dd79181088 vendor/plugins/redmine_bibliography/db/seed_data/bibtex_entry_types_list.txt --- a/vendor/plugins/redmine_bibliography/db/seed_data/bibtex_entry_types_list.txt Thu Jul 28 19:21:57 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/db/seed_data/bibtex_entry_types_list.txt Fri Jul 29 15:14:01 2011 +0100 @@ -1,14 +1,14 @@ -article|1 -book|2 -booklet|3 -inbook|4 -incollection|5 -conference|6 -inproceedings|7 -manual|8 -masterthesis|9 -misc|10 -phdthesis|11 -proceedings|12 -techreport|13 -unpublished|14 +article +book +booklet +conference +inbook +incollection +inproceedings +manual +masterthesis +misc +phdthesis +proceedings +techreport +unpublished diff -r 23a9272bf766 -r 85dd79181088 vendor/plugins/redmine_bibliography/lib/tasks/seed_bibtex_entry_types.rake --- a/vendor/plugins/redmine_bibliography/lib/tasks/seed_bibtex_entry_types.rake Thu Jul 28 19:21:57 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/lib/tasks/seed_bibtex_entry_types.rake Fri Jul 29 15:14:01 2011 +0100 @@ -10,8 +10,7 @@ open(File.dirname(__FILE__) + "/../../db/seed_data/bibtex_entry_types_list.txt") do |bibtex_entry_types| bibtex_entry_types.read.each_line do |bibtex_entry_type| - bibtype=bibtex_entry_type.split('|') - BibtexEntryType.create(:name => bibtype[0].chomp, :id => bibtype[1].chomp) + BibtexEntryType.create(:name => bibtex_entry_type.chomp) end end end