source: collections/documented-examples/trunk/wiki-e/etc/collect.cfg@ 19148

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

updated config file collectionmeta

  • Property svn:executable set to *
File size: 3.3 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 GreenstoneXMLPlugin
14plugin PDFPlugin
15plugin WordPlugin
16plugin NulPlugin
17plugin MediaWikiPlugin -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
18plugin MetadataXMLPlugin
19plugin ArchivesInfPlugin
20plugin DirectoryPlugin
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"
40
41collectionmeta .text "_labeltext_"
42collectionmeta .Title "_labeltitle_"
43collectionmeta .Source "_labelSource_"
44
45# -- English text ----------------
46collectionmeta collectionname [l=en] "MediaWiki collection"
47collectionmeta collectionextra [l=en] "
48This demonstration collection is made from the Greenstone Wiki website.
49It shows off the new feature of building a Greenstone collection from a
50MediaWiki website in Greestone.
51
52<h3>How the collection works</h3>
53
54<p>
55The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
56 configuration file</a> contains the plugins <i>MediaWikiPlugin</i>,
57<i>ImagePlugin</i>, <i>ZipPlugin</i>, <i>PDFPlugin</i>,
58<i>PowerPointPlugin</i>, <i>WordPlugin</i> (along with the standard
59plugins <i>GreenstoneXMLPlugin</i>, <i>ArchivesInfPlugin</i> and
60<i>DirectoryPlugin</i>). The <i>MediaWikiPlugin</i> handles the HTML pages
61downloaded from a MediaWiki website, while <i>ImagePlugin</i>,
62<i>ZipPlugin</i>, <i>PDFPlugin</i>, <i>PowerPointPlugin</i> and
63<i>WordPlugin</i> handle the image, zip, PDF, PowerPoint and Word
64files associated with the Greenstone Wiki.
65
66<p>
67To build a collection from a MediaWiki website, first download the wiki
68files using the <i>MediaWiki</i> option on the <i>Download</i> panel of GLI.
69This download type works in a similar way to a the <i>Web</i> download, but
70is specially designed for crawling MediaWiki websites.\n
71
72<p>Once the files are downloaded, copy them into a collection using the <i>Gather</i>, dragging them from the <i>Downloaded Files</i> folder in the Workspace tree on the left-hand side.
73
74<p>
75In the <i>Document Plugins</i> section of the <i>Design</i> panel,
76add <i>MediaWikiPlugin</i>. <i>MediaWikiPlugin</i> has several specific
77options which control aspects of page presentation, such as whether or not
78the table of contents, navigation toolbars and search box are shown on each
79page. Configure these options based on how you want the pages to appear. You can see the options used by this collection in its
80<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
81 configuration file</a>.
82"
Note: See TracBrowser for help on using the repository browser.