- Neue mögliche Navigationspunkte für PublicPersonalProfile wurde erst nach einem Neustart angezeigt
- Verschiedene kleinere Korrekturen git-svn-id: https://svn.libreccm.org/ccm/trunk@1095 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c1d6e547db
commit
e417f60c2a
|
|
@ -1053,7 +1053,7 @@ public class DaBInImporter extends Program {
|
||||||
System.out.println("FAILED");
|
System.out.println("FAILED");
|
||||||
ex.printStackTrace(System.err);
|
ex.printStackTrace(System.err);
|
||||||
}
|
}
|
||||||
|
www
|
||||||
System.out.println("Monographies...");
|
System.out.println("Monographies...");
|
||||||
try {
|
try {
|
||||||
Statement stmt = connection.createStatement(
|
Statement stmt = connection.createStatement(
|
||||||
|
|
|
||||||
|
|
@ -659,10 +659,6 @@ public class PersonImporter extends Program {
|
||||||
}
|
}
|
||||||
|
|
||||||
tctx.commitTxn();
|
tctx.commitTxn();
|
||||||
} catch (UnsupportedEncodingException ex) {
|
|
||||||
System.err.println("Error: ");
|
|
||||||
ex.printStackTrace(System.err);
|
|
||||||
return;
|
|
||||||
} finally {
|
} finally {
|
||||||
if (tctx.inTxn()) {
|
if (tctx.inTxn()) {
|
||||||
tctx.abortTxn();
|
tctx.abortTxn();
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@ import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.event.FormInitListener;
|
import com.arsdigita.bebop.event.FormInitListener;
|
||||||
import com.arsdigita.bebop.event.FormProcessListener;
|
import com.arsdigita.bebop.event.FormProcessListener;
|
||||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||||
|
import com.arsdigita.bebop.event.PrintEvent;
|
||||||
|
import com.arsdigita.bebop.event.PrintListener;
|
||||||
import com.arsdigita.bebop.form.Option;
|
import com.arsdigita.bebop.form.Option;
|
||||||
import com.arsdigita.bebop.form.SingleSelect;
|
import com.arsdigita.bebop.form.SingleSelect;
|
||||||
import com.arsdigita.bebop.parameters.NotEmptyValidationListener;
|
import com.arsdigita.bebop.parameters.NotEmptyValidationListener;
|
||||||
|
|
@ -28,6 +30,8 @@ import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||||
import com.arsdigita.dispatcher.DispatcherHelper;
|
import com.arsdigita.dispatcher.DispatcherHelper;
|
||||||
import com.arsdigita.globalization.GlobalizedMessage;
|
import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
import com.arsdigita.mimetypes.MimeType;
|
import com.arsdigita.mimetypes.MimeType;
|
||||||
|
import com.arsdigita.util.UncheckedWrapperException;
|
||||||
|
import java.util.TooManyListenersException;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -76,8 +80,38 @@ public class PublicPersonalProfileNavigationAddForm
|
||||||
SingleSelect navItemSelect = new SingleSelect(navItemModel);
|
SingleSelect navItemSelect = new SingleSelect(navItemModel);
|
||||||
navItemSelect.addValidationListener(new NotNullValidationListener());
|
navItemSelect.addValidationListener(new NotNullValidationListener());
|
||||||
navItemSelect.addValidationListener(new NotEmptyValidationListener());
|
navItemSelect.addValidationListener(new NotEmptyValidationListener());
|
||||||
|
try {
|
||||||
|
navItemSelect.addPrintListener(new PrintListener() {
|
||||||
|
|
||||||
navItemSelect.addOption(new Option("", ""));
|
public void prepare(final PrintEvent event) {
|
||||||
|
SingleSelect select = (SingleSelect) event.getTarget();
|
||||||
|
|
||||||
|
select.addOption(new Option("", ""));
|
||||||
|
PublicPersonalProfileNavItemCollection navItems =
|
||||||
|
new PublicPersonalProfileNavItemCollection();
|
||||||
|
navItems.addLanguageFilter(DispatcherHelper.
|
||||||
|
getNegotiatedLocale().
|
||||||
|
getLanguage());
|
||||||
|
if (showGenerated()) {
|
||||||
|
navItems.addFilter("generatorClass is not null");
|
||||||
|
} else {
|
||||||
|
navItems.addFilter("generatorClass is null");
|
||||||
|
}
|
||||||
|
|
||||||
|
PublicPersonalProfileNavItem navItem;
|
||||||
|
while (navItems.next()) {
|
||||||
|
navItem = navItems.getNavItem();
|
||||||
|
|
||||||
|
select.addOption(new Option(navItem.getKey(),
|
||||||
|
navItem.getLabel()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (TooManyListenersException ex) {
|
||||||
|
throw new UncheckedWrapperException(ex);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*navItemSelect.addOption(new Option("", ""));
|
||||||
|
|
||||||
PublicPersonalProfileNavItemCollection navItems =
|
PublicPersonalProfileNavItemCollection navItems =
|
||||||
new PublicPersonalProfileNavItemCollection();
|
new PublicPersonalProfileNavItemCollection();
|
||||||
|
|
@ -95,7 +129,7 @@ public class PublicPersonalProfileNavigationAddForm
|
||||||
|
|
||||||
navItemSelect.addOption(new Option(navItem.getKey(),
|
navItemSelect.addOption(new Option(navItem.getKey(),
|
||||||
navItem.getLabel()));
|
navItem.getLabel()));
|
||||||
}
|
}*/
|
||||||
add(navItemSelect);
|
add(navItemSelect);
|
||||||
|
|
||||||
if (!showGenerated()) {
|
if (!showGenerated()) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ import com.arsdigita.cms.contenttypes.PublicPersonalProfileNavItemCollection;
|
||||||
import com.arsdigita.cms.publicpersonalprofile.ui.PublicPersonalProfileNavItemsAddForm;
|
import com.arsdigita.cms.publicpersonalprofile.ui.PublicPersonalProfileNavItemsAddForm;
|
||||||
import com.arsdigita.dispatcher.DispatcherHelper;
|
import com.arsdigita.dispatcher.DispatcherHelper;
|
||||||
import com.arsdigita.domain.DomainObjectFactory;
|
import com.arsdigita.domain.DomainObjectFactory;
|
||||||
import com.arsdigita.kernel.ui.ACSObjectSelectionModel;
|
|
||||||
import com.arsdigita.persistence.DataCollection;
|
import com.arsdigita.persistence.DataCollection;
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
import com.arsdigita.persistence.Session;
|
import com.arsdigita.persistence.Session;
|
||||||
|
|
@ -71,7 +70,6 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
||||||
final HttpServletResponse response,
|
final HttpServletResponse response,
|
||||||
final Application app) throws ServletException,
|
final Application app) throws ServletException,
|
||||||
IOException {
|
IOException {
|
||||||
PublicPersonalProfileConfig config = PublicPersonalProfiles.getConfig();
|
|
||||||
String path = "";
|
String path = "";
|
||||||
|
|
||||||
logger.debug("PublicPersonalProfileServlet is starting...");
|
logger.debug("PublicPersonalProfileServlet is starting...");
|
||||||
|
|
@ -188,6 +186,16 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
||||||
|
|
||||||
if (navPath == null) {
|
if (navPath == null) {
|
||||||
generateProfileOwnerXml(profileElem, owner, state);
|
generateProfileOwnerXml(profileElem, owner, state);
|
||||||
|
|
||||||
|
/*DataCollection relatedLinks = RelatedLink.getRelatedLinks(profile, "NONE");
|
||||||
|
if (relatedLinks.size() > 0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DataCollection notes = Note.getNotes(profile);
|
||||||
|
if (notes.size() > 0) {
|
||||||
|
|
||||||
|
} */
|
||||||
} else {
|
} else {
|
||||||
final DataCollection links =
|
final DataCollection links =
|
||||||
RelatedLink.getRelatedLinks(profile,
|
RelatedLink.getRelatedLinks(profile,
|
||||||
|
|
@ -425,13 +433,6 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
||||||
titlePost.setText(owner.getTitlePost());
|
titlePost.setText(owner.getTitlePost());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*PublicPersonalProfileXmlGenerator personXml =
|
|
||||||
new PublicPersonalProfileXmlGenerator(
|
|
||||||
owner);
|
|
||||||
personXml.generateXML(state,
|
|
||||||
profileOwnerElem,
|
|
||||||
"PublicPersonalProfile");*/
|
|
||||||
|
|
||||||
if (owner.hasContacts()) {
|
if (owner.hasContacts()) {
|
||||||
final GenericPersonContactCollection contacts = owner.getContacts();
|
final GenericPersonContactCollection contacts = owner.getContacts();
|
||||||
//final String contactType = config.getContactType();
|
//final String contactType = config.getContactType();
|
||||||
|
|
@ -444,10 +445,6 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
|
||||||
generateContactXml(profileOwnerElem,
|
generateContactXml(profileOwnerElem,
|
||||||
contacts.getContact(),
|
contacts.getContact(),
|
||||||
state);
|
state);
|
||||||
/*PublicPersonalProfileXmlGenerator contactXml =
|
|
||||||
new PublicPersonalProfileXmlGenerator(
|
|
||||||
contacts.getContact());
|
|
||||||
contactXml.generateXML(state, profileOwnerElem, "");*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue