source: documented-example-collections/trunk/wiki-e/etc/collect.cfg@ 18807

Last change on this file since 18807 was 18807, checked in by kjdon, 15 years ago

removed beta lines and collectionicon lines from collect.cfg files

  • Property svn:executable set to *
File size: 3.5 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mgpp
6
7#indexes document:text document:Title document:Source
8indexes text Title Source
9defaultindex text
10
11levels document
12
13plugin GAPlug
14plugin PDFPlug
15plugin WordPlug
16plugin NULPlug
17plugin MetadataXMLPlug
18plugin MediaWikiPlug -searchbox_div_exp <div([^>]*)id=(\"|')p-search(\"|')(.|\n)*?</div> -show_toc -delete_toc -remove_title_suffix_exp " - (.*)" -toc_exp <table([^>]*)id=(\"|')toc(\"|')(.|\n)*?</table>\n -nav_div_exp <div([^>]*)id=(\"|')p-navigation(\"|')(.|\n)*?</div> -delete_searchbox -delete_nav
19plugin ArcPlug
20plugin RecPlug
21
22classify AZList -metadata Title
23classify AZList -metadata Source
24
25format VList "<td valign=\"top\">[link][icon][/link]</td>
26<td valign=\"top\">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
27<td valign=\"top\">[highlight]
28{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}
29[/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>"
30
31format HList "[link][highlight][ex.Title][/highlight][/link]"
32
33format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
34
35format DocumentText "[Text]"
36
37format DocumentButtons "Detach|Highlight"
38
39format SearchTypes "plain,form"
40
41collectionmeta collectionname [l=en] "wiki"
42collectionmeta .document:text [l=en] "text"
43collectionmeta .document:Title [l=en] "titles"
44collectionmeta .document:Source [l=en] "filenames"
45collectionmeta .text [l=en] "text"
46collectionmeta .Title [l=en] "titles"
47collectionmeta .Source [l=en] "filenames"
48
49# -- English text ----------------
50collectionmeta collectionextra [l=en] "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.\n
51
52<h3>How the collection works</h3>\n
53
54<p>
55The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection configuration file</a> contains nine plugins <i>MediaWikiPlug</i>, <i>ImagePlug</i>, <i>ZipPlug</i>, <i>PDFPlug</i>, <i>PPTPlug</i>, <i>WordPlug</i> (along with the standard three <i>GAPlug</i>, <i>ArcPlug</i> and <i>RecPlug</i>). The <i>MediaWikiPlug</i> handles the HTML pages downloaded from a MediaWiki website, while the <i>ImagePlug</i>, <i>ZipPlug</i>, <i>PDFPlug</i>, <i>PPTPlug</i>, <i>WordPlug</i> handles the image, zip, PDF, PPT and Word files associated with the Greenstone Wiki. \n
56
57<p>
58To build the collection from a MediaWiki website, first add the new <i>MediaWiki</i> download plug on the <i>Download</i> panel of GLI. This plug works in a similar way with the <i>Web</i> download plug, but is speically for crawling MediaWiki websites.\n
59
60<p>
61In the <i>Document Plugins</i> section of the <i>Design</i> panel, add <i>MediaWikiPlug</i>. <i>MediaWikiPlug</i> has 5 options, <i>show_toc</i>, <i>toc_exp</i>, <i>delete_toc</i>, <i>delete_nav</i>, <i>nav_exp</i>. Switch on <i>show_toc</i> will copy the table of contents on the website\'s main page to the collection\'s about page. This needs to specify a regex expression for the table of contents in the <i>toc_exp</i> option. Select the <i>delete_toc</i> option will surpress the table of content on each Wiki page. <i>delete_nav</i> and <i>nav_exp</i> options are for supressing the navigation toolbar, which is normally on the left side of a wiki page, and the <i>nav_exp</i> option is an regular expression of the position of the navigation toolbar. \n
62"
63collectionmeta iconcollection [l=en] "_httpprefix_/collect/wiki/images/en/wiki.gif"
64collectionmeta iconcollectionsmall [l=en] "_httpprefix_/collect/wiki/images/en/wiki.gif"
Note: See TracBrowser for help on using the repository browser.