RelatedLinks und Notes, die dem PublicPersonalProfile-Item zugeordnet sind werden jetzt auf der Startseite ausgegeben.
Erfordert eine Mandalay-Version, die den Content-Typ 'PublicPersonProfile' unterstützt. git-svn-id: https://svn.libreccm.org/ccm/trunk@1099 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
a6e10ab7c2
commit
a1b70f3757
|
|
@ -558,7 +558,7 @@ public class PersonImporter extends Program {
|
|||
membersFormerDepartmentCategories.get(result.
|
||||
getString("abteilunglink.Abteilung_Id"));
|
||||
} else if ("Assoziert".equals(result.getString(
|
||||
"person.Eigenscahaft"))) {
|
||||
"person.Eigenschaft"))) {
|
||||
depCat = membersAssociatedDepartmentCategories.
|
||||
get(result.getString(
|
||||
"abteilunglink.Abteilung_Id"));
|
||||
|
|
@ -573,9 +573,9 @@ public class PersonImporter extends Program {
|
|||
if (!result.getString("person.Angaben").isEmpty()) {
|
||||
Contact contact = new Contact();
|
||||
contact.setLanguage("de");
|
||||
contact.setName(String.format("kontakt-%s", person.
|
||||
contact.setName(String.format("%s-kontakt", person.
|
||||
getName()));
|
||||
contact.setTitle(String.format("Kontakt %s", person.
|
||||
contact.setTitle(String.format("%s Kontakt", person.
|
||||
getTitle()));
|
||||
contact.setPerson(person, "commonContact");
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,14 @@
|
|||
<xrd:attributes rule="exclude">
|
||||
<xrd:property name="/object/profileUrl"/>
|
||||
</xrd:attributes>
|
||||
|
||||
<xrd:associations rule="include">
|
||||
<xrd:property name="/object/owner"/>
|
||||
<xrd:property name="/object/owner/contacts"/>
|
||||
<xrd:property name="/object/owner/contacts/contactentries"/>
|
||||
<xrd:property name="/object/owner/contacts/address"/>
|
||||
|
||||
</xrd:associations>
|
||||
</xrd:adapter>
|
||||
|
||||
</xrd:context>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
protected void doService(final HttpServletRequest request,
|
||||
final HttpServletResponse response,
|
||||
final Application app) throws ServletException,
|
||||
IOException {
|
||||
IOException {
|
||||
String path = "";
|
||||
|
||||
logger.debug("PublicPersonalProfileServlet is starting...");
|
||||
|
|
@ -164,7 +164,8 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
throw new IllegalStateException(
|
||||
"More than one matching members found...");
|
||||
} else {
|
||||
final PageState state = new PageState(page, request,
|
||||
final PageState state = new PageState(page,
|
||||
request,
|
||||
response);
|
||||
|
||||
profiles.next();
|
||||
|
|
@ -185,17 +186,22 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
createNavigation(profile, root, navPath);
|
||||
|
||||
if (navPath == null) {
|
||||
generateProfileOwnerXml(profileElem, owner, state);
|
||||
|
||||
final PublicPersonalProfileXmlGenerator generator =
|
||||
new PublicPersonalProfileXmlGenerator(
|
||||
profile);
|
||||
generator.generateXML(state, root, "");
|
||||
|
||||
//generateProfileOwnerXml(profileElem, owner, state);
|
||||
|
||||
/*DataCollection relatedLinks = RelatedLink.getRelatedLinks(profile, "NONE");
|
||||
if (relatedLinks.size() > 0) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
DataCollection notes = Note.getNotes(profile);
|
||||
if (notes.size() > 0) {
|
||||
|
||||
} */
|
||||
|
||||
} */
|
||||
} else {
|
||||
final DataCollection links =
|
||||
RelatedLink.getRelatedLinks(profile,
|
||||
|
|
@ -270,9 +276,7 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
final PublicPersonalProfileXmlGenerator generator =
|
||||
new PublicPersonalProfileXmlGenerator(
|
||||
item);
|
||||
generator.generateXML(new PageState(page,
|
||||
request,
|
||||
response),
|
||||
generator.generateXML(state,
|
||||
root,
|
||||
"");
|
||||
}
|
||||
|
|
@ -432,7 +436,7 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
"titlePost");
|
||||
titlePost.setText(owner.getTitlePost());
|
||||
}
|
||||
|
||||
|
||||
if (owner.hasContacts()) {
|
||||
final GenericPersonContactCollection contacts = owner.getContacts();
|
||||
//final String contactType = config.getContactType();
|
||||
|
|
@ -444,7 +448,7 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
contacts.next();
|
||||
generateContactXml(profileOwnerElem,
|
||||
contacts.getContact(),
|
||||
state);
|
||||
state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -526,14 +530,15 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
|||
final ParameterSingleSelectionModel navItemSelect =
|
||||
new ParameterSingleSelectionModel(
|
||||
navItemKeyParam);
|
||||
|
||||
|
||||
page.addGlobalStateParam(navItemKeyParam);
|
||||
|
||||
final BoxPanel box = new BoxPanel(BoxPanel.VERTICAL);
|
||||
final FormSection tableSection = new FormSection(box);
|
||||
|
||||
final PublicPersonalProfileNavItemsAddForm addForm =
|
||||
new PublicPersonalProfileNavItemsAddForm(navItemSelect);
|
||||
new PublicPersonalProfileNavItemsAddForm(
|
||||
navItemSelect);
|
||||
final PublicPersonalProfileNavItemsTable table =
|
||||
new PublicPersonalProfileNavItemsTable(
|
||||
navItemSelect);
|
||||
|
|
|
|||
Loading…
Reference in New Issue