<?xml version="1.0" encoding="UTF-8"?>
<!--

    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/

-->

<!-- 

The Feedback Aspect is responsible for managing the feedback form.

-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
    <map:components>
        
        <map:transformers>
            
            <map:transformer name="FeedbackForm" src="org.dspace.app.xmlui.aspect.artifactbrowser.FeedbackForm"/>
            <map:transformer name="FeedbackSent" src="org.dspace.app.xmlui.aspect.artifactbrowser.FeedbackSent"/>
            <map:transformer name="Contact" src="org.dspace.app.xmlui.aspect.artifactbrowser.Contact"/>
            <map:transformer name="Statistics" src="org.dspace.app.xmlui.aspect.artifactbrowser.StatisticsViewer"/>

        </map:transformers>

        <map:matchers default="wildcard"/>
        
        <map:actions>
            <map:action name="SendFeedbackAction" src="org.dspace.app.xmlui.aspect.artifactbrowser.SendFeedbackAction"/>
        </map:actions>
        
        <map:selectors/>
    
    </map:components>

    <map:pipelines>
        <map:pipeline>

            <map:generate/>
            
            <!-- 
                    Add the basic navigation content to every page. This includes:
                    
                    1) Metadata about the current page (really just what the current 
                       context path is)
                    2) Navigation links to browse the repository.
                       - This includes links that are relative to the currently 
                         selected community or collection.
                    3) Metadata about the search urls.
                    -->
            <!--<map:transform type="Navigation"/>-->
            
            
            <!--
                    Display the DSpace homepage. This includes the news.xml file 
                    along with a list of top level communities in DSpace. 
                    -->
            <map:match pattern="">
                
            
                <map:serialize type="xml"/>
            </map:match>
             
            <!-- Display statistics -->
            <map:match pattern="statistics">
                <map:transform type="Statistics"/>
                <map:serialize type="xml"/>
            </map:match>
            
            <!--
                A simple feedback utility that presents the user with a form to fill out,
                the results of which are emailed to the site administrator. 
                -->
            <map:match pattern="feedback">
                <map:act type="SendFeedbackAction">
                    <map:transform type="FeedbackForm">
                        <map:parameter name="comments" value="{comments}"/>
                        <map:parameter name="email" value="{email}"/>
                        <map:parameter name="page" value="{page}"/>
                    </map:transform>
                    
                    <map:serialize type="xml"/>
                </map:act>
                <map:transform type="FeedbackSent"/>
                <map:serialize type="xml"/>
            </map:match>
            
            <!--
                The most basic & generic contact us page. It is expected that most
                themes will override this page and replace it with a more detailed 
                version. 
                -->
            <map:match pattern="contact">
                <map:transform type="Contact"/>
                <map:serialize type="xml"/>
            </map:match>
            
            
            <!-- Not a URL we care about, so just pass it on. -->
            <map:serialize type="xml"/>
            
        </map:pipeline>
    </map:pipelines>
</map:sitemap>