source: documented-examples/trunk/manifest-demo-e/etc/collect.cfg@ 23173

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

small changes

File size: 4.2 KB
Line 
1creator
2maintainer
3public true
4
5buildtype lucene
6infodbtype gdbm
7
8indexes text dls.Title,ex.Title dls.Subject dls.Organization dls.Keyword
9defaultindex text
10
11levels section document
12
13plugin ZIPPlugin
14plugin GreenstoneXMLPlugin
15plugin HTMLPlugin -description_tags -OIDtype dirname
16plugin MetadataXMLPlugin
17plugin ArchivesInfPlugin
18plugin DirectoryPlugin
19
20
21classify List -metadata dls.Title -partition_type_within_level constant_size -removeprefix "([Tt]he|A)\\s+"
22
23classify Hierarchy -metadata dls.Subject -sort dls.Title
24
25classify List -sort_leaf_nodes_using dls.Title -metadata dls.Organization -bookshelf_type always -partition_type_within_level constant_size
26
27classify List -metadata dls.Keyword -partition_type_within_level constant_size -buttonname Howto
28
29format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
30
31format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All\': \'):Title],[parent(All\': \'):Title]:}[link][Title][/link]</td>"
32
33format VList "<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[dls.Title],[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>"
34
35format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]"
36format DocumentImages true
37format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
38format DocumentSearchResultLinks true
39
40format HList "[link][highlight][Title][/highlight][/link]"
41
42format DocumentHeading "{Or}{[parent(Top):dls.Title],[parent(Top):Title],[Title],untitled}<br>"
43
44format SearchTypes "plain,form"
45
46# strings that use macros
47# these don't need translating unless you want something different from the
48# default
49collectionmeta .text [l=en] "_labeltext_"
50collectionmeta .dls.Title,Title [l=en] "_labelTitle_"
51collectionmeta .dls.Subject [l=en] "_labelSubject_"
52collectionmeta .dls.Organization [l=en] "_labelOrganization_"
53collectionmeta .dls.Keyword [l=en] "_labelHowto_"
54
55collectionmeta .document [l=en] "_textbook_"
56collectionmeta .section [l=en] "_textchapter_"
57
58# -- English strings ----------------
59collectionmeta collectionname [l=en] "manifest-demo-e"
60
61# -- English Text -------------------
62
63collectionmeta collectionextra [l=en] "This demonstration collection contains the same material as the original Greenstone demo collection. In addition it has some predefined manifest files, to show off their use with incremental building.
64Uses lucene to do incremental build.
65Uses OIDtype dirname to make it easy to specify document ids for deletion.
66import folder and import.extra folder with additional material.
67manifests folder contains the manifest files.
68Uses command line building.
69
70Run setup/source setup.bash in top level before starting.
71
721. Build the collection initially:
73perl -S import.pl documented-examples/manifest-demo-e
74perl -S buildcol.pl documented-examples/manifest-demo-e
75rename building to index
76Preview the collection. Contains 8 documents, 5 from BOSTID and 3 from EC Courier.
77
782. Add some new documents into the collection.
79
80Copy the three folders fb33fe fb34fe wb34te from import.extra into import.
81
82perl -S import.pl -keepold -manifest manifests/add-new-files.xml documented-examples/manifest-demo-e
83perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
84
85Now there should be FAO Better Farming Documents, and one World Bank document.
86
873. Delete some documents from the collection.
88
89perl -S import.pl -keepold -manifest manifests/delete-some-files.xml documented-examples/manifest-demo-e
90perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
91
92Note that we haven't actually deleted the docs from the import folder. Just from the archives and index.
93Now the EC Courier documents should be gone.
94
954. Modify some metadata
96
97Copy import.extra/fb33fe-metadata.xml to import/fb33fe/metadata.xml
98Copy import.extra/fb34fe-metadata.xml to import/fb34fe/metadata.xml
99
100perl -S import.pl -keepold -manifest manifests/new-metadata.xml documented-examples/manifest-demo-e
101perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
102
103
104
105"
106
107
Note: See TracBrowser for help on using the repository browser.