Korrektur am ImportUtil

git-svn-id: https://svn.libreccm.org/ccm/trunk@1912 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-11-07 11:18:55 +00:00
parent 1c151d775c
commit 2372b3b309
1 changed files with 9 additions and 8 deletions

View File

@ -294,7 +294,7 @@ public class ImporterUtil {
report.addAuthor(processAuthor(proceedings, author, pretend));
}
report.setPublisher(processPublisher(proceedings, publisherName, place, pretend));
report.setPublisher(processPublisher(proceedings, place, publisherName, pretend));
proceedings.save();
inProceedings.setProceedings(proceedings);
@ -347,18 +347,19 @@ public class ImporterUtil {
throw new IllegalArgumentException("Error getting folder for journals");
}
final Journal newJournal = new Journal();
newJournal.setTitle(title);
newJournal.setLanguage(Kernel.getConfig().getLanguagesIndependentCode());
newJournal.setContentSection(folder.getContentSection());
newJournal.save();
final Journal journal = new Journal();
journal.setName(normalizeString(title));
journal.setTitle(title);
journal.setLanguage(Kernel.getConfig().getLanguagesIndependentCode());
journal.setContentSection(folder.getContentSection());
journal.save();
final JournalBundle bundle = new JournalBundle(newJournal);
final JournalBundle bundle = new JournalBundle(journal);
bundle.setParent(folder);
bundle.setContentSection(folder.getContentSection());
bundle.save();
article.setJournal(newJournal);
article.setJournal(journal);
}
report.setCreated(true);