DaBIn importer aktueller Stand.
git-svn-id: https://svn.libreccm.org/ccm/trunk@652 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
cc6b05f816
commit
4d04a8edb4
|
|
@ -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"/>
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,32 @@ public class PublisherData {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
|
if (name == null) {
|
||||||
|
this.name = "";
|
||||||
|
} else {
|
||||||
|
if ("null".equals(name.toLowerCase())) {
|
||||||
|
this.name = "";
|
||||||
|
} else {
|
||||||
this.name = name.trim();
|
this.name = name.trim();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public String getPlace() {
|
public String getPlace() {
|
||||||
return place;
|
return place;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPlace(String place) {
|
public void setPlace(String place) {
|
||||||
|
if (place == null) {
|
||||||
|
this.place = "";
|
||||||
|
} else {
|
||||||
|
if ("null".equals(place.toLowerCase())) {
|
||||||
|
this.place = "";
|
||||||
|
} else {
|
||||||
this.place = place.trim();
|
this.place = place.trim();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue