Mercurial > hg > soundsoftware-site
changeset 543:85dd79181088 feature_36
Continuing development of Feature #237–corrected seeding of database.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 29 Jul 2011 15:14:01 +0100 |
parents | 23a9272bf766 |
children | f05f3a9ef569 |
files | vendor/plugins/redmine_bibliography/db/seed_data/bibtex_entry_types_list.txt vendor/plugins/redmine_bibliography/lib/tasks/seed_bibtex_entry_types.rake |
diffstat | 2 files changed, 15 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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