DaBIn-Importer
git-svn-id: https://svn.libreccm.org/ccm/trunk@788 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
41bd8e8983
commit
ee70d0bd4f
|
|
@ -2240,8 +2240,14 @@ public class DaBInImporter extends Program {
|
|||
&& (projectData.getNameEn().length() > 0)) {
|
||||
projectEn = new SciProject();
|
||||
projectEn.setTitle(projectData.getNameEn());
|
||||
String projectName = DaBInImporter.normalizeString(projectData.
|
||||
String projectName;
|
||||
if (projectData.getNameDe() == null) {
|
||||
projectName = DaBInImporter.normalizeString(projectData.
|
||||
getNameEn());
|
||||
} else {
|
||||
projectName = DaBInImporter.normalizeString(projectData.
|
||||
getNameDe());
|
||||
}
|
||||
if (projectName.length() > 200) {
|
||||
projectName = projectName.substring(0, 200);
|
||||
}
|
||||
|
|
@ -3646,6 +3652,9 @@ public class DaBInImporter extends Program {
|
|||
}
|
||||
|
||||
public static String normalizeString(final String str) {
|
||||
if (str == null) {
|
||||
return "null";
|
||||
}
|
||||
return str.replace("ä", "ae").replace("ö", "oe").replace("ü", "ue").
|
||||
replace(
|
||||
"Ä", "Ae").replace("Ü", "Ue").replace("Ö", "Oe").replace("ß",
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class PublicationData {
|
|||
}
|
||||
|
||||
public String getUrl() {
|
||||
if (name.length() < 200) {
|
||||
if (name.length() < 175) {
|
||||
return DaBInImporter.normalizeString(name);
|
||||
} else {
|
||||
System.out.println(
|
||||
|
|
|
|||
Loading…
Reference in New Issue