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