Verschiedene Daten zum ExtraXML von SciDepartment hinzugefügt.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2431 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
b4c8a8ca96
commit
0537142e38
|
|
@ -46,7 +46,8 @@ ALTER TABLE init_requirements
|
|||
|
||||
|
||||
update application_types
|
||||
set object_type=replace(object_type,'london.navigation','navigation')
|
||||
set object_type=replace(object_type,'london.navigation','navigation'),
|
||||
singleton_p=false
|
||||
where object_type like '%london.navigation%' ;
|
||||
|
||||
-- table applications doesn't require an update
|
||||
|
|
|
|||
|
|
@ -49,8 +49,11 @@ public class SciDepartmentExtraXmlGenerator extends GenericOrgaUnitExtraXmlGener
|
|||
}
|
||||
|
||||
final SciDepartment department = (SciDepartment) item;
|
||||
|
||||
|
||||
if (getListMode()) {
|
||||
final Element shortDescElem = element.newChildElement("shortDescription");
|
||||
shortDescElem.setText(department.getDepartmentShortDescription());
|
||||
|
||||
if (CONFIG.getShowHeadInList()) {
|
||||
generateHeadOfDepartmentXml(department, element, state);
|
||||
}
|
||||
|
|
@ -101,7 +104,7 @@ public class SciDepartmentExtraXmlGenerator extends GenericOrgaUnitExtraXmlGener
|
|||
activeStatus));
|
||||
}
|
||||
|
||||
final Element elem = parent.newChildElement(elemName);
|
||||
final Element elem = parent.newChildElement(String.format("%ss", elemName));
|
||||
|
||||
final GenericOrganizationalUnitPersonCollection persons = department.getPersons();
|
||||
persons.addFilter(roleFilter.toString());
|
||||
|
|
@ -121,7 +124,7 @@ public class SciDepartmentExtraXmlGenerator extends GenericOrgaUnitExtraXmlGener
|
|||
parent,
|
||||
state,
|
||||
CONFIG.getHeadRole(),
|
||||
"heads");
|
||||
"head");
|
||||
}
|
||||
|
||||
protected void generateViceHeadOfDepartmentXml(final SciDepartment department,
|
||||
|
|
@ -131,7 +134,7 @@ public class SciDepartmentExtraXmlGenerator extends GenericOrgaUnitExtraXmlGener
|
|||
parent,
|
||||
state,
|
||||
CONFIG.getViceHeadRole(),
|
||||
"viceheads");
|
||||
"vicehead");
|
||||
}
|
||||
|
||||
protected void generateSecretariatOfDepartmentXml(final SciDepartment department,
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public class SciDepartmentSummaryTab implements GenericOrgaUnitTab {
|
|||
activeStatus));
|
||||
}
|
||||
|
||||
final Element elem = parent.newChildElement(elemName);
|
||||
final Element elem = parent.newChildElement(String.format("%ss", elemName));
|
||||
|
||||
final GenericOrganizationalUnitPersonCollection persons = department.getPersons();
|
||||
persons.addFilter(roleFilter.toString());
|
||||
|
|
@ -165,7 +165,7 @@ public class SciDepartmentSummaryTab implements GenericOrgaUnitTab {
|
|||
parent,
|
||||
state,
|
||||
CONFIG.getHeadRole(),
|
||||
"heads");
|
||||
"head");
|
||||
}
|
||||
|
||||
protected void generateViceHeadOfDepartmentXml(final SciDepartment department,
|
||||
|
|
@ -175,7 +175,7 @@ public class SciDepartmentSummaryTab implements GenericOrgaUnitTab {
|
|||
parent,
|
||||
state,
|
||||
CONFIG.getViceHeadRole(),
|
||||
"viceheads");
|
||||
"vicehead");
|
||||
}
|
||||
|
||||
protected void generateSecretariatOfDepartmentXml(final SciDepartment department,
|
||||
|
|
|
|||
|
|
@ -70,6 +70,10 @@ public class Site extends ACSObject {
|
|||
public Site(DataObject obj) {
|
||||
super(obj);
|
||||
}
|
||||
|
||||
public Site(final OID oid) {
|
||||
super(oid);
|
||||
}
|
||||
|
||||
public static Site create(String title,
|
||||
String description,
|
||||
|
|
|
|||
Loading…
Reference in New Issue