[18738] | 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 |
|
---|
[19060] | 13 | plugin GreenstoneXMLPlugin
|
---|
| 14 | plugin PDFPlugin
|
---|
| 15 | plugin WordPlugin
|
---|
| 16 | plugin NulPlugin
|
---|
[19148] | 17 | plugin 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
|
---|
[19060] | 18 | plugin MetadataXMLPlugin
|
---|
| 19 | plugin ArchivesInfPlugin
|
---|
| 20 | plugin DirectoryPlugin
|
---|
[18738] | 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 |
|
---|
[19148] | 39 | format SearchTypes "plain"
|
---|
[18738] | 40 |
|
---|
[19148] | 41 | collectionmeta .text "_labeltext_"
|
---|
| 42 | collectionmeta .Title "_labeltitle_"
|
---|
| 43 | collectionmeta .Source "_labelSource_"
|
---|
[18738] | 44 |
|
---|
| 45 | # -- English text ----------------
|
---|
[19148] | 46 | collectionmeta collectionname [l=en] "MediaWiki collection"
|
---|
| 47 | collectionmeta collectionextra [l=en] "
|
---|
| 48 | This demonstration collection is made from the Greenstone Wiki website.
|
---|
| 49 | It shows off the new feature of building a Greenstone collection from a
|
---|
| 50 | MediaWiki website in Greestone.
|
---|
[18738] | 51 |
|
---|
[19148] | 52 | <h3>How the collection works</h3>
|
---|
[18738] | 53 |
|
---|
| 54 | <p>
|
---|
[19148] | 55 | The <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
|
---|
| 59 | plugins <i>GreenstoneXMLPlugin</i>, <i>ArchivesInfPlugin</i> and
|
---|
| 60 | <i>DirectoryPlugin</i>). The <i>MediaWikiPlugin</i> handles the HTML pages
|
---|
| 61 | downloaded 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
|
---|
| 64 | files associated with the Greenstone Wiki.
|
---|
[18738] | 65 |
|
---|
| 66 | <p>
|
---|
[19148] | 67 | To build a collection from a MediaWiki website, first download the wiki
|
---|
| 68 | files using the <i>MediaWiki</i> option on the <i>Download</i> panel of GLI.
|
---|
| 69 | This download type works in a similar way to a the <i>Web</i> download, but
|
---|
| 70 | is specially designed for crawling MediaWiki websites.\n
|
---|
[18738] | 71 |
|
---|
[19148] | 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 |
|
---|
[18738] | 74 | <p>
|
---|
[19148] | 75 | In the <i>Document Plugins</i> section of the <i>Design</i> panel,
|
---|
| 76 | add <i>MediaWikiPlugin</i>. <i>MediaWikiPlugin</i> has several specific
|
---|
| 77 | options which control aspects of page presentation, such as whether or not
|
---|
| 78 | the table of contents, navigation toolbars and search box are shown on each
|
---|
| 79 | page. 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>.
|
---|
[18738] | 82 | "
|
---|