From 8957b1e0a8d2af11a7648180533670cc4c938e72 Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 17 Feb 2011 15:47:52 +0000 Subject: [PATCH] DaBInImporter speichert die DaBIn-ID von Personen jetzt im Description-Feld in der Form "DaBInId={123}". git-svn-id: https://svn.libreccm.org/ccm/trunk@753 8810af33-2d31-482b-a856-94f89814c4df --- .../com/arsdigita/cms/dabin/DaBInImporter.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ccm-cms-dabinimporter/src/com/arsdigita/cms/dabin/DaBInImporter.java b/ccm-cms-dabinimporter/src/com/arsdigita/cms/dabin/DaBInImporter.java index e21323d11..ba70708ce 100644 --- a/ccm-cms-dabinimporter/src/com/arsdigita/cms/dabin/DaBInImporter.java +++ b/ccm-cms-dabinimporter/src/com/arsdigita/cms/dabin/DaBInImporter.java @@ -1889,6 +1889,8 @@ public class DaBInImporter extends Program { personDe.setSurname(personData.getSurname()); personDe.setGivenName(personData.getGivenname()); personDe.setTitlePre(personData.getTitlePre()); + personDe.setDescription(String.format("DaBInId={%s}", + personData.getDabinId())); personDe.setContentSection(section); personDe.setLifecycle(createLifecycle(personsLifecycle)); personDe.save(); @@ -1897,6 +1899,8 @@ public class DaBInImporter extends Program { personEn.setSurname(personData.getSurname()); personEn.setTitlePre(personData.getTitlePre()); personEn.setGivenName(personData.getGivenname()); + personEn.setDescription(String.format("DaBInId={%s}", + personData.getDabinId())); personEn.setContentSection(section); personEn.setLifecycle(createLifecycle(personsLifecycle)); personEn.save(); @@ -2778,8 +2782,9 @@ public class DaBInImporter extends Program { } if ("et. al.".equals(author.getSurname()) - || "et. al.".equals(author.getGivenName())) { - System.out.printf("\t***WARNING: The publication %s has a author 'et. al.'. It is strongly recommened to name ALL authors of a publication. "); + || "et. al.".equals(author.getGivenName())) { + System.out.printf( + "\t***WARNING: The publication %s has a author 'et. al.'. It is strongly recommened to name ALL authors of a publication. "); } RelatedLink myPublication; @@ -3188,14 +3193,14 @@ public class DaBInImporter extends Program { if (publisherData.getName().length() < 3) { System.out.printf( "WARNING: The name of the publisher '%s' is very short.", - publisherData.getName()); + publisherData.getName()); } if ((publisherData.getPlace() == null) - || publisherData.getPlace().isEmpty()) { + || publisherData.getPlace().isEmpty()) { System.out.printf( "WARNING: The publisher '%s' has no place.", - publisherData.getName()); + publisherData.getName()); } Transaction transaction = new Transaction() {