source: main/trunk/greenstone3/web/sites/localsite/collect/gberg/etc/collectionConfig.xml@ 25482

Last change on this file since 25482 was 25482, checked in by kjdon, 12 years ago

comment out images as they look ugly in default library

  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<collectionConfig
3 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
5 <metadataList>
6 <metadata name="creator">[email protected]</metadata>
7 <metadata name="public">true</metadata>
8 </metadataList>
9 <displayItemList>
10 <displayItem name='name' lang='en'>Sample XML Texts Collection</displayItem>
11 <!--<displayItem name='icon' lang='en'>gberg.gif</displayItem>
12 <displayItem name='smallicon' lang='en'>gbergsm.gif</displayItem>-->
13 <displayItem name='description' lang='en'>
14&lt;p&gt;This collection is designed to demonstrate some of the flexibility of the Greenstone 3 architecture. Collections are not restricted to those built using the standard building process, but rather can be anything you want, as long as suitable services are provided.&lt;/p&gt;
15&lt;p&gt; This collection contains 4 documents obtained from the &lt;a href="http://gutenberg.net/"&gt;Gutenberg project&lt;/a&gt;. Project Gutenberg documents are marked up in XML, and come with DTDs and CSS stylesheets. The collection has not been built using either Greenstone2 or Greenstone3 style building. Instead, simple java programs using the Lucene API have been created to do the indexing, and document retrieval is simply done from the original (actually slightly modified) XML documents. A description of the building process can be found in the &lt;a href="sites/localsite/collect/gberg/README"&gt;README&lt;/a&gt; file for this collection.&lt;/p&gt;
16&lt;p&gt; This collection has a different appearance to standard collections, accomplished through the use of custom XSLT files, found in the transform directory of the collection. The 'about' page for the collection shows a list of all the documents. This is achieved by using a new about.xsl file. Document display is quite different for this collection: the display can be either table of contents style, or text style. Two new xslts were written to handle the two display types. A new document action also had to be created (XMLDocumentAction), and the interface config file was altered to map the xd action code to this new Action class.&lt;/p&gt;
17&lt;p&gt; &amp;lt;action name='xd' class='XMLDocumentAction'&amp;gt;&lt;br/&gt;
18&amp;nbsp;&amp;nbsp;&amp;lt;subaction name='toc' xslt='document-toc.xsl'/&amp;gt;&lt;br/&gt;
19&amp;nbsp;&amp;nbsp;&amp;lt;subaction name='text' xslt='document-text.xsl'/&amp;gt;&lt;br/&gt;
20&amp;lt;/action&amp;gt;&lt;/p&gt;
21&lt;p&gt;The collection uses a generic Greenstone Lucene search service, and a specific retrieval service class, GutBookRetrieve. This extends the generic XMLRetrieve serviceRack to handle metadata extraction for the Gutenberg documents.&lt;/p&gt;
22&lt;p&gt;The collection configuration file can be seen &lt;a href="sites/localsite/collect/gberg/etc/collectionConfig.xml"&gt;here&lt;/a&gt;, and the building configuration file can be seen &lt;a href="sites/localsite/collect/gberg/index/buildConfig.xml"&gt;here&lt;/a&gt;.&lt;/p&gt;
23</displayItem>
24 </displayItemList>
25 <search>
26 <format>
27 <gsf:template match="documentNode">
28 <xsl:param name="collName"/>
29 <xsl:param name="serviceName"/>
30 <td>
31 <b><a href="{$library_name}?a=xd&amp;sa=text&amp;c={$collName}&amp;d={@nodeID}&amp;p.a=q&amp;p.s={$serviceName}"><xsl:choose><xsl:when test="metadataList/metadata[@name='Title']"><gsf:metadata name="Title"/></xsl:when><xsl:otherwise>(section)</xsl:otherwise></xsl:choose></a></b> from <b><a href="{$library_name}?a=xd&amp;sa=toc&amp;c={$collName}&amp;d={@nodeID}.rt&amp;p.a=q&amp;p.s={$serviceName}"><gsf:metadata name="Title" select="root"/></a></b>
32 </td>
33 </gsf:template>
34 </format>
35 </search>
36 <browse/>
37 <documentList>
38 <document name='origin'>
39 <metadataList>
40 <metadata name='Title'>On the Origin of Species</metadata>
41 <metadata name="Author">Charles Darwin</metadata>
42 </metadataList>
43 </document>
44 <document name='iliad'>
45 <metadataList>
46 <metadata name='Title'>The Iliad</metadata>
47 <metadata name="Author">Homer</metadata>
48 </metadataList>
49 </document>
50 <document name='owlcreek'>
51 <metadataList>
52 <metadata name='Title'>An Occurrence At Owl Creek Bridge</metadata>
53 <metadata name="Author">Ambrose Bierce</metadata>
54 </metadataList>
55 </document>
56 <document name='fishpatrol'>
57 <metadataList>
58 <metadata name='Title'>Tales of the Fish Patrol</metadata>
59 <metadata name="Author">Jack London</metadata>
60 </metadataList>
61 </document>
62 </documentList>
63</collectionConfig>
Note: See TracBrowser for help on using the repository browser.