Fixed problem in toString of Proceedings.
parent
c1b34c5ad9
commit
2d33b1aca2
|
|
@ -112,12 +112,12 @@ public class InProceedings extends Publication {
|
||||||
return super.toString(
|
return super.toString(
|
||||||
String.format(
|
String.format(
|
||||||
"proceedings = %s, "
|
"proceedings = %s, "
|
||||||
+ "startPage = %d, "
|
+ "startPage = %d, "
|
||||||
+ "endPage = %d%s",
|
+ "endPage = %d%s",
|
||||||
Objects.toString(proceedings),
|
Objects.toString(proceedings),
|
||||||
startPage,
|
startPage,
|
||||||
endPage,
|
endPage,
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
|
|
@ -174,20 +175,33 @@ public class Proceedings extends PublicationWithPublisher {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString(final String data) {
|
public String toString(final String data) {
|
||||||
|
final String papers = this.papers
|
||||||
|
.stream()
|
||||||
|
.map(
|
||||||
|
paper -> String.format(
|
||||||
|
"{ uuid = %s, title = %s}",
|
||||||
|
paper.getUuid(),
|
||||||
|
Objects.toString(paper.getTitle())
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.collect(Collectors.joining(", "));
|
||||||
|
|
||||||
return super.toString(String.format("nameOfConference = \"%s\", "
|
return super.toString(
|
||||||
+ "placeOfConference = \"%s\", "
|
String.format(
|
||||||
+ "startDate = \"%s\", "
|
"nameOfConference = \"%s\", "
|
||||||
+ "endDate = \"%s\", "
|
+ "placeOfConference = \"%s\", "
|
||||||
+ "organizer = %s, "
|
+ "startDate = \"%s\", "
|
||||||
+ "papers = %s%s",
|
+ "endDate = \"%s\", "
|
||||||
nameOfConference,
|
+ "organizer = %s, "
|
||||||
placeOfConference,
|
+ "papers = %s%s",
|
||||||
Objects.toString(startDate),
|
nameOfConference,
|
||||||
Objects.toString(endDate),
|
placeOfConference,
|
||||||
Objects.toString(organizer),
|
Objects.toString(startDate),
|
||||||
Objects.toString(papers),
|
Objects.toString(endDate),
|
||||||
data)
|
Objects.toString(organizer),
|
||||||
|
papers,
|
||||||
|
data
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
/subsystem=transactions:write-attribute(name=default-timeout,value=7200)
|
/subsystem=transactions:write-attribute(name=default-timeout,value=14400)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue