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