Kleine Verbesserungen an der XML-Ausgabe des SciProjectSummaryTab (Berücksichtigung mehrerer Mittelgeber)

git-svn-id: https://svn.libreccm.org/ccm/trunk@2434 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2013-11-09 16:12:50 +00:00
parent ae2d4faad3
commit d3805612d3
2 changed files with 16 additions and 15 deletions

View File

@ -41,7 +41,6 @@ public class SciProjectSummaryTab implements GenericOrgaUnitTab {
config.load();
}
@Override
public String getKey() {
return key;
@ -452,12 +451,14 @@ public class SciProjectSummaryTab implements GenericOrgaUnitTab {
final PageState state) {
if ((project.getSponsors() != null)
&& !project.getSponsors().isEmpty()) {
final Element sponsorElem = parent.newChildElement("sponsor");
final SciProjectSponsorCollection sponsors = project.getSponsors();
sponsors.next();
final Element sponsorsElem = parent.newChildElement("sponsors");
while (sponsors.next()) {
final Element sponsorElem = sponsorsElem.newChildElement("sponsor");
final GenericOrganizationalUnit sponsor = sponsors.getSponsor();
sponsorElem.setText(sponsor.getTitle());
}
}
if ((project.getFunding() != null)
&& !project.getFunding().trim().isEmpty()) {
@ -486,5 +487,6 @@ public class SciProjectSummaryTab implements GenericOrgaUnitTab {
protected ContentItem getContentItem(final PageState state) {
return item;
}
}
}

View File

@ -55,7 +55,6 @@ public class SciProjectSummaryTabConfig extends AbstractConfig {
Parameter.REQUIRED,
true);
register(showMembers);
register(mergeMembers);
register(showContacts);