source: documented-examples/trunk/lomdemo-e/etc/collect.cfg@ 22897

Last change on this file since 22897 was 22897, checked in by kjdon, 12 years ago

adding lom demo as a documented-example collection

File size: 5.2 KB
Line 
1creator greenstone@cs.waikato.ac.nz
2public true
3
4buildtype mgpp
5
6indexes text,ex.rawtext ex.general^title ex.general^description ex.general^keyword
7defaultindex text
8levels document
9
10indexoptions accentfold casefold stem
11
12defaultlevel document
13
14subcollection arts "dc.Subject/Arts/"
15subcollection science "dc.Subject/Science/"
16
17indexsubcollections arts,science arts science
18
19collectionmeta ar [l=en] "arts resources"
20collectionmeta sc [l=en] "science resources"
21collectionmeta as [l=en] "all resources"
22
23plugin GreenstoneXMLPlugin
24plugin LOMPlugin -download_srcdocs (?i)\\.(html?|je?pg|gif)$ -check_timestamp
25##plugin LOMPlugin -download_srcdocs (?i)\\.(html?)$
26
27plugin HTMLPlugin
28plugin ImagePlugin
29plugin OAIPlugin -document_field dc.Identifier
30plugin PDFPlugin
31plugin WordPlugin
32plugin MetadataXMLPlugin
33plugin ArchivesInfPlugin
34plugin DirectoryPlugin -recheck_directories
35
36classify List -metadata dc.Subject/ex.general^title;Title -partition_type_within_level none -removesuffix (\\s*(\\/|\\(|\\)|\\,|\\:|\\;|\\-).*)|\\s+ -buttonname Subject2
37#-sort_leaf_nodes_using general^title
38classify DateList -metadata lifecycle^contribute^date -sort general^title -buttonname Date
39
40format VList "<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>"
41format DateList "<td>[link][icon][/link]</td><td>[general^title]</td>"
42
43format DocumentHeading "[general^title]<br>"
44
45format DocumentText "<p>
46<center>_tableextra_
47{If}{_cgiargshowrawmd_,
48<table width=_pagewidth_ cellspacing=0
49style=\'border-bottom: 4px solid _mdtabtabbg_\'>
50<tr bgcolor=_mdtabtabbg_>
51_mdtabdip_ _mdhreftab_(1\,\,\,Metadata)
52_mdtabdip_ _mdtexttab_(XML Record)
53{If}{[Plugin] ne LOMPlugin,
54_mdtabdip_ _mdhreftab_(\,\,1\,Document)
55, <!-- else [Plugin] eq LOMPlugin -->
56_mdtabdip_ _mdtabblank_ _mdtabdip_
57}
58_mdtabfill_
59</tr>
60</table>
61<textarea cols=80 rows=25>{If}{[Plugin] eq LOMPlugin,[Text],[rawtext]}</textarea>
62, <!-- else -->
63{If}{_cgiargshowtext_,
64<table width=_pagewidth_ cellspacing=0
65style=\'border-bottom: 4px solid _mdtabtabbg_\'>
66<tr bgcolor=_mdtabtabbg_>
67_mdtabdip_ _mdhreftab_(1\,\,\,Metadata)
68_mdtabdip_ _mdhreftab_(\,1\,\,XML Record)
69_mdtabdip_ _mdtexttab_(Document) _mdtabdip_
70_mdtabfill_
71</tr>
72</table>
73{If}{[Plugin] eq ImagePlugin,<br>[srclink][srcicon][/srclink],
74{If}{[Plugin] ne LOMPlugin,[Text]}
75}
76, <!-- else -->
77<table width=_pagewidth_ cellspacing=0
78style=\'border-bottom: 4px solid _mdtabtabbg_\'>
79<tr bgcolor=_mdtabtabbg_>
80_mdtabdip_ _mdtexttab_(Metadata)
81_mdtabdip_ _mdhreftab_(\,1\,\,XML Record)
82{If}{[Plugin] ne LOMPlugin,
83_mdtabdip_ _mdhreftab_(\,\,1\,Document)
84_mdtabdip_
85, <!-- else -->
86_mdtabdip_ _mdtabblank_ _mdtabdip_
87}
88_mdtabfill_
89</tr>
90</table>
91[MetadataTable]
92}
93}
94</center>"
95
96format HList "[link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][/link]"
97
98format DocumentButtons "Detach|Highlight"
99
100format SearchTypes "plain,form"
101
102collectionmeta collectionname [l=en] "LOM Demonstration"
103
104# Collectionmeta for indexes must not use ex.
105collectionmeta .text,rawtext [l=en] "All text"
106collectionmeta .general^title [l=en] "Titles"
107collectionmeta .general^description [l=en] "Descriptions"
108collectionmeta .general^keyword [l=en] "Keywords"
109
110
111collectionmeta collectionextra [l=en] "This collection
112is a sample excerpt of educational resources from
113the University of Calgary\'s Learning
114Commons Educational Object Repository (no longer active). Taken from the subject
115areas of the arts and science, _numdocs_ items from the repository were
116exported in the IEEE LOM (Learning Object Metadata) format and digested
117into a Greenstone collection. For sample LOM metadata, see this <a href=\"_httpcollection_/import/arts/657841.xml\">arts</a> record, or this <a href=\"_httpcollection_/import/science/582041.xml\">science</a> record.
118
119<p>Traditional educational learning object repositories base
120searching and browsing around the provided metadata. This demonstration
121collection goes one step further and provides <i>full-text</i> indexing
122of the on-line resources, where possible.
123
124<p>Browse around the collection\'s items ordered by subject then title, or
125view the items chronologically. Alternatively search the text or
126titles of the items in the collection, optionally restricted to arts or
127science. When you view an item from the collection various views of it
128are available. You start by viewing its Learning Object Metadata (LOM)
129record in a tabulated form and divided into sections: these sections
130can be expanded or contracted to reveal more or less information as
131desired. Use the tabs at the top of the table to change the view of
132the learning object. There will always be a tab for
133&quot;XML Record&quot; which displays the metadata in its original
134IEEE LOM format. Depending on whether or not the learning
135object references an on-line resource that is available for indexing,
136a third tab may be present that displays the source document.
137
138<h3>How the collection works</h3>
139<p>The records were exported from the Calgary Repository in LOM format. LOMPlugin is used to process the records. Using -download_srcdocs option to the plugin will search for general^identifier^entry or technical^location, and attempt to download the source document, into a <a href=\"_httpcollection_/import/arts/_gsdldown.all\">_gsdldown.all</a> folder in the same folder as the lom record.
140
141
142
143"
144
Note: See TracBrowser for help on using the repository browser.