source: other-projects/nightly-tasks/diffcol/trunk/model-collect/Demo-Lucene/etc/collect.bak@ 28084

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

Adding the Demo-Lucene model collection of the GS2 Indexers tutorial

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