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

Last change on this file since 23219 was 23219, checked in by kjdon, 13 years ago

small changes. Still need to tidy this up a lot

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.
68Index, Reindex, Delete. Filename/OID
69Uses command line building.
70
71Run setup/source setup.bash in top level before starting.
72
731. Build the collection initially:
74perl -S import.pl documented-examples/manifest-demo-e
75perl -S buildcol.pl documented-examples/manifest-demo-e
76rename building to index
77Preview the collection. Contains 8 documents, 5 from BOSTID and 3 from EC Courier.
78
792. Add some new documents into the collection.
80
81Copy the three folders fb33fe fb34fe wb34te from import.extra into import.
82
83perl -S incremental-import.pl -manifest manifests/add-new-files.xml documented-examples/manifest-demo-e
84perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
85
86Now there should be FAO Better Farming Documents, and one World Bank document.
87
883. Delete some documents from the collection.
89
90perl -S incremental-import.pl -manifest manifests/delete-some-files.xml documented-examples/manifest-demo-e
91perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
92
93Note that we haven't actually deleted the docs from the import folder. Just from the archives and index.
94Now the EC Courier documents should be gone.
95
964. Modify some metadata
97
98Copy import.extra/fb33fe-metadata.xml to import/fb33fe/metadata.xml
99Copy import.extra/fb34fe-metadata.xml to import/fb34fe/metadata.xml
100
101perl -S incremental-import.pl -manifest manifests/new-metadata.xml documented-examples/manifest-demo-e
102perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
103
104
105
106"
107
108
Note: See TracBrowser for help on using the repository browser.