Index: /documented-examples/trunk/marc-e/etc/collectionConfig.xml
===================================================================
--- /documented-examples/trunk/marc-e/etc/collectionConfig.xml	(revision 36275)
+++ /documented-examples/trunk/marc-e/etc/collectionConfig.xml	(revision 36275)
@@ -0,0 +1,177 @@
+<?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="name" name="name"/>
+		<displayItem assigned="true" lang="en" name="name">MARC example</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="description5" name="description5"/>
+		<displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
+	</displayItemList>
+	<format/>
+	<search type="mgpp">
+		<level name="document"/>
+		<defaultLevel name="document"/>
+		<index name="text">
+			<displayItem lang="en" name="name">text</displayItem>
+		</index>
+		<index name="dc.Title"/>
+		<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>[link][icon][/link]</td>
+<td>{If}{[numleafdocs],[Title],<b>[dc.Title]</b>{If}{[dc.Creator], [sibling:dc.Creator]}{If}{[dc.Publisher], <i>[dc.Publisher]</i>}}</td>{If}{[numleafdocs],<td><i>([numleafdocs])</i></td>}]]></gsf:format-gs2>
+				<td>
+					<gsf:link type="document">
+						<gsf:icon type="document"/>
+					</gsf:link>
+				</td>
+				<td>
+					<b>
+						<gsf:metadata name="dc.Title"/>
+					</b>
+					<gsf:switch>
+						<gsf:metadata name="dc.Creator"/>
+						<gsf:when test="exists">
+							<gsf:metadata name="dc.Creator"/>
+						</gsf:when>
+					</gsf:switch>
+					<gsf:switch>
+						<gsf:metadata name="dc.Publisher"/>
+						<gsf:when test="exists">
+							<i>
+								<gsf:metadata name="dc.Publisher"/>
+							</i>
+						</gsf:when>
+					</gsf:switch>
+				</td>
+			</gsf:template>
+		</format>
+	</search>
+	<infodb type="gdbm"/>
+	<import>
+		<pluginList>
+			<plugin name="GreenstoneXMLPlugin"/>
+			<plugin name="MARCPlugin">
+				<option name="-OIDtype" value="incremental"/>
+			</plugin>
+			<plugin name="MetadataXMLPlugin"/>
+			<plugin name="ArchivesInfPlugin"/>
+			<plugin name="DirectoryPlugin"/>
+		</pluginList>
+	</import>
+	<browse>
+		<classifier name="AZList">
+			<option name="-metadata" value="dc.Title"/>
+			<option name="-removesuffix" value="\\s*(\\/|;|,|\\.).*"/>
+		</classifier>
+		<classifier name="AZCompactList">
+			<option name="-metadata" value="dc.Creator"/>
+			<option name="-removesuffix" value="(b\\.\\s+)?(\\d+(\\-?))(\\d+(\\.)?)?"/>
+		</classifier>
+		<classifier name="AZCompactList">
+			<option name="-metadata" value="dc.Subject"/>
+		</classifier>
+		<format>
+			<gsf:template match="documentNode">
+				<gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td> <td>{If}{[numleafdocs],[Title],<b>[dc.Title]</b>{If}{[dc.Creator], [sibling:dc.Creator]}{If}{[dc.Publisher], <i>[dc.Publisher]</i>}}</td>{If}{[numleafdocs],<td><i>([numleafdocs])</i></td>}]]></gsf:format-gs2>
+				<td>
+					<gsf:link type="document">
+						<gsf:icon type="document"/>
+					</gsf:link>
+				</td>
+				<td>
+					<b>
+						<gsf:metadata name="dc.Title"/>
+					</b>
+					<gsf:switch>
+						<gsf:metadata name="dc.Creator"/>
+						<gsf:when test="exists">
+							<gsf:metadata name="dc.Creator"/>
+						</gsf:when>
+					</gsf:switch>
+					<gsf:switch>
+						<gsf:metadata name="dc.Publisher"/>
+						<gsf:when test="exists">
+							<i>
+								<gsf:metadata name="dc.Publisher"/>
+							</i>
+						</gsf:when>
+					</gsf:switch>
+				</td>
+			</gsf:template>
+			<gsf:template match="classifierNode">
+				<gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td> <td>{If}{[numleafdocs],[Title],<b>[dc.Title]</b>{If}{[dc.Creator], [sibling:dc.Creator]}{If}{[dc.Publisher], <i>[dc.Publisher]</i>}}</td>{If}{[numleafdocs],<td><i>([numleafdocs])</i></td>}]]></gsf:format-gs2>
+				<td>
+					<gsf:link type="classifier">
+						<gsf:icon type="classifier"/>
+					</gsf:link>
+				</td>
+				<td>
+					<gsf:metadata name="Title"/>
+				</td>
+				<td>
+					<i>(<gsf:metadata name="numleafdocs"/>)</i>
+				</td>
+			</gsf:template>
+			<gsf:template match="classifierNode" mode="horizontal">
+				<gsf:format-gs2><![CDATA[[link][highlight][ex.Title][/highlight][/link]]]></gsf:format-gs2>
+				<gsf:link 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/marc-e/resources/collectionConfig.properties
===================================================================
--- /documented-examples/trunk/marc-e/resources/collectionConfig.properties	(revision 36275)
+++ /documented-examples/trunk/marc-e/resources/collectionConfig.properties	(revision 36275)
@@ -0,0 +1,19 @@
+name=MARC example
+.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_">Here</a> is a sample document in the collection.</p>
+
+description1=<h3>How the collection works</h3><p>The <a href="_httpcollection_/etc/collect.cfg" target=collect.cfg>configuration file</a> uses <i>MARCPlugin</i> to process the MARC records, as well as the standard plugins. There are three classifiers, based on <i>dc.Title</i>, <i>dc.Creator</i>, and <i>dc.Subject</i> metadata. The <i>Title</i> classifier uses AZList, while the other two use 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). This is specified as a PERL regular expression, and trims characters (such as trailing punctuation) from the strings for display.</p>
+
+description2=<p>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>The MARC plugin uses a special file to map MARC field numbers to Greenstone-style metadata. This file resides in the <i>greenstone/etc</i> directory, and is called <a href="_httpsite_/etc/marc2dc.txt" target=marc2dc>marc2dc.txt</a>. It lists the correspondences between MARC field numbers and Greenstone metadata. Any MARC fields that are not listed simply do not appear as metadata, though they are still present in the Greenstone document. Each line in the file has the format <blockquote> &lt;MARC field number&gt; -&gt; GreenstoneMetadataName </blockquote> Lines in the file that begin with "\#" are comments.</p>
+
+description4=<p>The standard version of this file is loosely based on the MARC to Dublin Core mapping found at <a href="http://www.loc.gov/marc/marc2dc.html">http://www.loc.gov/marc/marc2dc.html</a> (which assumes USMARC/MARC21).</p>
+
+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/marc-e/resources/collectionConfig_es.properties
===================================================================
--- /documented-examples/trunk/marc-e/resources/collectionConfig_es.properties	(revision 36275)
+++ /documented-examples/trunk/marc-e/resources/collectionConfig_es.properties	(revision 36275)
@@ -0,0 +1,19 @@
+name=ColecciÃ³n de muestra MARC
+.Title=
+.text=
+.Source=
+sampleoid=D0s156
+
+shortDescription=<p>Esta colecciÃ³n, la cual contiene _about:numdocs_ registros MARC, estÃ¡ basada en registros MARC de papers de trabajo publicados por el <a href="http://www.cs.waikato.ac.nz">Departamento de Ciencias de la ComputaciÃ³n</a> de la <a href="http://www.waikato.ac.nz">Universidad de Waikato</a>. He <a href="?a=d&d=_sampleoid_">aquÃ­</a> un documento de muestra de la colecciÃ³n.</p>
+
+description1=<h3>CÃ³mo trabaja esta colecciÃ³n</h3><p>El <a href="_httpcollection_/etc/collect.cfg" target=collect.cfg>archivo de configuraciÃ³n</a> utiliza <i>MARCPlugin</i> ademÃ¡s de los tres plugins estÃ¡ndar. Existen tres clasificadores basados en los metadatos <i>dc.TÃ­tulo</i>, <i>dc.Creador</i> y <i>dc.Asunto</i>. El clasificador <i>dc.Title</i> es una AZList, mientras que los otros dos son AZCompactList, que agrupa items con el mismo metadato en un "estante". El argumento <i>-removesuffix</i> para el clasificador por <i>Title</i> y por <i>Creator</i> remueve los sufijos de la cadena de caracteres (<i>dc.Title</i> y <i>dc.Creator</i> respectivamente). Esto se especifica como una expresiÃ³n regular PERL y ordena los caracteres (como la puntuaciÃ³n que se encuentra al final) a partir de las cadenas para su presentaciÃ³n en pantalla.</p>
+
+description2=<p>La cadena de formateo <i>VList</i> controla la forma en la que se muestran los resultados y todos los clasificadores. Para los estantes, el nÃºmero de documentos contenidos se muestra en la parte derecha. Para los documentos, se muestra el metadato <i>dc.Title</i>, junto al <i>dc.Creator</i> y el <i>dc.Publisher</i>. <i>[sibling:dc.Creator]</i> se utiliza debido a que dc.Creator tiene mÃºltiples valores, y especifica que se deben mostrar todos los valores, no solamente el primero.</p>
+
+description3=<p>El plugin de MARC utiliza un archivo especial para mapear y convertir los nÃºmeros de campo MARC a metadatos estilo Greenstone. Este archivo reside en el directorio <i>gsdl/etc</i> y se llama <a href="_httpsite_/etc/marc2dc.txt" target=marc2dc>marc2dc.txt</a>. Incluye una lista de las correspondencias entre los nÃºmeros de campo MARC y los metadatos Greenstone. Cualquier campo MARC que no estÃ© incluido en la lista simplemente no aparece como metadato, aunque siga estando presente en el documento Greenstone. Cada lÃ­nea del archivo tiene el siguiente formato:<blockquote> &lt;MARC field number&gt; -&gt; Nombre_de_Metadato_Greenstone </blockquote>Las lÃ­neas en el archivo que empiezan con "\#" son comentarios.</p>
+
+description4=<p>La versiÃ³n estÃ¡ndar de este archivo se basa en el mapeo genÃ©rico de MARC a Dublin Core que se encuentra en <a href="http://www.loc.gov/marc/marc2dc.html">http://www.loc.gov/marc/marc2dc.html</a> (el cual asume USMARC/MARC21).</p>
+
+description5=<p>MÃºltiples campos MARC pueden mapearse a un mismo campo Dublin Core. Por ejemplo, los campos 720 ("Uncontrolled name"), 100 ("Personal name"), 110 ("Corporate name") y 111 ("Meeting name") mapean todos a <i>dc.Creator</i>. Los registros actuales de MARC normalmente definen solo uno de esos campos, pero de cualquier manera Greenstone permite metadatos multivalor.</p>
+
+description6=<p>Algunos mapeos dependen de los subcampos. Por ejemplo, el campo MARC 260 contiene informaciÃ³n sobre la publicaciÃ³n y la distribuciÃ³n. Subcampos "c" (Date of Publication) y "g" (Date of manufacture) son mapeados a <i>dc.Date</i>, usando la siguiente linea de configuraciÃ³n: <blockquote> 260$c$g -&gt; dc.Date </blockquote>  Greenstone tambiÃ©n provee un archivo para el mapeo de MARC a Dublin Core <b>cualificado</b>: <a href="_httpsite_/etc/marc2qdc.txt" target=marc2qdc>greenstone/etc/marc2qdc.txt</a>. Puede ser usado por el plugin de MARC configurando el parÃ¡metro <i>-metadata_mapping_file</i> con "marc2qdc.txt".</p>
Index: /documented-examples/trunk/marc-e/resources/collectionConfig_fr.properties
===================================================================
--- /documented-examples/trunk/marc-e/resources/collectionConfig_fr.properties	(revision 36275)
+++ /documented-examples/trunk/marc-e/resources/collectionConfig_fr.properties	(revision 36275)
@@ -0,0 +1,19 @@
+name=Exemple MARC
+.Title=
+.text=
+.Source=
+sampleoid=D0s156
+
+shortDescription=<p>Cette 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_">Voici</a> un document Ã©chantillon dans la collection.</p>
+
+description1=<h3>Comment marche cette collection ?</h3><p>Le <a href="_httpcollection_/etc/collect.cfg" target=collect.cfg>fichier de configuration</a> utilise <i>ZipPlug</i> et <i>MarcPlug</i> Ã  cotÃ© des trois qui sont utilisÃ©s en standard. Il y a trois classificateurs basÃ©s sur les mÃ©ta-donnÃ©es <i>dc.Title</i>, <i>dc.Creator</i> et <i>dc.Subject</i>. Le classificateur <i>dc.Title</i> est une liste AZList, alors que les deux autres sont des listes AZCompactList, qui regroupent les documents avec les mÃªmes mÃ©tadonnÃ©es dans une Ã©tagÃšre. L'argument <i>-removesuffix</i> pour les classificateurs <i>Title</i> et <i>Creator</i> supprime les suffixes de la chaÃ®ne des mÃ©tadonnÃ©es (respectivement pour <i>dc.Title</i> et <i>dc.Creator</i>). Ceci est spÃ©cifiÃ© comme une expression rÃ©guliÃšre de PERL et ajuste pour l'affichage des caractÃšres (comme une ponctuation finale).</p>
+
+description2=<p>La dÃ©claration de format <i>VList</i> contrÃŽle l'affichage des rÃ©sultats de recherche et de tous les classificateurs. Pour les Ã©tagÃšres, le nombre de pages de documents est affichÃ© sur le cÃŽtÃ© droit. Pour chaque document, <i>dc.Title</i> est affichÃ©, ainsi que <i>dc.Creator</i> and <i>dc.Publisher</i>. <i>[sibling:dc.Creator]</i> est utilisÃ© lorsque dc.Creator a plusieurs valeurs, et prÃ©cise que toutes les valeurs doivent Ãªtre affichÃ©es, et pas seulement la premiÃšre.</p>
+
+description3=<p>Le module Marc utilise un fichier spÃ©cial pour la mise en correspondance des numÃ©ros de champ MARC avec les mÃ©ta-donnÃ©e de type Greenstone. Ce fichier se trouve dans le rÃ©pertoire <i>gsdl/etc</i>, et est appelÃ© <a href="_httpsite_/etc/marc2dc.txt" target=marc2dc>marc2dc.txt</a>. Il liste les correspondences entre les numÃ©ros de champ MARC et les mÃ©ta-donnÃ©es Greenstone. Tous les champs MARC qui ne sont pas listÃ©s ne vont pas apparaÃ®tre comme mÃ©ta-donnÃ©es, bien qu'ils spient toujours prÃ©sents dans le document Greenstone. Chaque ligne dans le fichier Ã  le format:  <blockquote> &lt;numÃ©ro de champ MARC&gt; -&gt; NonMetadonnÃ©eGreenstone </blockquote>  Les lignes dans le fichier qui commence par "\#" sont des commentaires.</p>
+
+description4=<p>La version standard de ce fichier est approximativement basÃ©e sur la mise en correspondance MARC - Dublin Core trouvÃ© Ã  <a href="http://www.loc.gov/marc/marc2dc.html">http://www.loc.gov/marc/marc2dc.html</a> (qui suppose USMARC/MARC21).</p>
+
+description5=<p>Plusieurs champs MARC peuvent correspondre Ã  un seul champ Dublin Core. Par exemple, les champs USMARC 720 ("Uncontrolled name"), 100 ("Personal name"), 110 ("Corporate name") et 111 ("Meeting name") correspondent tous Ã  <i>dc.Creator</i>. Les notices MARC actuelles remplissent normalement un seul de ces champs, et dans tous les cas, Greenstone autorise ds champs de mÃ©tadonnÃ©es Ã  plusieurs valeurs.</p>
+
+description6=<p>Certaines correspondances dÃ©pendent des sous-champs. Par exemple, le champs MARC 260 contient des informations sur la publication et la distribution des ouvrages. Les sous-champs "c" (Date de Publication) and "g" (Date de fabrication) sont mis en correspondance avec <i>dc.Date</i>, en utilisant la ligne suivante: <blockquote> 260$c$g -&gt; dc.Date </blockquote> Greenstone fournit Ã©galement un fichier pour Ã©tablir la correspondance entre MARC et le Dublin Core <b>qualifiÃ©</b> : <a href="_httpsite_/etc/marc2qdc.txt" target=marc2qdc>greenstone/etc/marc2qdc.txt</a>. Cela peut Ãªtre utilisÃ© avec le plugiciel MARC en donnant la valeur "marc2qdc.txt" Ã  l'option <i>-metadata_mapping_file</i>.</p>
Index: /documented-examples/trunk/marc-e/resources/collectionConfig_ru.properties
===================================================================
--- /documented-examples/trunk/marc-e/resources/collectionConfig_ru.properties	(revision 36275)
+++ /documented-examples/trunk/marc-e/resources/collectionConfig_ru.properties	(revision 36275)
@@ -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/marc-e/resources/collectionConfig_zh.properties
===================================================================
--- /documented-examples/trunk/marc-e/resources/collectionConfig_zh.properties	(revision 36275)
+++ /documented-examples/trunk/marc-e/resources/collectionConfig_zh.properties	(revision 36275)
@@ -0,0 +1,43 @@
+name=MARCç€ºäŸéŠè
+.Title=
+.text=
+.Source=
+sampleoid=D0s156
+
+shortDescription=<p>æ¬éŠèå
+å«_about:numdocs_æ¡MARCè®°åœïŒæ¯åš<a href="http://www.waikato.ac.nz">æå¡æå€§å­Š</a> <a href="http://www.cs.waikato.ac.nz">è®¡ç®æºç³»</a>åè¡šçå·¥äœè®ºæåºç¡äžæå»ºçã <a href="?a=d&d=HASH0127daf20f8b3eec5c5db834s9">è¿é</a>æ¯æ¬éŠèäž­çäžäžªç€ºèææ¡£ã</p>
+
+description1=<h3>æ¬éŠèåŠäœå·¥äœ</h3><p>æ¬éŠèç<a href="_httpcollection_/etc/collect.cfg" target=collect.cfg>é
+çœ®æä»¶</a>äœ¿çš<i>MARCPlugin</i>æ¥å€çMARCè®°åœïŒ è¿äœ¿çšäºäžäºæ åçæä»¶ãæ¬éŠèæäžäžªåç±»åšïŒåå«åºäº<i>dc.Title</i>ïŒ<i>dc.Creator</i>å<i>dc.Subject</i>å
+æ°æ®ã<i>é¢å</i> åç±»åšäœ¿çšAZListïŒèå
+¶ä»äž€äžªäœ¿çšAZCompactListïŒAZCompactListå°æççžåå
+æ°æ®åŒçè®°åœéäž­å°äžäžªä¹Šæ¶äž­ã<i>é¢å</i>å<i>äœè
+ </i>åç±»åšç<i>-removesuffix</i>åæ°å°å é€å
+æ°æ®å­äž²äž­çåçŒïŒåå«å¯¹åºäº<i>dc.Title</i>å<i>dc.Creator</i>å­æ®µïŒãè¿æ¯äžäžª PERLæ­£åè¡šèŸŸåŒïŒå®å°å é€æäžäºå­ç¬ŠïŒæ¯åŠç»å°Ÿçæ ç¹ç¬Šå·ïŒã</p>
+
+description2=<p><i>VList</i>æ ŒåŒååæ°æ§å¶æçŽ¢ç»æåææåç±»åšçå€è§ãå¯¹äºä¹Šæ¶ïŒå
+¶äž­å
+å«çææ¡£æ°ç®å°è¢«æŸç€ºåšå³äŸ§ãå¯¹äºææ¡£ïŒå°æŸç€º<i>dc.Title</i> ä»¥å<i>dc.Creator</i>å<i>dc.Publisher</i>ã<i>[sibling:dc.Creator]</i>çšäºdc.Creatoræå€äžªåŒçæ
+åµïŒå®è¡šææŸç€ºææåŒïŒèäžä»
+ä»
+æ¯ç¬¬äžäžªåŒã</p>
+
+description3=<p>MARCæä»¶äœ¿çšç¹æ®çæä»¶å°MARCå­æ®µçŒå·æ å°å°Greenstoneæ ŒåŒçå
+æ°æ®ãè¿äžªæä»¶åš<i>greenstone/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>è¿äžªæä»¶ä»¥<a href="http://www.loc.gov/marc/marc2dc.html">http://www.loc.gov/marc/marc2dc.html</a>çMARCå°éœæææ žå¿å
+æ°æ® æ å°ïŒåè®ŸUSMARC/MARC21ïŒäžºå€§èŽåºç¡ã</p>
+
+description5=<p>å€äžªMARCå­æ®µå¯èœéèŠæ å°å°äžäžªéœæææ žå¿å
+æ°æ®å­æ®µäžãäŸåŠïŒå­æ®µ720ïŒ"éåæ§é¢å"ïŒïŒ100ïŒ"äººå"ïŒïŒ110ïŒ"æºæå"ïŒä»¥å111 ïŒ"äŒè®®å"ïŒéœè¢«æ å°äžº<i>dc.Creator</i>ãå®é
+MARCè®°åœéåžžåªå®ä¹è¿äºäž­çäžäžªå­æ®µïŒèGreenstoneä¹å
+è®žäœ¿çšå€åŒçå
+æ°æ®ã</p>
+
+description6=<p>æäºæ å°åå³äºå­å­æ®µãæ¯åŠïŒMARCå­æ®µ260å
+å«å
+³äºåºçäžååžçä¿¡æ¯ãå­å­æ®µ"c"ïŒåºçæ¥æïŒå"g"ïŒå¶é åæ¥æïŒéœæ å°å°<i>dc.Date</i>ïŒ éè¿äœ¿çšä»¥äžçæ å°è¡ïŒ <blockquote> 260$c$g -&gt; dc.Date </blockquote> Greenstoneè¿æäŸMARCå°<b>éå®ç</b>éœæææ žå¿å
+æ°æ®éçæ å°ïŒ <a href="_httpsite_/etc/marc2qdc.txt" target=marc2qdc>greenstone/etc/marc2qdc.txt</a>ãè¿éèŠå°MARCæä»¶ç <i>-metadata_mapping_file</i>éé¡¹è®Ÿå®äžº"marc2qdc.txt"ã</p>
Index: /documented-examples/trunk/marc-e/transform/pages/about.xsl
===================================================================
--- /documented-examples/trunk/marc-e/transform/pages/about.xsl	(revision 36275)
+++ /documented-examples/trunk/marc-e/transform/pages/about.xsl	(revision 36275)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">	
+	
+	<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']"/>
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description5']"/>
+	  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description6']"/>
+	  
+	</xsl:template>
+
+</xsl:stylesheet>  
+
