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

Last change on this file since 36278 was 36278, checked in by anupama, 22 months ago

I think the regex for accepting jpg and jpeg files should be jpe?g not je?pg.

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