Index: /documented-examples/trunk/lomdemo-e/etc/collectionConfig.xml
===================================================================
--- /documented-examples/trunk/lomdemo-e/etc/collectionConfig.xml	(revision 36291)
+++ /documented-examples/trunk/lomdemo-e/etc/collectionConfig.xml	(revision 36292)
@@ -8,5 +8,6 @@
 	<displayItemList>
 		<displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
-		<displayItem assigned="true" lang="en" name="name">LOM Demonstration</displayItem>		
+		<displayItem assigned="true" lang="en" name="name">LOM Demonstration</displayItem>
+		<displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
 		<displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
 		<displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
@@ -21,5 +22,12 @@
 		<displayItem assigned="true" dictionary="collectionConfig" key=".general^keyword" name=".general^keyword"/>
 	</displayItemList>
-	<format/>
+	<format>  <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/lom-style.css" rel="stylesheet" type="text/css"/>
+    <script src="{$httpCollection}/script/lomscript.js" type="text/javascript">    </script>  </xsl:template>
+
+</format>
 	<search type="mgpp">
 		<level name="document"/>
@@ -57,5 +65,11 @@
 		<format>
 			<gsf:template match="documentNode">
-				<gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>]]></gsf:format-gs2>
+				<gsf:format-gs2><![CDATA[
+<td>[link][icon][/link]
+</td>
+<td>{If}{[numleafdocs],([numleafdocs])}
+</td>
+<td>{OR}{[general^title],[Title]}
+</td>]]></gsf:format-gs2>
 				<td>
 					<gsf:link type="document">
@@ -116,5 +130,11 @@
 		<format>
 			<gsf:template match="documentNode">
-				<gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>]]></gsf:format-gs2>
+				<gsf:format-gs2><![CDATA[
+<td>[link][icon][/link]
+</td>
+<td>{If}{[numleafdocs],([numleafdocs])}
+</td>
+<td>{OR}{[general^title],[Title]}
+</td>]]></gsf:format-gs2>
 				<td>
 					<gsf:link type="document">
@@ -131,5 +151,11 @@
 			</gsf:template>
 			<gsf:template match="classifierNode">
-				<gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>]]></gsf:format-gs2>
+				<gsf:format-gs2><![CDATA[
+<td>[link][icon][/link]
+</td>
+<td>{If}{[numleafdocs],([numleafdocs])}
+</td>
+<td>{OR}{[general^title],[Title]}
+</td>]]></gsf:format-gs2>
 				<td>
 					<gsf:link type="classifier">
@@ -156,12 +182,27 @@
 	</browse>
 	<display>
-		<format>
-			<gsf:option name="TOC" value="true"/>
-			<gsf:option name="AllowUserComments" value="false"/>
+		<format>  <gsf:option name="TOC" value="true"/>
+  <gsf:option name="AllowUserComments" value="false"/>
+  <gsf:template name="documentContent">
+    <div id="gs-document">
+      <xsl:call-template name="documentPre"/>
+      <xsl:call-template name="wrappedSectionImage"/>
+      <div id="gs-document-text">
+        <gsf:metadata name="MetadataTable"/>
+<!--
+<xsl:call-template name="documentNodeText"/>
+-->
+      </div>
+    </div>
+  </gsf:template>
 <!--
 Overwriting this template allows you to change the heading of the document.
 -->
 <!--
-<gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
+<gsf:template name="documentHeading">
+<span style="font-weight:bold; font-size: 120%;">
+<xsl:call-template name="choose-title"/>
+</span>
+</gsf:template>
 -->
 <!--
@@ -169,5 +210,13 @@
 -->
 <!--
-<gsf:template name="documentContent"><div id="gs-document"><xsl:call-template name="documentPre"/><xsl:call-template name="wrappedSectionImage"/><div id="gs-document-text"><xsl:call-template name="documentNodeText"/></div></gsf:template>
+<gsf:template name="documentContent">
+<div id="gs-document">
+<xsl:call-template name="documentPre"/>
+<xsl:call-template name="wrappedSectionImage"/>
+<div id="gs-document-text">
+<xsl:call-template name="documentNodeText"/>
+</div>
+</div>
+</gsf:template>
 -->
 <!--
@@ -175,5 +224,7 @@
 -->
 <!--
-<gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
+<gsf:template name="sectionHeading">
+<xsl:call-template name="choose-title"/>
+</gsf:template>
 -->
 <!--
@@ -181,5 +232,8 @@
 -->
 <!--
-<gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
+<gsf:template name="topLevelSectionContent">
+<xsl:call-template name="wrappedSectionImage"/>
+<xsl:call-template name="wrappedSectionText"/>
+</gsf:template>
 -->
 <!--
@@ -187,7 +241,11 @@
 -->
 <!--
-<gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
--->
-		</format>
+<gsf:template name="sectionContent">
+<xsl:call-template name="wrappedSectionImage"/>
+<xsl:call-template name="wrappedSectionText"/>
+</gsf:template>
+-->
+
+</format>
 	</display>
 	<replaceListRef id="gs2-standard"/>
