1 | creator [email protected]
|
---|
2 | maintainer [email protected]
|
---|
3 | public true
|
---|
4 |
|
---|
5 | buildtype mgpp
|
---|
6 |
|
---|
7 | #indexes document:text document:Title document:Source
|
---|
8 | indexes text Title Source
|
---|
9 | defaultindex text
|
---|
10 |
|
---|
11 | levels document
|
---|
12 |
|
---|
13 | plugin GAPlug
|
---|
14 | plugin PDFPlug
|
---|
15 | plugin WordPlug
|
---|
16 | plugin NULPlug
|
---|
17 | plugin MetadataXMLPlug
|
---|
18 | plugin 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
|
---|
19 | plugin ArcPlug
|
---|
20 | plugin RecPlug
|
---|
21 |
|
---|
22 | classify AZList -metadata Title
|
---|
23 | classify AZList -metadata Source
|
---|
24 |
|
---|
25 | format 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 |
|
---|
31 | format HList "[link][highlight][ex.Title][/highlight][/link]"
|
---|
32 |
|
---|
33 | format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
|
---|
34 |
|
---|
35 | format DocumentText "[Text]"
|
---|
36 |
|
---|
37 | format DocumentButtons "Detach|Highlight"
|
---|
38 |
|
---|
39 | format SearchTypes "plain,form"
|
---|
40 |
|
---|
41 | collectionmeta collectionname [l=en] "wiki"
|
---|
42 | collectionmeta .document:text [l=en] "text"
|
---|
43 | collectionmeta .document:Title [l=en] "titles"
|
---|
44 | collectionmeta .document:Source [l=en] "filenames"
|
---|
45 | collectionmeta .text [l=en] "text"
|
---|
46 | collectionmeta .Title [l=en] "titles"
|
---|
47 | collectionmeta .Source [l=en] "filenames"
|
---|
48 |
|
---|
49 | # -- English text ----------------
|
---|
50 | collectionmeta 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>
|
---|
55 | The <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>
|
---|
58 | To 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>
|
---|
61 | In 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 | "
|
---|
63 | collectionmeta iconcollection [l=en] "_httpprefix_/collect/wiki/images/en/wiki.gif"
|
---|
64 | collectionmeta iconcollectionsmall [l=en] "_httpprefix_/collect/wiki/images/en/wiki.gif"
|
---|