Hi, perhaps you add your files to 

 [src]/dspace-1_5_1/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp

and run 'mvn package' followed by ant.

-- Van Ly : University of Sydney Library


From: Pottinger, Hardy J.
Sent: Fri 13/02/2009 5:06 AM
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] adding static pages to a DSpace site using xmlui


Hi, let me ask this question in a different way. If you've added static
pages (a FAQ, an about page, etc.) to a DSpace site using xmlui, how did
you go about it? Thanks!

--Hardy  

> -----Original Message-----
> From: Pottinger, Hardy J. [mailto:pottinge...@umsystem.edu] 
> Sent: Wednesday, February 11, 2009 4:25 PM
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] adding static pages to a DSpace site 
> using xmlui
> 
> Hi, I am using DSpace 1.5.1, on a development instance running on my
> Windows notebook, and I'm attempting to follow option #1 (XSL-based
> method) from the Manakin theme tutorial on the wiki, for adding static
> pages:
> 
> http://wiki.dspace.org/index.php/Manakin_theme_tutorial#Adding
> _static_pa
> ges
> 
> I will paste some code snippets below, but first the problem: when I
> navigate to http://localhost:8080/xmlui/add, the body of the page is
> blank, and the title of the page reads "Page not found".
> 
> I'm sure I'm missing something obvious. I have confirmed that the file
> "add.xml" is in a subfolder of the theme folder, called "pages".
> 
> Any ideas? TIA.
> 
> 
> Here's the override code for the main body template, which I'm using:
> 
>     <xsl:template match="dri:body">
>         <div id="ds-body">
> 
>             <ul id="ds-trail">
>                       [snip, not important]
>             </ul>
> 
>             <xsl:if
> test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen
> t='alert']
> [...@qualifier='message']">
>                 <div id="ds-system-wide-alert">
>                               [snip, not important]
>                 </div>
>             </xsl:if>
> 
>            <!-- Check for the custom pages: add, about, help -->
> 
>            <xsl:choose>
>                <xsl:when
> test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen
> t='request
> ']...@qualifier='URI']='add'">
>                    <xsl:copy-of select="document('pages/add.xml')" />
>                </xsl:when>
>                <xsl:when
> test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen
> t='request
> ']...@qualifier='URI']='about'">
>                    <xsl:copy-of 
> select="document('pages/about.xml')" />
>                </xsl:when>
>                <xsl:when
> test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen
> t='request
> ']...@qualifier='URI']='help'">
>                    <xsl:copy-of select="document('pages/help.xml')" />
>                </xsl:when>
>                <!-- Otherwise use default handling of body -->
>                <xsl:otherwise>
>                    <xsl:apply-templates />
>                </xsl:otherwise>
>            </xsl:choose>
> 
>         </div>
>     </xsl:template>
> 
> And here's the very basic pages/add.xml file I'm using:
> 
> <h1 xmlns="http://di.tamu.edu/DRI/1.0/"; style="font-size: 200%;"
> class="ds-div-head">Add to MOspace</h1>
> <div id="file_news_div_news" class="ds-static-div primary">
> <p class="ds-paragraph">more content coming soon...</p>
> </div>
> 
> --
> HARDY POTTINGER <pottinge...@umsystem.edu>
> University of Missouri Library Systems
> http://lso.umsystem.edu/~hardy/
> "No matter how far down the wrong road you've gone,
> turn back." --Turkish proverb
> 
> --------------------------------------------------------------
> ----------------
> Create and Deploy Rich Internet Apps outside the browser with 
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing 
> skills and code to
> build responsive, highly engaging applications that combine 
> the power of local
> resources and data with the reach of the web. Download the 
> Adobe AIR SDK and
> Ajax docs to start building applications 
> today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to