Weitere Korrekturen am CSV-Importer

git-svn-id: https://svn.libreccm.org/ccm/trunk@1937 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-11-15 21:18:32 +00:00
parent 15c6fb0328
commit 53e796b724
3 changed files with 16 additions and 11 deletions

View File

@ -102,7 +102,9 @@ public class ProceedingsImportReport {
writer.printf("%s\n", author.toString()); writer.printf("%s\n", author.toString());
} }
if (publisher != null) {
writer.append(publisher.toString()); writer.append(publisher.toString());
}
writer.append('\n'); writer.append('\n');
for (int i = 0; i < 40; i++) { for (int i = 0; i < 40; i++) {
@ -116,5 +118,4 @@ public class ProceedingsImportReport {
proceedingsTitle); proceedingsTitle);
} }
} }
} }

View File

@ -242,8 +242,10 @@ public class ImporterUtil {
collectedVolume.setYearOfPublication(yearOfPub); collectedVolume.setYearOfPublication(yearOfPub);
for (AuthorData author : authors) { for (AuthorData author : authors) {
if ((author.getSurname() != null) && !author.getSurname().isEmpty()) {
report.addAuthor(processAuthor(collectedVolume, author, pretend)); report.addAuthor(processAuthor(collectedVolume, author, pretend));
} }
}
if ((publisherName != null) && !publisherName.isEmpty()) { if ((publisherName != null) && !publisherName.isEmpty()) {
report.setPublisher(processPublisher(collectedVolume, place, publisherName, pretend)); report.setPublisher(processPublisher(collectedVolume, place, publisherName, pretend));
@ -329,8 +331,10 @@ public class ImporterUtil {
} }
proceedings.setYearOfPublication(yearOfPub); proceedings.setYearOfPublication(yearOfPub);
for (AuthorData author : authors) { for (AuthorData author : authors) {
if ((author.getSurname() != null) && !author.getSurname().isEmpty()) {
report.addAuthor(processAuthor(proceedings, author, pretend)); report.addAuthor(processAuthor(proceedings, author, pretend));
} }
}
if ((publisherName != null) && !publisherName.isEmpty()) { if ((publisherName != null) && !publisherName.isEmpty()) {
report.setPublisher(processPublisher(proceedings, place, publisherName, pretend)); report.setPublisher(processPublisher(proceedings, place, publisherName, pretend));