Skip to content

Instantly share code, notes, and snippets.

@aschweer
Created November 24, 2011 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aschweer/1392187 to your computer and use it in GitHub Desktop.
Save aschweer/1392187 to your computer and use it in GitHub Desktop.
Adding an additional sidebar menu to DSpace XMLUI
<?xml version="1.0" encoding="UTF-8" ?>
<document xmlns="http://di.tamu.edu/DRI/1.0/" xmlns:i18n="http://apache.org/cocoon/i18n/2.1" version="1.1">
<body/>
<options>
<list id="extra.menu.help" n="help">
<head>Help</head>
<item>
<xref target="(some link)">(some text)</xref>
</item>
<list id="extra.menu.help.authorhelp" n="authorhelp">
<head>For authors</head>
<item>
<xref target="(some link)">(some text)</xref>
</item>
</list>
</list>
</options>
<meta/>
</document>
<?xml version="1.0"?>
<!--
Add menu to sidebar from file
Andrea Schweer <schweer@waikato.ac.nz>
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
<map:pipeline>
<map:generate/>
<map:act type="DSpacePropertyFileReader">
<map:parameter name="dspace.dir" value="dspace.dir" />
<map:transform type="Include" src="file://{dspace.dir}/config/sidebar-menu.xml" />
</map:act>
<map:serialize type="xml"/>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment