DaBInImporter

git-svn-id: https://svn.libreccm.org/ccm/trunk@789 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-03-17 07:50:30 +00:00
parent ee70d0bd4f
commit 3a667d8341
2 changed files with 7 additions and 1 deletions

View File

@ -2830,6 +2830,7 @@ public class DaBInImporter extends Program {
myPublication.save(); myPublication.save();
System.out.println("OK"); System.out.println("OK");
i++;
} }
if (publicationDe == null) { if (publicationDe == null) {
@ -3197,6 +3198,11 @@ public class DaBInImporter extends Program {
return; return;
} }
if (publisherData.getName().length() == 0) {
System.out.println("Publisher has no name skiping.");
return;
}
if (publisherData.getName().length() < 3) { if (publisherData.getName().length() < 3) {
System.out.printf( System.out.printf(
"WARNING: The name of the publisher '%s' is very short.", "WARNING: The name of the publisher '%s' is very short.",

View File

@ -90,7 +90,7 @@ public class PublicationData {
System.out.println( System.out.println(
"\t***WARNING: Title of publication is too long for URL. Triming to title to a length of 200 characters for URL."); "\t***WARNING: Title of publication is too long for URL. Triming to title to a length of 200 characters for URL.");
return DaBInImporter.normalizeString(name.substring( return DaBInImporter.normalizeString(name.substring(
0, 200)); 0, 175));
} }
/* if (name.length() < 200) { /* if (name.length() < 200) {