text:showcase:dls-e:description1a
The DLS collection is fairly complex. If you're just starting out you might prefer to look at some other collections first (e.g. Word and PDF demonstration, or the Greenstone Archives, or the Simple Image collection).
text:showcase:dls-e:description1bThe collection configuration file, collectionConfig.xml, like all collection configuration files, begins with the creator metadata element that gives the email address of the collection's creator, and another metadata ("public") that determines whether the collection will appear on the home page of the Greenstone installation. Note that setting "public" to "false" only removes it from the home page; it will still be accessible in the library to anyone that knows the URL to the collection.
<xsl:template name="additionalHeaderContent-collection">
<xsl:variable name="httpCollection">
<xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
</xsl:variable>
<link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"
title="GS3 Style" id="custom-style" charset="UTF-8"/>
<script src="{$httpCollection}/script/custom-script.js" type="text/javascript">
</script>
</xsl:template>
<xsl:template name="create-banner">
<div class="choose_style">
Choose a style:
<a href="#" onclick="replaceStyle('gs3-style-default-extra');return false;">Default Greenstone</a>,
<a href="#" onclick="replaceStyle('gs3-style-blue');return false;">Blue</a>,
<a href="#" onclick="replaceStyle('gs3-style-olive-purple');return false;">OlivePurple</a>,
<a href="#" onclick="replaceStyle('');return false;">None</a>
</div>
<div id="gs_banner" class="ui-widget-header ui-corner-bottom">
<div id="titlesearchcontainer">
<xsl:call-template name="page-title-area"/>
<xsl:call-template name="quick-search-area"/>
<div style="clear:both;"><xsl:text> </xsl:text></div>
</div>
<xsl:call-template name="browsing-tabs"/>
</div>
</xsl:template>
Plugins. The "plugin" lines in the collection configuration file give the plugins used by the collection. The documents in the DLS collection are in HTML, so HTMLPlugin must be included. The description_tags option processes tags in the text that define sections and section titles as described below.
The other plugins, GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin, and DirectoryPlugin, are used by Greenstone for internal purposes and are standard in almost all collections.
<xsl:template name="additionalHeaderContent">
<xsl:variable name="httpCollection">
<xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
</xsl:variable>
<link href="{$httpCollection}/style/stylesheet-name.css" rel="stylesheet" type="text/css"/>
</xsl:template>View this collection's configuration and other files: