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

Last change on this file since 27865 was 27865, checked in by davidb, 9 years ago

Shortened name so if fits more nicely on the home page

  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 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">greenstone@cs.waikato.ac.nz</metadata>
7 <metadata name="public">true</metadata>
8 </metadataList>
9 <displayItemList>
10 <displayItem name='name' lang='en'>Gutenberg XML Texts</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="serviceName"/>
29 <td>
30 <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>
31 </td>
32 </gsf:template>
33 </format>
34 </search>
35 <browse/>
36 <documentList>
37 <document name='origin'>
38 <metadataList>
39 <metadata name='Title'>On the Origin of Species</metadata>
40 <metadata name="Author">Charles Darwin</metadata>
41 </metadataList>
42 </document>
43 <document name='iliad'>
44 <metadataList>
45 <metadata name='Title'>The Iliad</metadata>
46 <metadata name="Author">Homer</metadata>
47 </metadataList>
48 </document>
49 <document name='owlcreek'>
50 <metadataList>
51 <metadata name='Title'>An Occurrence At Owl Creek Bridge</metadata>
52 <metadata name="Author">Ambrose Bierce</metadata>
53 </metadataList>
54 </document>
55 <document name='fishpatrol'>
56 <metadataList>
57 <metadata name='Title'>Tales of the Fish Patrol</metadata>
58 <metadata name="Author">Jack London</metadata>
59 </metadataList>
60 </document>
61 </documentList>
62</collectionConfig>
Note: See TracBrowser for help on using the repository browser.