Hi, I'm dotting an 'i' with this message... I have found that the
approach detailed here:

http://www.mail-archive.com/[email protected]/msg04894.h
tml

works splendidly for serving static DRI pages (like a help page, an
about page, etc.). All that's required is adding the code from the
message above, to an overlay of the ArtifactBrowser/sitemap.xmap. More
info on how to set up an aspect overlay can be found in Tim Donohue's
presentation 

http://www.dspace.org/images/Training_Materials/or2008-1.5training.pdf

and in our exchange on the topic from earlier today.

I did tweak the sitemap.xmap code a tiny bit, from that message, so I'm
including it here, in case it helps anyone. I put this snippet of code
after the chunk that deals with the feedback form.

<!--
        Shoehorn in static pages, like help, about, etc.
        -->
<map:match pattern="pages/**">
        <map:act type="DSpacePropertyFileReader">
                <map:parameter name="dspace.dir" value="dspace.dir" />
                <map:transform type="Include"
src="file://{dspace.dir}/config/pages/{../1}.xml" />
        </map:act>
        <map:serialize type="xml"/>
</map:match>

Then, just link to [dspace.url]/pages/your_page

and the contents of

[dspace.dir]/config/pages/your_page.xml will be transformed and
displayed for you. Hooray!

Here's an example of the DRI, from our about.xml:

<document xmlns="http://di.tamu.edu/DRI/1.0/";
xmlns:i18n="http://apache.org/cocoon/i18n/2.1"; version="1.1">

<body>
<div id="file.news.div.news" n="news" rend="primary">
<head>About Our Repository</head>
<p>As soon as we're sure this is working, this will serve as an
introduction to Our Repository.</p>
</div>
</body>

<meta>
<pageMeta>
<metadata element="title">About Our Repository</metadata>
<trail target="/xmlui">Repository Home</trail>
</pageMeta>
</meta>

</document>

HTH

--Hardy  

> -----Original Message-----
> From: Dorothea Salo [mailto:[email protected]] 
> Sent: Wednesday, February 18, 2009 2:34 PM
> To: Dspace Tech
> Subject: Re: [Dspace-tech] adding static pages to a DSpace 
> site using xmlui
> 
> On Wed, Feb 18, 2009 at 2:13 PM, Pottinger, Hardy J.
> <[email protected]> wrote:
> 
> > At your suggestion, I have tried substituting 
> <xsl:apply-templates /> in
> > place of <xsl:copy-of />, again with multiple permutations 
> of path. This
> > also does not appear to work.
> 
> Then it's probably not finding the relative location. Try 
> doing an absolute URL.
> 
> > The more I think about it, this whole business of shoehorning static
> > code at this level seems wrong. I am going to see if I can 
> spelunk my
> > way through figuring out the cocoon-based method. Ideally, what's
> > required here is an aspect which would accommodate 
> displaying any number
> > of static DRI files.
> 
> Yes, I asked for this awhile ago. :)
> 
> Dorothea
> 
> -- 
> Dorothea Salo                [email protected]
> Digital Repository Librarian      AIM: mindsatuw
> University of Wisconsin
> Rm 218, Memorial Library
> (608) 262-5493
> 
> --------------------------------------------------------------
> ----------------
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to