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

Last change on this file since 18333 was 18333, checked in by ak19, 15 years ago

Added in ?xml tag at the start of the collectionConfig and buildConfig files for the gberg and infomine demo collections, else there are troubles parsing when GLI is trying load these collections (since the new class needs the ?xml tag to identify the start of xml files).

  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
1<?xml version="1.0" encoding="UTF-8"?>
3 xmlns:gsf=""
4 xmlns:xsl="" >
5 <metadataList>
6 <metadata name="creator">[email protected]</metadata>
7 </metadataList>
8 <displayItemList>
9 <displayItem name='name' lang='en'>Sample XML Texts Collection</displayItem>
10 <displayItem name='icon' lang='en'>gberg.gif</displayItem>
11 <displayItem name='smallicon' lang='en'>gbergsm.gif</displayItem>
12 <displayItem name='description' lang='en'>
13&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;
14&lt;p&gt; This collection contains 4 documents obtained from the &lt;a href=""&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;
15&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;
16&lt;p&gt; &amp;lt;action name='xd' class='XMLDocumentAction'&amp;gt;&lt;br/&gt;
17&amp;nbsp;&amp;nbsp;&amp;lt;subaction name='toc' xslt='document-toc.xsl'/&amp;gt;&lt;br/&gt;
18&amp;nbsp;&amp;nbsp;&amp;lt;subaction name='text' xslt='document-text.xsl'/&amp;gt;&lt;br/&gt;
20&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;
21&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 </displayItemList>
24 <search>
25 <format>
26 <gsf:template match="documentNode">
27 <xsl:param name="collName"/>
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>
Note: See TracBrowser for help on using the repository browser.