diff --git a/dspace-xmlui-mirage2/src/main/webapp/sitemap.xmap b/dspace-xmlui-mirage2/src/main/webapp/sitemap.xmap index 80f004a50c..14da44be65 100644 --- a/dspace-xmlui-mirage2/src/main/webapp/sitemap.xmap +++ b/dspace-xmlui-mirage2/src/main/webapp/sitemap.xmap @@ -54,6 +54,11 @@ + + + + + + diff --git a/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/ContextAbortAction.java b/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/ContextAbortAction.java new file mode 100644 index 0000000000..c34a84199d --- /dev/null +++ b/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/ContextAbortAction.java @@ -0,0 +1,29 @@ +/** + * The contents of this file are subject to the license and copyright + * detailed in the LICENSE and NOTICE files at the root of the source + * tree and available online at + * + * http://www.dspace.org/license/ + */ +package org.dspace.app.xmlui.cocoon; + +import java.util.*; +import org.apache.avalon.framework.parameters.*; +import org.apache.cocoon.acting.*; +import org.apache.cocoon.environment.*; +import org.dspace.app.xmlui.utils.*; + +/** + * This action is used to abort the context when an exception occurs. + * The action is called by the handle-errors section in either the theme's sitemap or the + * main webapp/sitemap if the theme does not have a handle-errors section. + * + * @author philip at atmire.com + */ +public class ContextAbortAction extends ServiceableAction { + @Override + public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception { + ContextUtil.abortContext(ObjectModelHelper.getRequest(objectModel)); + return EMPTY_MAP; + } +} diff --git a/dspace-xmlui/src/main/webapp/sitemap.xmap b/dspace-xmlui/src/main/webapp/sitemap.xmap index 7b7b107218..81e05a14b5 100644 --- a/dspace-xmlui/src/main/webapp/sitemap.xmap +++ b/dspace-xmlui/src/main/webapp/sitemap.xmap @@ -208,6 +208,7 @@ + @@ -747,7 +748,9 @@ - + + + diff --git a/dspace-xmlui/src/main/webapp/themes/Mirage/sitemap.xmap b/dspace-xmlui/src/main/webapp/themes/Mirage/sitemap.xmap index a69403a495..33b5d149b8 100644 --- a/dspace-xmlui/src/main/webapp/themes/Mirage/sitemap.xmap +++ b/dspace-xmlui/src/main/webapp/themes/Mirage/sitemap.xmap @@ -49,6 +49,10 @@ + + + + @@ -197,7 +201,7 @@ - @@ -210,6 +214,7 @@ +