text:showcase:wiki-e:choose-style text:showcase:wiki-e:style.default, text:showcase:wiki-e:style.blue, text:showcase:wiki-e:style.olive, text:showcase:wiki-e:style.none

CSS Demo


text:showcase:wiki-e:description1a

How the collection works

The collection configuration file, collectionConfig.xml, contains the plugins MediaWikiPlugin, ImagePlugin, ZipPlugin, PDFPlugin, PowerPointPlugin, WordPlugin (along with the standard plugins GreenstoneXMLPlugin, ArchivesInfPlugin and DirectoryPlugin). The MediaWikiPlugin handles the HTML pages downloaded from a MediaWiki website, while ImagePlugin, ZipPlugin, PDFPlugin, PowerPointPlugin and WordPlugin handle the image, zip, PDF, PowerPoint and Word files associated with the Greenstone Wiki.

text:showcase:wiki-e:description1b

To build a collection from a MediaWiki website of your choice, you would first download the wiki files using the MediaWiki option on the Download panel of GLI. This download type works in a similar way to a the Web download, but is specially designed for crawling MediaWiki websites.

  <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> 

Once the files are downloaded, copy them into a collection using the Gather, dragging them from the Downloaded Files folder in the Workspace tree on the left-hand side.

In the Document Plugins section of the Design panel, add MediaWikiPlugin. MediaWikiPlugin has several specific options which control aspects of page presentation, such as whether or not the table of contents, navigation toolbars and search box are shown on each page. Configure these options based on how you want the pages to appear. You can see the options used by this collection in its collection configuration file, collectionConfig.xml.

View this collection's configuration and other files: