DaBIn importer aktueller Stand.

git-svn-id: https://svn.libreccm.org/ccm/trunk@652 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2010-12-19 20:12:23 +00:00
parent cc6b05f816
commit 4d04a8edb4
5 changed files with 929 additions and 387 deletions

View File

@ -16,6 +16,7 @@
<ccm:requires name="ccm-sci-publications" version="6.6.0" relation="ge"/> <ccm:requires name="ccm-sci-publications" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-cms-assets-relatedlink" version="6.6.0" relation="ge"/> <ccm:requires name="ccm-cms-assets-relatedlink" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-cms-types-filestorageitem" version="6.6.0" relation="ge"/> <ccm:requires name="ccm-cms-types-filestorageitem" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-ldn-terms" version="6.6.0" relation="ge"/>
</ccm:dependencies> </ccm:dependencies>
<ccm:contacts> <ccm:contacts>
<ccm:contact uri="http://www.pwi.uni-bremen.de" type="website"/> <ccm:contact uri="http://www.pwi.uni-bremen.de" type="website"/>

View File

@ -66,7 +66,12 @@ public class PublicationData {
} }
public void setLink(String link) { public void setLink(String link) {
if (link.length() < 200) {
this.link = link; this.link = link;
} else {
System.out.println("\n***WARNING: Link value too long. Truncating.\n");
this.link = link.substring(0, 200);
}
} }
public String getName() { public String getName() {
@ -77,6 +82,15 @@ public class PublicationData {
this.name = name; this.name = name;
} }
public String getUrl() {
if (name.length() < 200) {
return name;
} else {
System.out.println("\t***WARNING: Title of publication is too long for URL. Triming to title to a length of 200 characters for URL.");
return name.substring(0,200);
}
}
public String getPublicationDaBInId() { public String getPublicationDaBInId() {
return publicationDaBInId; return publicationDaBInId;
} }

View File

@ -14,7 +14,15 @@ public class PublisherData {
} }
public void setName(String name) { public void setName(String name) {
this.name = name.trim(); if (name == null) {
this.name = "";
} else {
if ("null".equals(name.toLowerCase())) {
this.name = "";
} else {
this.name = name.trim();
}
}
} }
public String getPlace() { public String getPlace() {
@ -22,7 +30,15 @@ public class PublisherData {
} }
public void setPlace(String place) { public void setPlace(String place) {
this.place = place.trim(); if (place == null) {
this.place = "";
} else {
if ("null".equals(place.toLowerCase())) {
this.place = "";
} else {
this.place = place.trim();
}
}
} }
@Override @Override
@ -35,11 +51,11 @@ public class PublisherData {
} }
final PublisherData other = (PublisherData) obj; final PublisherData other = (PublisherData) obj;
if ((this.name == null) ? (other.name != null) if ((this.name == null) ? (other.name != null)
: !this.name.equals(other.name)) { : !this.name.equals(other.name)) {
return false; return false;
} }
if ((this.place == null) ? (other.place != null) if ((this.place == null) ? (other.place != null)
: !this.place.equals(other.place)) { : !this.place.equals(other.place)) {
return false; return false;
} }
return true; return true;

View File

@ -16,7 +16,8 @@ public class WorkingPaperData {
private String year; private String year;
private String descDe; private String descDe;
private String descEn; private String descEn;
private InputStream file; private String number;
private byte[] file;
private List<Authorship> authors; private List<Authorship> authors;
public WorkingPaperData() { public WorkingPaperData() {
@ -87,11 +88,11 @@ public class WorkingPaperData {
return authors; return authors;
} }
public InputStream getFile() { public byte[] getFile() {
return file; return file;
} }
public void setFile(InputStream file) { public void setFile(byte[] file) {
this.file = file; this.file = file;
} }
@ -102,4 +103,12 @@ public class WorkingPaperData {
public void addAuthor(final Authorship author) { public void addAuthor(final Authorship author) {
authors.add(author); authors.add(author);
} }
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
} }