Index: /documented-examples/trunk/lomdemo-e/script/lomscript.js
===================================================================
--- /documented-examples/trunk/lomdemo-e/script/lomscript.js	(revision 36292)
+++ /documented-examples/trunk/lomdemo-e/script/lomscript.js	(revision 36292)
@@ -0,0 +1,58 @@
+/*
+function openWindow(url) {
+
+  window.open(url,"berry","width=400,height=300,toolbar=no");
+
+}
+*/
+
+var parenttbody = new Array();
+var tbody       = new Array();
+var aftertbody  = new Array();
+
+
+function showTBodyArea(category) {
+	console.log("In showTBodyArea");
+	
+	parenttbody[category].insertBefore(tbody[category],aftertbody[category]);
+        //document[category+"openclose"].src="_httpopenmdicon_";
+
+        var imgname  = category+"openclose";
+        var linkname = category+"opencloselink";
+
+	var imgel = document.getElementById(imgname);
+	//imgel.setAttribute("src","sites/localsite/collect/lomdemo-e/images/open.gif");
+	imgel.setAttribute("src",imgel.getAttribute("data-img-path")+"open.gif");
+
+	var linkel = document.getElementById(linkname);
+	linkel.setAttribute("href","javascript:hideTBodyArea('"+category+"')");
+
+        //document.links[category+"opencloselink"].href
+	//  ="javascript:hideTBodyArea('"+category+"')";
+}
+
+function hideTBodyArea(category) {
+	console.log("In hideTBodyArea");
+        tbody[category] = document.getElementById(category);
+        parenttbody[category] = tbody[category].parentNode;
+        aftertbody[category] = tbody[category].nextSibling;
+        parenttbody[category].removeChild(tbody[category]);
+
+        var imgname  = category+"openclose";
+        var linkname = category+"opencloselink";
+
+	// alert("document link lookup 3 = " + document.links[linkname]);
+
+	var imgel = document.getElementById(imgname);
+	//imgel.setAttribute("src","sites/localsite/collect/lomdemo-e/images/close.gif");
+	imgel.setAttribute("src",imgel.getAttribute("data-img-path")+"close.gif");
+
+        // document[category+"openclose"].src="_httpclosemdicon_";
+
+	var linkel = document.getElementById(linkname);
+	linkel.setAttribute("href","javascript:showTBodyArea('"+category+"')");
+
+        //document.links[category+"opencloselink"].href
+	//  ="javascript:showTBodyArea('"+category+"')";
+}
+
Index: /documented-examples/trunk/lomdemo-e/style/lom-style.css
===================================================================
--- /documented-examples/trunk/lomdemo-e/style/lom-style.css	(revision 36292)
+++ /documented-examples/trunk/lomdemo-e/style/lom-style.css	(revision 36292)
@@ -0,0 +1,65 @@
+:root {
+  --mdtabtabbg : #f0fff0;
+}
+
+
+.mdtexttab {width: 100px;
+	text-align: center;
+	border-left:  1px solid black; 
+	border-top:   1px solid black; 
+	border-right: 1px solid black;
+}
+
+.mdtabdip {width: 10px;
+	border-bottom: 1px solid black; 
+	background-color: white;
+}
+
+.mdtabblank {width: 100px;
+	border-bottom: 1px solid black; 
+	background-color: white;
+}
+
+.mdtabfill {
+	border-bottom: 1px solid black; 
+	background-color: white;
+}
+
+.mdhreftab {width: 100px; 
+	text-align: center;
+	border-left:  1px solid black; 
+	border-top:   1px solid black; 
+	border-right: 1px solid black;
+}
+
+
+table.metadata
+{ 
+border-spacing: 0px
+} 
+
+
+tr.metadata
+{ 
+text-align: left;
+background-color: #f0f0f0;
+}   
+
+td.metadata
+{ 
+background-color: #f0fff0;
+border-top:  2pt solid white;
+padding: 2pt;
+}
+
+th.metadata
+{ 
+border-top:  2pt solid white;
+padding: 2pt;
+}
+
+a.mdtablink:active  { color: #dfb060; text-decoration: none; }
+a.mdtablink:visited { color: #dfb060; text-decoration: none; }
+a.mdtablink:link    { color: #dfb060; text-decoration: none; }
+a.mdtablink:hover   { color: #9f7030; text-decoration: none; }
+
Index: /documented-examples/trunk/lomdemo-e/transform/pages/document.xsl
===================================================================
--- /documented-examples/trunk/lomdemo-e/transform/pages/document.xsl	(revision 36292)
+++ /documented-examples/trunk/lomdemo-e/transform/pages/document.xsl	(revision 36292)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	xmlns:java="http://xml.apache.org/xslt/java"
+	xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
+	xmlns:gslib="http://www.greenstone.org/skinning"
+	xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
+	extension-element-prefixes="java util"
+	exclude-result-prefixes="java util gsf">
+
+	
+	<xsl:template name="documentNodeText">
+		
+	  <xsl:param name="force">0</xsl:param>
+		<!-- Hides the "This document has no text." message -->
+		<xsl:variable name="noText"><gsf:metadata name="NoText"/></xsl:variable>
+		<xsl:choose>
+		<xsl:when test="$force = '1' or not($noText = '1')">
+
+			<!-- Section text -->
+			<xsl:for-each select="nodeContent">
+			  <!--<xsl:call-template name="displayMarkedUpTextAndAnnotations"/>-->
+			  MIAO
+			  <!-- https://stackoverflow.com/questions/2463155/how-to-unescape-xml-characters-with-help-of-xslt -->
+			  <!--<xsl:value-of select="." disable-output-escaping="yes" />-->
+			  <xsl:variable name="lomxml"><xsl:value-of select="." disable-output-escaping="yes" /></xsl:variable>
+			  <!--<xsl:apply-templates select="$lomxml"/>-->
+			  <xsl:value-of select="$lomxml"/>
+			</xsl:for-each>
+		</xsl:when>
+		<xsl:when test="$noText = '1' and not(metadataList/metadata[@name='ImageType'])">
+			<gsf:link type="source"><gsf:metadata name="Source"/></gsf:link>
+		</xsl:when>
+		</xsl:choose>
+		<xsl:text> </xsl:text>
+	</xsl:template>
+	
+	
+	<xsl:template match="*">
+	  <xsl:value-of select="."/>
+	</xsl:template>
+
+</xsl:stylesheet>  
+
Index: /documented-examples/trunk/siteConfig.xml
===================================================================
--- /documented-examples/trunk/siteConfig.xml	(revision 36292)
+++ /documented-examples/trunk/siteConfig.xml	(revision 36292)
@@ -0,0 +1,112 @@
+<siteConfig xmlns:gsf='http://www.greenstone.org/greenstone3/schema/ConfigFormat' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
+  <metadataList xmlns:gsf="http://www.greenstone.org/greenstone3/schema/MetadataFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <metadata name="siteAdmin">admin@example.com</metadata>
+    <!--<metadata name="siteURL">http://www.greenstone.org/greenstone3/</metadata>-->
+  </metadataList>
+  <displayItemList>
+    <displayItem name="siteName" lang="en">My Greenstone Library</displayItem>
+    <displayItem name="siteName" key="siteName" dictionary="siteConfig"/>
+    <displayItem name="siteDescription" lang="en">This is a digital library built using the open-source Greenstone Digital Library software, version 3. Edit the site name and description in web/sites/localsite/siteConfig.xml or web/sites/localsite/resources/siteConfig_xx.properties.</displayItem>
+    <displayItem name="siteDescription" key="siteDescription" dictionary="siteConfig"/>
+  </displayItemList>
+  <siteList/>
+  <format>
+    <paramDefault name="favouritebasket" value="on"/>
+  </format>
+  <serviceRackList>
+   <!--Provides the Authentication service -->
+    <serviceRack name='Authentication'>
+      <!-- Go to https://www.google.com/recaptcha/admin and replace these testing keys when you deploy your site -->
+    <recaptcha name="site_key" value="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"/>
+    <recaptcha name="secret_key" value="6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"/>
+    <!-- this determines which operations to add recaptcha to. Choose from Register, AddUser, EditUser, AccountSettings -->
+    <recaptcha name="operations" value="Register,AddUser"/>
+    </serviceRack>
+    <serviceRack name="ArchiveIO"/>
+    <serviceRack name="CollectionGroups"/>
+    <serviceRack name="DocumentMaker"/>
+    <serviceRack name="DocXMLUtil"/>
+    <serviceRack name="DocumentBasket"/>
+    <!-- This provides the functionality for 'favourites' - the ability to store a list of documents you are interested in. This is activated for a servlet by setting the 'favouritebasket' servlet init-param to 'true'-->
+    <serviceRack name="FavouriteBasket"/>
+    <serviceRack name="GS2Construct"/>
+    <serviceRack name="DebugService"/>
+    <serviceRack name="UserTracker"/>
+    <serviceRack name="CrossCollectionSearch">
+      <format>
+	<!-- this format is used for the search results -->
+	<gsf:template match="documentNode">
+	  <xsl:variable name="collname" select="@collection"/>
+	  <td><gsf:if-metadata-exists><gsf:metadata name="srclinkFile"/><gsf:if><a><xsl:attribute name='href'><xsl:value-of select="$library_name"/>/sites/localsite/collect/<xsl:value-of select='@collection'/>/index/assoc/<gsf:metadata name="root_assocfilepath"/>/<gsf:metadata name="srclinkFile"/></xsl:attribute><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></a></gsf:if></gsf:if-metadata-exists></td>
+	  <td><a><xsl:attribute name='href'><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select='@collection'/>/document/<xsl:value-of select='@nodeID'/><xsl:if test="$opt-doc-link-args">?<xsl:value-of select="$opt-doc-link-args"/></xsl:if></xsl:attribute><gsf:icon/></a></td>
+	  <td><gsf:metadata name='Title'/></td>
+	  <td><a href='{$library_name}/collection/{$collname}/page/about'><xsl:value-of select="/page/pageResponse/service/paramList/param[@name='collection']/option[@name=$collname]/displayItem[@name='name']"/> </a></td>
+	</gsf:template>
+      </format>
+    <!-- uncomment to provide the GATE tagging service -->	
+    <!--<serviceRack name="GATEServices"/>-->
+     </serviceRack>
+  </serviceRackList>
+  <serviceClusterList/>
+  <!-- this is a global replace list for all collections. At this stage it only applies to greenstone 2 collections. It will attempt to resolve most of the common macros that appear in metadata. You can add more items here if you want them to apply to all collections. To turn this on/off for a particular collection, add <replaceListRef id='xx'/> into the collectionConfig for each set that you want to use -->
+  <!-- replace elements can look like: 
+       <replace macro="original text" scope="text|metadata|all" text="replacement text"/>
+       <replace macro="original text" scope="text|metadata|all" metadata="metadata element value to replace with"/>
+       <replace macro="original text" scope="text|metadata|all" key="dictionary key" bundle="dictionary name"/> -->
+  <replaceList  id="gs2-standard">
+    <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
+	<replace macro="_icondocx_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>     
+    <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/>
+    <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/>
+	
+	<!-- For lomdemo-e collection -->
+	<replace macro="_httpopenmdicon_" scope="metadata" text="sites/localsite/collect/lomdemo-e/images/open.gif&quot; data-img-path=&quot;sites/localsite/collect/lomdemo-e/images/" resolve="false"/>
+	<replace macro="_httpclosemdicon_" scope="metadata" text="sites/localsite/collect/lomdemo-e/images/close.gif&quot; data-img-path=&quot;sites/localsite/collect/lomdemo-e/images/" resolve="false"/>
+
+    <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/>
+    <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/>
+    <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/>
+    <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/>
+    <!-- _httpsite_ and _clustername_ are macros that are defined in the java code -->
+    <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/>
+    <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/>
+    <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/>
+    <replace macro="_httpsamepagelink_" scope="text" text="_libraryname_/collection/_clustername_/document/[DocOID]" resolve="true"/>
+    <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/>
+    <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/>
+  </replaceList>
+  <replaceList id="gs2-image"> 
+    <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/> 
+    <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/> 
+    <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/> 
+    <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/> 
+    <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/> 
+    <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/> 
+    <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/> 
+  </replaceList>
+  <replaceList id="gs2-months">
+    <replace macro="_textmonth00_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth00"/>
+    <replace macro="_textmonth01_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth01"/>
+    <replace macro="_textmonth02_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth02"/>
+    <replace macro="_textmonth03_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth03"/>
+    <replace macro="_textmonth04_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth04"/>
+    <replace macro="_textmonth05_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth05"/>
+    <replace macro="_textmonth06_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth06"/>
+    <replace macro="_textmonth07_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth07"/>
+    <replace macro="_textmonth08_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth08"/>
+    <replace macro="_textmonth09_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth09"/>
+    <replace macro="_textmonth10_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth10"/>
+    <replace macro="_textmonth11_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth11"/>
+    <replace macro="_textmonth12_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth12"/>
+    <replace bundle="interface_default" key="num" macro="_num_" resolve="false" scope="metadata"/>
+  </replaceList>
+</siteConfig>
Index: /documented-examples/trunk/wiki-e/etc/collectionConfig.xml
===================================================================
--- /documented-examples/trunk/wiki-e/etc/collectionConfig.xml	(revision 36292)
+++ /documented-examples/trunk/wiki-e/etc/collectionConfig.xml	(revision 36292)
@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<metadataList>
+		<metadata lang="en" name="creator">greenstone@cs.waikato.ac.nz</metadata>
+		<metadata lang="en" name="maintainer"/>
+		<metadata lang="en" name="public">true</metadata>
+	</metadataList>
+	<displayItemList>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description" name="description"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
+		<displayItem assigned="true" lang="en" name="name">MediaWiki collection</displayItem>
+		<displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description5"/>
+	</displayItemList>
+	<format/>
+	<search type="mgpp">
+		<level name="document"/>
+		<defaultLevel name="document"/>
+		<index name="Source">
+			<displayItem lang="en" name="name">Source</displayItem>
+		</index>
+		<index name="Title">
+			<displayItem lang="en" name="name">Title</displayItem>
+		</index>
+		<index name="text">
+			<displayItem lang="en" name="name">text</displayItem>
+		</index>
+		<defaultIndex name="text"/>
+		<indexOption name="casefold"/>
+		<indexOption name="stem"/>
+		<searchType name="plain"/>
+		<searchType name="simpleform"/>
+		<searchType name="advancedform"/>
+		<format>
+			<gsf:template match="documentNode">
+				<gsf:format-gs2><![CDATA[
+<td valign="top">[link][icon][/link]
+</td>
+<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
+</td>
+<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
+<br>
+<i>([ex.Source])
+</i>}
+</td>]]></gsf:format-gs2>
+				<td valign="top">
+					<gsf:link type="document">
+						<gsf:icon type="document"/>
+					</gsf:link>
+				</td>
+				<td valign="top">
+					<gsf:link type="source">
+						<gsf:choose-metadata>
+							<gsf:metadata name="thumbicon"/>
+							<gsf:metadata name="srcicon"/>
+						</gsf:choose-metadata>
+					</gsf:link>
+				</td>
+				<td valign="top">
+					<span class="highlight">
+						<gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
+					</span>
+					<gsf:switch>
+						<gsf:metadata name="Source"/>
+						<gsf:when test="exists">
+							<br/>
+							<i>(<gsf:metadata name="Source"/>)</i>
+						</gsf:when>
+					</gsf:switch>
+				</td>
+			</gsf:template>
+		</format>
+	</search>
+	<infodb type="gdbm"/>
+	<import>
+		<pluginList>
+			<plugin name="GreenstoneXMLPlugin"/>
+			<plugin name="PDFv1Plugin">
+				<option name="-convert_to" value="html"/>
+			</plugin>
+			<plugin name="WordPlugin"/>
+			<plugin name="NulPlugin"/>
+			<plugin name="MediaWikiPlugin">
+				<option name="-show_toc"/>
+				<option name="-toc_exp" value="&lt;table([^>]*)id=(\&quot;|')toc(\&quot;|')(.|\n)*?&lt;/table>\n"/>
+				<option name="-delete_nav"/>
+				<option name="-nav_div_exp" value="&lt;div([^>]*)id=(\&quot;|')p-navigation(\&quot;|')(.|\n)*?&lt;/div>"/>
+				<option name="-searchbox_div_exp" value="&lt;div([^>]*)id=(\&quot;|')p-search(\&quot;|')(.|\n)*?&lt;/div>"/>
+				<option name="-delete_toc"/>
+				<option name="-remove_title_suffix_exp" value=" - (.*)"/>
+			</plugin>
+			<plugin name="MetadataXMLPlugin"/>
+			<plugin name="ArchivesInfPlugin"/>
+			<plugin name="DirectoryPlugin"/>
+		</pluginList>
+	</import>
+	<browse>
+		<classifier name="AZList">
+			<option name="-metadata" value="Title"/>
+		</classifier>
+		<classifier name="AZList">
+			<option name="-metadata" value="Source"/>
+		</classifier>
+		<format>
+			<gsf:template match="documentNode">
+				<gsf:format-gs2><![CDATA[
+<td valign="top">[link][icon][/link]
+</td>
+<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
+</td>
+<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
+<br>
+<i>([ex.Source])
+</i>}
+</td>]]></gsf:format-gs2>
+				<td valign="top">
+					<gsf:link type="document">
+						<gsf:icon type="document"/>
+					</gsf:link>
+				</td>
+				<td valign="top">
+					<gsf:link type="source">
+						<gsf:choose-metadata>
+							<gsf:metadata name="thumbicon"/>
+							<gsf:metadata name="srcicon"/>
+						</gsf:choose-metadata>
+					</gsf:link>
+				</td>
+				<td valign="top">
+					<span class="highlight">
+						<gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
+					</span>
+					<gsf:switch>
+						<gsf:metadata name="Source"/>
+						<gsf:when test="exists">
+							<br/>
+							<i>(<gsf:metadata name="Source"/>)</i>
+						</gsf:when>
+					</gsf:switch>
+				</td>
+			</gsf:template>
+			<gsf:template match="classifierNode">
+				<gsf:format-gs2><![CDATA[
+<td valign="top">[link][icon][/link]
+</td>
+<td valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
+</td>
+<td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],
+<br>
+<i>([ex.Source])
+</i>}
+</td>]]></gsf:format-gs2>
+				<td valign="top">
+					<gsf:link type="classifier">
+						<gsf:icon type="classifier"/>
+					</gsf:link>
+				</td>
+				<td valign="top">
+					<gsf:link type="source">
+						<gsf:choose-metadata>
+							<gsf:metadata name="thumbicon"/>
+							<gsf:metadata name="srcicon"/>
+						</gsf:choose-metadata>
+					</gsf:link>
+				</td>
+				<td valign="top">
+					<span class="highlight">
+						<gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/>Untitled</gsf:choose-metadata>
+					</span>
+					<gsf:switch>
+						<gsf:metadata name="Source"/>
+						<gsf:when test="exists">
+							<br/>
+							<i>(<gsf:metadata name="Source"/>)</i>
+						</gsf:when>
+					</gsf:switch>
+				</td>
+			</gsf:template>
+			<gsf:template match="classifierNode[@classifierStyle = 'HList']">
+				<gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
+				<gsf:link style="static" type="classifier">
+					<span class="highlight">
+						<gsf:metadata name="Title"/>
+					</span>
+				</gsf:link>
+			</gsf:template>
+		</format>
+	</browse>
+	<display>
+		<format>
+			<gsf:option name="TOC" value="true"/>
+			<gsf:option name="AllowUserComments" value="false"/>
+<!--
+Overwriting this template allows you to change the heading of the document.
+-->
+<!--
+<gsf:template name="documentHeading">
+<span style="font-weight:bold; font-size: 120%;">
+<xsl:call-template name="choose-title"/>
+</span>
+</gsf:template>
+-->
+<!--
+Overwriting this template can be used to redefine the content of the whole document.This is useful for simple documents, but not recommended for more complex documents(e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
+-->
+<!--
+<gsf:template name="documentContent">
+<div id="gs-document">
+<xsl:call-template name="documentPre"/>
+<xsl:call-template name="wrappedSectionImage"/>
+<div id="gs-document-text">
+<xsl:call-template name="documentNodeText"/>
+</div>
+</gsf:template>
+-->
+<!--
+Overwriting this template can be used to change the content of section headings.
+-->
+<!--
+<gsf:template name="sectionHeading">
+<xsl:call-template name="choose-title"/>
+</gsf:template>
+-->
+<!--
+Overwriting this template can be used to change the content of the top-level section.
+-->
+<!--
+<gsf:template name="topLevelSectionContent">
+<xsl:call-template name="wrappedSectionImage"/>
+<xsl:call-template name="wrappedSectionText"/>
+</gsf:template>
+-->
+<!--
+Overwriting this template can be used to change the content of sections.
+-->
+<!--
+<gsf:template name="sectionContent">
+<xsl:call-template name="wrappedSectionImage"/>
+<xsl:call-template name="wrappedSectionText"/>
+</gsf:template>
+-->
+		</format>
+	</display>
+	<replaceListRef id="gs2-standard"/>
+</CollectionConfig>
Index: /documented-examples/trunk/wiki-e/resources/collectionConfig.properties
===================================================================
--- /documented-examples/trunk/wiki-e/resources/collectionConfig.properties	(revision 36292)
+++ /documented-examples/trunk/wiki-e/resources/collectionConfig.properties	(revision 36292)
@@ -0,0 +1,16 @@
+name=MediaWiki collection
+.Title=Titles
+.text=Text
+.Source=Filenames
+
+
+shortDescription=<p>This demonstration collection is made from the Greenstone Wiki website. It shows off the new feature of building a Greenstone collection from a MediaWiki website in Greestone.</p>
+
+description1=<h3>How the collection works</h3><p>The <a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">collection configuration file</a> contains the plugins <i>MediaWikiPlugin</i>, <i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i>, <i>WordPlugin</i> (along with the standard plugins <i>GreenstoneXMLPlugin</i>, <i>ArchivesInfPlugin</i> and <i>DirectoryPlugin</i>). The <i>MediaWikiPlugin</i> handles the HTML pages downloaded from a MediaWiki website, while <i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i> and <i>WordPlugin</i> handle the image, zip, PDF, PowerPoint and Word files associated with the Greenstone Wiki.</p>
+
+description2=<p>To build a collection from a MediaWiki website, first download the wiki files using the <i>MediaWiki</i> option on the <i>Download</i> panel of GLI. This download type works in a similar way to a the <i>Web</i> download, but is specially designed for crawling MediaWiki websites.</p>
+
+description3=<p>Once the files are downloaded, copy them into a collection using the <i>Gather</i>, dragging them from the <i>Downloaded Files</i> folder in the Workspace tree on the left-hand side.</p>
+
+description4=<p>In the <i>Document Plugins</i> section of the <i>Design</i> panel, add <i>MediaWikiPlugin</i>. <i>MediaWikiPlugin</i> 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 <a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">collection configuration file</a>.</p>
+
Index: /documented-examples/trunk/wiki-e/resources/collectionConfig_es.properties
===================================================================
--- /documented-examples/trunk/wiki-e/resources/collectionConfig_es.properties	(revision 36292)
+++ /documented-examples/trunk/wiki-e/resources/collectionConfig_es.properties	(revision 36292)
@@ -0,0 +1,15 @@
+name=ColecciÃ³n MediaWiki
+.Title=Titles
+.text=Text
+.Source=Filenames
+
+
+shortDescription=<p>Esta colecciÃ³n de demostraciÃ³n estÃ¡ hecha en base al sitio Wiki de Greenstone. Muestra la nueva caracterÃ­stica que permite la construcciÃ³n de una colecciÃ³n de Greenstone desde el sitio MediaWiki de Greenstone.</p>
+
+description1=<h3>CÃ³mo funciona la colecciÃ³n</h3><p>El <a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">archivo de configuraciÃ³n de la colecciÃ³n</a> contiene los plugins <i>MediaWikiPlugin</i>, <i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i>, <i>WordPlugin</i> (junto a los plugins estÃ¡ndar <i>GreenstoneXMLPlugin</i>, <i>ArchivesInfPlugin</i> y <i>DirectoryPlugin</i>). El <i>MediaWikiPlugin</i> manipula pÃ¡ginas HTML descargadas desde el sitio MediaWiki, mientras que <i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i> y <i>WordPlugin</i> manejan los archivos de imÃ¡genes, los zip, PDF, PowerPoint y Word asociados con la Wiki de Greenstone.</p>
+
+description2=<p>Para construir una colecciÃ³n desde el sitio MediaWiki, primero descargue los archivos del wiki usando la opciÃ³n <i>MediaWiki</i> en el panel <i>Descarga</i> del GLI. Este tipo de descarga funciona de manera similar a la descarga <i>Web</i>, pero estÃ¡ diseÃ±ado especÃ­ficamente para descargar sitios MediaWiki.</p>
+
+description3=<p>Una vez que los archivos fueron descargados, copielos en la colecciÃ³n usando el panel <i>Reunir</i>, arrastrÃ¡ndolos desde la carpeta <i>Archivos descargados</i> en el Ã¡rbol izquierdo del espacio de trabajo del GLI.</p>
+
+description4=<p>En la secciÃ³n <i>Plugins del documento</i> del panel <i>DiseÃ±o</i>, agregue <i>MediaWikiPlugin</i>. <i>MediaWikiPlugin</i> tiene varias opciones especÃ­ficas que controlan los aspectos de presentaciÃ³n de la pÃ¡gina, tales como si se deben mostrar o no la tabla de contenidos, las barras de navegaciÃ³n y el recuadro de bÃºsqueda en cada pÃ¡gina. Configure estas opciones basÃ¡ndose en cÃ³mo quiere que aparezcan esas pÃ¡ginas. Puede ver las opciones usadas por esta colecciÃ³n en su <a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">archivo de configuraciÃ³n de la colecciÃ³n</a>.</p>
Index: /documented-examples/trunk/wiki-e/resources/collectionConfig_fr.properties
===================================================================
--- /documented-examples/trunk/wiki-e/resources/collectionConfig_fr.properties	(revision 36292)
+++ /documented-examples/trunk/wiki-e/resources/collectionConfig_fr.properties	(revision 36292)
@@ -0,0 +1,15 @@
+name=Collection d'Ã©lÃ©ments au format MediaWiki
+.Title=Titles
+.text=Text
+.Source=Filenames
+
+
+shortDescription=<p>Cette collection de dÃ©monstration est constituÃ©e Ã  partir du site web du wiki Greenstone. Elle montre la nouvelle possibilitÃ© de crÃ©er une collection Greenstone Ã  partir d'un site web MediaWiki.</p>
+
+description1=<p><h3>Comment fonctionne la collection</h3>Le <a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">fichier de configuration de la collection</a> contient les plugiciels <i>MediaWikiPlugin</i>, <i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i>, <i>WordPlugin</i> (de mÃªme que les plugiciels standards <i>GreenstoneXMLPlugin</i>, <i>ArchivesInfPlugin</i> et <i>DirectoryPlugin</i>). Le plugiciel <i>MediaWikiPlugin</i> traite les pages HTML tÃ©lÃ©chargÃ©es Ã  partir d'un site MediaWiki, tandis que les plugiciels <i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i> et <i>WordPlugin</i> traitent les images, et les fichiers ZIP, PDF, PowerPoint et Word associÃ©s au Wiki Greenstone.</p>
+
+description2=<p>Pour construire une collection Ã  partir d'un site MediaWiki, il faut d'abord tÃ©lÃ©charger les fichiers du wiki en utilisant l'option <i>MediaWiki</i> du panneau <i>TÃ©lÃ©charger</i> du GLI. Ce type de tÃ©lÃ©chargement fonctionne d'une faÃ§on similaire au tÃ©lÃ©chargement <i>Web</i>, mais il est spÃ©cialement conÃ§u pour parcourir les sites MediaWiki.</p>
+
+description3=<p>Une fois que les fichiers sont tÃ©lÃ©chargÃ©s, il faut les copier dans une collection en utilisant l'onglet <i>Rassembler</i>, en les faisant glisser du dossier <i>Fichiers tÃ©lÃ©chargÃ©s</i> dans l'arborescence de l'espace de travail, situÃ© sur la gauche de l'Ã©cran.</p>
+
+description4=<p>Dans la section <i>Document Plugins</i> du panneau <i>Concevoir</i>, ajoutez le plugiciel <i>MediaWikiPlugin</i>. Le plugiciel <i>MediaWikiPlugin</i> a de nombreuses options spÃ©cifiques qui dÃ©terminent des aspects de la prÃ©sentation des pages, comme la prÃ©sence ou non d'une table des matiÃšres, l'affichage ou non de barres de navigation et de boÃ®tes de recherche sur chaque page. Configurez ces options en fonction de l'apparence que vous souhaitez pour vos pages. Vous pouvez voir les options utilisÃ©es par cette collection dans son <a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">fichier de configuration de collection</a>.</p>
Index: /documented-examples/trunk/wiki-e/resources/collectionConfig_ru.properties
===================================================================
--- /documented-examples/trunk/wiki-e/resources/collectionConfig_ru.properties	(revision 36292)
+++ /documented-examples/trunk/wiki-e/resources/collectionConfig_ru.properties	(revision 36292)
@@ -0,0 +1,24 @@
+name=ÐÑÐžÐŒÐµÑ MARC
+.Title=
+.text=
+.Source=
+sampleoid=D0s156
+
+shortDescription=<p>This collection, which contains _about:numdocs_ MARC entries, is based on the MARC records of working papers published by <a href="http://www.cs.waikato.ac.nz">Computer Science Department</a> at <a href="http://www.waikato.ac.nz">the University of Waikato</a>. <a href="?a=d&d=_sampleoid_">ÐÐŽÐµÑÑ</a> Ð¿ÑÐµÐŽÑÑÐ°Ð²Ð»ÐµÐœ ÑÐžÐ¿ÐŸÐ²ÐŸÐ¹ ÐŽÐŸÐºÑÐŒÐµÐœÑ ÐŽÐ°ÐœÐœÐŸÐ¹ ÐºÐŸÐ»Ð»ÐµÐºÑÐžÐž.</p>
+
+description1=<h3>ÐÐ°Ðº ÑÐ°Ð±ÐŸÑÐ°ÐµÑ ÐºÐŸÐ»Ð»ÐµÐºÑÐžÑ</h3><p><a href="_httpcollection_/etc/collect.cfg" target=collect.cfg>ÐÐŸÐœÑÐžÐ³ÑÑÐ°ÑÐžÐŸÐœÐœÑÐ¹ ÑÐ°Ð¹Ð»</a> ÐžÑÐ¿ÐŸÐ»ÑÐ·ÑÐµÑ Ð¿Ð»Ð°Ð³ÐžÐœÑ <i>ZIPPlug</i> Ðž <i>MARCPlug</i>, Ð¿ÐŸÐŒÐžÐŒÐŸ ÑÑÐµÑÑÐµÐ³ÐŸ ÑÑÐ°ÐœÐŽÐ°ÑÑÐ°. ÐÐŒÐµÑÑÑÑ ÑÑÐž ÐºÐ»Ð°ÑÑÐžÑÐžÐºÐ°ÑÐŸÑÐ°, ÐŸÑÐœÐŸÐ²Ð°ÐœÐœÑÐµ ÐœÐ° ÐŒÐµÑÐ°ÐŽÐ°ÐœÐœÑÑ
+ <i>ÐÐ°Ð·Ð²Ð°ÐœÐžÑ (dc.Title)</i>, <i>Ð¡ÐŸÐ·ÐŽÐ°ÑÐµÐ»Ñ (dc.Creator)</i> Ðž <i>ÐÑÐµÐŽÐŒÐµÑÐ° (dc.Subject)</i>. <!-- _text1_ -->The <i>dc.Title</i> classifier is an AZList, while the other two are AZCompactList, which groups items with the same metadata into a bookshelf. The <i>-removesuffix</i> argument for the <i>Title</i> and <i>Creator</i> classifiers removes suffixes from the metadata string (<i>dc.Title</i> and <i>dc.Creator</i> respectively). Ð­ÑÐŸ ÑÑÐµÐ±ÑÐµÑ ÑÑÑÐ°ÐœÐŸÐ²ÐºÐž PERL ÐŽÐ»Ñ Ð¿ÑÐ°Ð²ÐžÐ»ÑÐœÐŸÐ³ÐŸ Ð²ÑÑÐ°Ð¶ÐµÐœÐžÑ, Ðž ÑÑÐµÐ·Ð°ÐµÑ Ð·ÐœÐ°ÐºÐž (ÑÐžÐ¿Ð° ÐºÐŸÐœÐµÑÐœÑÑ
+ Ð·ÐœÐ°ÐºÐŸÐ² Ð¿ÑÐµÐ¿ÐžÐœÐ°ÐœÐžÑ) ÐžÐ· ÑÑÑÐŸÐºÐž ÐŽÐ»Ñ ÐŸÑÐŸÐ±ÑÐ°Ð¶ÐµÐœÐžÑ.</p>
+
+description2=<p><!-- _text2_ --> The <i>VList</i> format statement controls the display of search results and all classifiers. For bookshelves, the number of leaf documents is displayed on the right-hand side. For documents, <i>dc.Title</i> is displayed, along with <i>dc.Creator</i> and <i>dc.Publisher</i>. <i>[sibling:dc.Creator]</i> is used as dc.Creator has multiple values, and specifies that all values be output, not just the first one.</p>
+
+description3=<p>ÐÐ»Ð°Ð³ÐžÐœ MARC ÐžÑÐ¿ÐŸÐ»ÑÐ·ÑÐµÑ ÑÐ¿ÐµÑÐžÐ°Ð»ÑÐœÑÐ¹ ÑÐ°Ð¹Ð» ÐŽÐ»Ñ ÑÐŸÐ¿ÐŸÑÑÐ°Ð²Ð»ÐµÐœÐžÑ ÐœÐŸÐŒÐµÑÐ° Ð¿ÐŸÐ»Ñ Ð² MARC Ðž ÐŒÐµÑÐ°ÐŽÐ°ÐœÐœÑÑ
+ Greenstone. Ð­ÑÐŸÑ ÑÐ°Ð¹Ð» ÐœÐ°Ñ
+ÐŸÐŽÐžÑÑÑ Ð² ÐŽÐžÑÐµÐºÑÐŸÑÐžÐž <i>gsdl/etc</i> Ðž ÐœÐ°Ð·ÑÐ²Ð°ÐµÑÑÑ <a href="_httpsite_/etc/marc2dc.txt" target=marc2dc>marc2dc.txt</a>. ÐÐœ Ð¿ÑÐµÐŽÑÑÐ°Ð²Ð»ÑÐµÑ ÑÐ¿ÐžÑÐŸÐº ÑÐŸÐŸÑÐ²ÐµÑÑÑÐ²ÐžÑ ÐŒÐµÐ¶ÐŽÑ ÐœÐŸÐŒÐµÑÐ°ÐŒÐž Ð¿ÐŸÐ»ÐµÐ¹ ÑÐžÑÑÐµÐŒÑ MARC Ðž ÐŒÐµÑÐ°ÐŽÐ°ÐœÐœÑÐŒÐž Greenstone. ï¿œÑÐ±ÑÐµ Ð¿ÐŸÐ»Ñ MARC, ÐºÐŸÑÐŸÑÑÐµ ÐœÐµ Ð²ÐœÐµÑÐµÐœÑ Ð² ÑÐ¿ÐžÑÐŸÐº, Ð¿ÑÐŸÑÑÐŸ ÐœÐµ Ð¿ÐŸÑÐ²Ð»ÑÑÑÑÑ ÐºÐ°Ðº ÐŒÐµÑÐ°ÐŽÐ°ÐœÐœÑÐµ, Ñ
+ÐŸÑÑ ÐŸÐœÐž Ð¿ÑÐžÑÑÑÑÑÐ²ÑÑÑ Ð² ÐŽÐŸÐºÑÐŒÐµÐœÑÐµ Greenstone. ÐÐ°Ð¶ÐŽÐ°Ñ ÑÑÑÐŸÐºÐ° Ð² ÑÑÐŸÐŒ ÑÐ°Ð¹Ð»Ðµ ÐžÐŒÐµÐµÑ ÑÐ»ÐµÐŽÑÑÑÐžÐ¹ ÑÐŸÑÐŒÐ°Ñ.  <blockquote> &lt;MARC field number&gt; -&gt; GreenstoneMetadataName </blockquote> Ð¡ÑÑÐŸÐºÐž Ð² ÐŽÐ°ÐœÐœÐŸÐŒ ÑÐ°Ð¹Ð»Ðµ, ÐºÐŸÑÐŸÑÑÐµ ÐœÐ°ÑÐžÐœÐ°ÑÑÑÑ ÑÐŸ Ð·ÐœÐ°ÐºÐ° "\#", ÑÐ²Ð»ÑÑÑÑÑ ÐºÐŸÐŒÐŒÐµÐœÑÐ°ÑÐžÑÐŒÐž.</p>
+
+description4=<p>Ð¡ÑÐ°ÐœÐŽÐ°ÑÑÐœÐ°Ñ Ð²ÐµÑÑÐžÑ ÑÑÐŸÐ³ÐŸ ÑÐ°Ð¹Ð»Ð° ÑÐ²ÐŸÐ±ÐŸÐŽÐœÐŸ Ð±Ð°Ð·ÐžÑÑÐµÑÑÑ ÐœÐ° MARC Ð² ÐŸÐ¿ÐžÑÐ°ÐœÐžÐž Dublin Core, ÐºÐŸÑÐŸÑÐŸÐµ Ð²ÐŸÑÐ¿ÑÐžÐœÐžÐŒÐ°ÐµÑ USMARC/MARC21 Ðž ÐºÐŸÑÐŸÑÐŸÐµ ÐŒÐŸÐ¶ÐœÐŸ ÐœÐ°Ð¹ÑÐž ÐœÐ° <a href="http://www.loc.gov/marc/marc2dc.html">http://www.loc.gov/marc/marc2dc.html</a>.
+
+description5=<p>Multiple MARC fields may map to a single Dublin Core field. For example, fields 720 ("Uncontrolled name"), 100 ("Personal name"), 110 ("Corporate name") and 111 ("Meeting name") all map to <i>dc.Creator</i>. Actual MARC records normally define only one of these fields, and anyway Greenstone allows multi-valued metadata.</p>
+
+description6=<p>Some mappings are dependent on subfields. For example, MARC field 260 contains information about publication and distribution. Subfields "c" (Date of Publication) and "g" (Date of manufacture) are mapped to <i>dc.Date</i>, using the following mapping line: <blockquote> 260$c$g -&gt; dc.Date </blockquote>  Greenstone also provides a file for mapping MARC to <b>qualified</b> dublin core: <a href="_httpsite_/etc/marc2qdc.txt" target=marc2qdc>greenstone/etc/marc2qdc.txt</a>. This can be used by the MARC plugin by setting the <i>-metadata_mapping_file</i> option to "marc2qdc.txt".</p>
Index: /documented-examples/trunk/wiki-e/resources/collectionConfig_zh.properties
===================================================================
--- /documented-examples/trunk/wiki-e/resources/collectionConfig_zh.properties	(revision 36292)
+++ /documented-examples/trunk/wiki-e/resources/collectionConfig_zh.properties	(revision 36292)
@@ -0,0 +1,23 @@
+name=MediaWikiéŠè
+.Title=Titles
+.text=Text
+.Source=Filenames
+
+
+shortDescription=<p>æ¬æŒç€ºéŠèæå»ºäºGreenstoneç»Žåºçœç«ãå®æŒç€ºGreenstoneä»äžäžªMediaWikiçœç«äž­åå»ºéŠèçåèœã</p>
+
+description1=<p><h3>åŠäœåå»ºæ¬éŠè</h3>æ¬éŠèç<a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">é
+çœ®æä»¶</a>å
+å«åŠäžçæä»¶ïŒ <i>MediaWikiPlugin</i>ïŒ<i>ImagePlugin</i>ïŒ<i>ZipPlugin</i>ïŒ<i>PDFPlugin</i>ïŒ<i>PowerPointPlugin</i>ïŒ <i>WordPlugin</i>ïŒä»¥åæ åæä»¶<i>GreenstoneXMLPlugin</i>ïŒ<i>ArchivesInfPlugin</i>ä»¥å<i>DirectoryPlugin</i>ïŒã <i>MediaWikiPlugin</i>æä»¶å€çä»MediaWikiçœç«äžèœœçHTMLé¡µé¢ïŒè<i>ImagePlugin</i>ïŒ<i>ZipPlugin</i>ïŒ <i>PDFPlugin</i>ïŒ<i>PowerPointPlugin</i>ä»¥å<i>WordPlugin</i>å€çGreenstoneç»ŽåºéåžŠçåŸçïŒ zipïŒPDFïŒPowerPointä»¥åWordæä»¶ã</p>
+
+description2=<p>èŠä»äžäžªMediaWikiçœç«äž­åå»ºäžäžªéŠèïŒéŠå
+èŠçšGLI<i>äžèœœ</i>é¢æ¿äž­ç<i>MediaWiki</i>éé¡¹è¿è¡äžèœœã è¿äžªäžèœœç±»åäž<i>HTTP</i>äžèœœç±»äŒŒïŒäœäžéšéå¯¹MediaWikiçœç«ã</p>
+
+description3=<p>äžæŠæä»¶è¢«æåäžèœœïŒå°å
+¶å€å¶å°éŠèäž­ïŒå³åš<i>æ¶é</i>é¢æ¿äž­ïŒå°è¿äºææ¡£ä»å·ŠèŸ¹ç<i>äžèœœæä»¶</i>æä»¶å€¹äž­ææœè¿æ¥ã</p>
+
+description4=<p>åš<i>è®Ÿè®¡</i>é¢æ¿ç<i>ææ¡£æä»¶</i>éšåïŒæ·»å <i>MediaWikiPlugin</i>ã<i>MediaWikiPlugin</i>æå äžªçšäº æ§å¶é¡µé¢åç°æ ŒåŒçéé¡¹ïŒæ¯åŠæ¯åŠåšæ¯é¡µäžæŸç€ºå
+å®¹å€§çº²ãæµè§å·¥å
+·æ¡åæçŽ¢æ¡ãè¿äºéé¡¹çé
+çœ®åå³äºäœ ææ³èŠçé¡µé¢æŸç€ºæ ŒåŒã æ¬éŠèç<a href="_httpcollection_/etc/collect.cfg" target="collect.cfg">é
+çœ®æä»¶</a>æŸç€ºäºæ¬éŠèå¯¹è¿äºéé¡¹çè®Ÿçœ®ã
Index: /documented-examples/trunk/wiki-e/transform/pages/about.xsl
===================================================================
--- /documented-examples/trunk/wiki-e/transform/pages/about.xsl	(revision 36292)
+++ /documented-examples/trunk/wiki-e/transform/pages/about.xsl	(revision 36292)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
+	>	
+	
+	<xsl:template name="coll-description">
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='shortDescription']"/>
+	  
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description1']"/>
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description2']"/>
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description3']"/>
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description4']"/>	 
+	  
+	  
+	  <div class="section"><table id='toc' class='toc'><tr><td><div id='toctitle'><h2>Contents</h2></div>
+		<ul>
+		<li class='toclevel-1'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Documentation</xsl:attribute><span class="tocnumber">1</span> <span class="toctext">Documentation</span></a>
+		<ul>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Greenstone_FAQ</xsl:attribute><span class="tocnumber">1.1</span> <span class="toctext">Greenstone FAQ</span></a></li>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#General_Documentation</xsl:attribute><span class="tocnumber">1.2</span> <span class="toctext">General Documentation</span></a></li>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Greenstone3</xsl:attribute><span class="tocnumber">1.3</span> <span class="toctext">Greenstone3</span></a></li>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Tutorial_exercises</xsl:attribute><span class="tocnumber">1.4</span> <span class="toctext">Tutorial exercises</span></a></li>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Example_Collections</xsl:attribute><span class="tocnumber">1.5</span> <span class="toctext">Example Collections</span></a></li>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Manuals</xsl:attribute><span class="tocnumber">1.6</span> <span class="toctext">Manuals</span></a></li>
+		<li class='toclevel-2'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Greenstone_workshops</xsl:attribute><span class="tocnumber">1.7</span> <span class="toctext">Greenstone workshops</span></a></li>
+		</ul>
+		</li>
+		<li class='toclevel-1'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Internationalization</xsl:attribute><span class="tocnumber">2</span> <span class="toctext">Internationalization</span></a></li>
+		<li class='toclevel-1'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Greenstone_Development</xsl:attribute><span class="tocnumber">3</span> <span class="toctext">Greenstone Development</span></a></li>
+		<li class='toclevel-1'><a><xsl:attribute name='href'><gsf:collectionPath/>/document/greenstonewiki_cs_waikato_ac_nz-wiki-index_php-Main_Page_html#Other_links_for_Greenstone_users</xsl:attribute><span class="tocnumber">4</span> <span class="toctext">Other links for Greenstone users</span></a></li>
+		</ul>
+		</td></tr></table>
+	  </div>
+	  
+	</xsl:template>
+
+</xsl:stylesheet>  
+
