[23054] | 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
|
---|
| 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 |
|
---|
[23113] | 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>"
|
---|
[23054] | 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 |
|
---|
[23113] | 42 | format DocumentHeading "{Or}{[parent(Top):dls.Title],[parent(Top):Title],[Title],untitled}<br>"
|
---|
[23054] | 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 | Uses command line building.
|
---|
| 69 |
|
---|
| 70 | Run setup/source setup.bash in top level before starting.
|
---|
| 71 |
|
---|
| 72 | 1. Build the collection initially:
|
---|
| 73 | perl -S import.pl documented-examples/manifest-demo-e
|
---|
| 74 | perl -S buildcol.pl documented-examples/manifest-demo-e
|
---|
| 75 | rename building to index
|
---|
| 76 | Preview the collection. Contains 8 documents, 5 from BOSTID and 3 from EC Courier.
|
---|
| 77 |
|
---|
| 78 | 2. Add some new documents into the collection.
|
---|
| 79 |
|
---|
| 80 | Copy the three folders fb33fe fb34fe wb34te from import.extra into import.
|
---|
| 81 |
|
---|
| 82 | perl -S import.pl -keepold -manifest manifests/add-new-files.xml documented-examples/manifest-demo-e
|
---|
| 83 | perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
|
---|
| 84 |
|
---|
| 85 | Now there should be FAO Better Farming Documents, and one World Bank document.
|
---|
| 86 |
|
---|
| 87 | 3. Delete some documents from the collection.
|
---|
| 88 |
|
---|
| 89 | perl -S import.pl -keepold -manifest manifests/delete-some-files.xml documented-examples/manifest-demo-e
|
---|
| 90 | perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
|
---|
| 91 |
|
---|
| 92 | Now the EC Courier documents should be gone.
|
---|
| 93 |
|
---|
| 94 | 4. Modify some metadata
|
---|
| 95 |
|
---|
| 96 | Copy import.extra/fb33fe-metadata.xml to import/fb33fe/metadata.xml
|
---|
| 97 | Copy import.extra/fb34fe-metadata.xml to import/fb34fe/metadata.xml
|
---|
| 98 |
|
---|
| 99 | perl -S import.pl -keepold -manifest manifests/new-metadata.xml documented-examples/manifest-demo-e
|
---|
| 100 | perl -S incremental-buildcol.pl documented-examples/manifest-demo-e
|
---|
| 101 |
|
---|
| 102 |
|
---|
| 103 |
|
---|
| 104 | "
|
---|
| 105 |
|
---|
| 106 |
|
---|