source: other-projects/nightly-tasks/diffcol/trunk/model-collect/Demo-MGPP/etc/collect.cfg@ 28083

Last change on this file since 28083 was 28083, checked in by ak19, 11 years ago

Adding Demo-MGPP model collection of Indexers tutorial

File size: 3.6 KB
Line 
1public true
2
3buildtype mgpp
4
5infodbtype gdbm
6
7indexes text dc.Title,ex.Title dc.Subject dls.Organization dls.Keyword
8
9levels section document
10
11indexoptions accentfold casefold stem
12
13defaultlevel document
14
15# import options, needed for diffcol testing
16# especially in conjunction with -sort flag to ArchivesInfPlugin
17OIDtype hash_on_full_filename
18sortmeta OID
19
20plugin GreenstoneXMLPlugin
21plugin HTMLPlugin -description_tags
22# following two plugins not needed for the demo collection, but are useful to
23# include for tutorial purposes
24plugin ImagePlugin
25plugin ZIPPlugin
26plugin MetadataXMLPlugin
27plugin ArchivesInfPlugin -sort
28plugin DirectoryPlugin
29
30# import options
31# this will use the file's parent directory name as the OID
32oidtype filename
33
34classify List -metadata dc.Title -partition_type_within_level constant_size
35
36classify Hierarchy -metadata dc.Subject -sort dc.Title
37
38classify List -metadata dls.Organization -sort_leaf_nodes_using dc.Title -partition_type_within_level constant_size -bookshelf_type always
39
40classify List -metadata dls.Keyword -buttonname Howto -partition_type_within_level constant_size
41
42format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
43
44format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All\': \'):Title],[parent(All\': \'):Title]:}[link][Title][/link]</td>"
45
46format VList "<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]{If}{[Date],<br><small><i>_textdate_[Date]</i></small>}{If}{[NumPages],<br><small><i>_textnumpages_[NumPages]</i></small>}{If}{[Source],<br><small><i>_textsource_[dmsafe:Source]</i></small>}</td>"
47
48format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]"
49format DocumentImages true
50format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
51format DocumentSearchResultLinks true
52
53format HList "[link][highlight][Title][/highlight][/link]"
54
55format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
56
57format SearchTypes "plain,form"
58
59# strings that use macros
60# these don't need translating unless you want something different from the
61# default
62collectionmeta .text [l=en] "_labeltext_"
63collectionmeta .dc.Title,Title [l=en] "_labelTitle_"
64collectionmeta .dc.Subject [l=en] "_labelSubject_"
65collectionmeta .dls.Organization [l=en] "_labelOrganization_"
66collectionmeta .dls.Keyword [l=en] "_labelHowto_"
67
68collectionmeta .document [l=en] "_textbook_"
69collectionmeta .section [l=en] "_textchapter_"
70
71# -- English strings ----------------
72
73collectionmeta depositormetadata [l=en] "{\"name\":\"dc.Title\",\"label\":\"Title\",\"tooltip\":\"dc.Title: The title of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Organization\",\"label\":\"Organization\",\"tooltip\":\"dls.Organization: The organization responsible for producing this resource.\",\"type\":\"text\"}, {\"name\":\"dc.Subject\",\"label\":\"Subject\",\"tooltip\":\"dc.Subject: The subject of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Keyword\",\"label\":\"Keyword\",\"tooltip\":\"dls.Keyword: A more specific indication of what the resource can be used for.\",\"type\":\"text\"}, {\"name\":\"dc.Language\",\"label\":\"Language\",\"tooltip\":\"dc.Language: The language of this resource.\",\"type\":\"text\"}"
74collectionmeta collectionname [l=en] "Demo MGPP"
75
76# -- French strings ----------------
77
78# -- Spanish strings ----------------
79
80# -- Russian strings ----------------
81
82# -- Arabic strings ----------------
83
84# -- Armenian strings ----------------
85
86# -- Finnish strings ----------------
87
88# -- Slovak strings ----------------
89
90# -- Brazilian Portuguese strings ----------------
91
92# -- Thai strings ----------------
93
94# -- Simplified Chinese strings ----------------
95
Note: See TracBrowser for help on using the repository browser.