1 | name=manifest-demo-e
|
---|
2 | dls.Organization=Organizations
|
---|
3 | text=Text
|
---|
4 | section=Chapter
|
---|
5 | document=Book
|
---|
6 | dls.Titles=Titles
|
---|
7 | dls.Keyword=How to
|
---|
8 | dls.Subject=Subjects
|
---|
9 |
|
---|
10 | textdate=publication date:
|
---|
11 | textnumpages=no. of pages:
|
---|
12 | textsource=source ref:
|
---|
13 |
|
---|
14 | shortDescription=<p>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.</p>
|
---|
15 |
|
---|
16 | description=<h3>Features of this collection</h3> \n\
|
---|
17 | <ul> \n\
|
---|
18 | <li>Uses lucene to do incremental build.</li> \n\
|
---|
19 | <li>Uses OIDtype dirname to make it easy to specify document ids for deletion.</li> \n\
|
---|
20 | <li>import folder and import.extra folder with additional material.</li> \n\
|
---|
21 | <li>manifests folder contains the manifest files.</li> \n\
|
---|
22 | <li>Index, Reindex, Delete.</li> \n\
|
---|
23 | <li>Filename/OID Uses command line building.</li> \n\
|
---|
24 | </ul> \n\
|
---|
25 |
|
---|
26 |
|
---|
27 | description0=<h3>Instructions</h3><br /><p>0. Run setup/source setup.bash in top level before starting.</p><br />
|
---|
28 |
|
---|
29 | description1=<p>1. Build the collection initially:<br /> \n\
|
---|
30 | <pre>perl -S import.pl documented-examples/manifest-demo-e \n\
|
---|
31 | perl -S buildcol.pl documented-examples/manifest-demo-e</pre> \n\
|
---|
32 | rename building to index<br /> \n\
|
---|
33 | Preview the collection. Contains 8 documents, 5 from BOSTID and 3 from EC Courier.</p><br />
|
---|
34 |
|
---|
35 | description2=<p>2. Add some new documents into the collection.<br /> \n\
|
---|
36 | <br /> \n\
|
---|
37 | Copy the three folders fb33fe fb34fe wb34te from import.extra into import. \n\
|
---|
38 | <br /> \n\
|
---|
39 | <pre>perl -S incremental-import.pl -manifest manifests/add-new-files.xml documented-examples/manifest-demo-e \n\
|
---|
40 | perl -S incremental-buildcol.pl documented-examples/manifest-demo-e</pre> \n\
|
---|
41 | \n\
|
---|
42 | Now there should be FAO Better Farming Documents, and one World Bank document.</p><br />
|
---|
43 |
|
---|
44 | description3=<p>3. Delete some documents from the collection.<br /> \n\
|
---|
45 | <pre>perl -S incremental-import.pl -manifest manifests/delete-some-files.xml documented-examples/manifest-demo-e \n\
|
---|
46 | perl -S incremental-buildcol.pl documented-examples/manifest-demo-e</pre> \n\
|
---|
47 | \n\
|
---|
48 | Note that we haven't actually deleted the docs from the import folder. Just from the archives and index.<br /> \n\
|
---|
49 | Now the EC Courier documents should be gone.</p><br />
|
---|
50 |
|
---|
51 | description4=<p>4. Modify some metadata<br /> \n\
|
---|
52 | <pre>Copy import.extra/fb33fe-metadata.xml to import/fb33fe/metadata.xml \n\
|
---|
53 | Copy import.extra/fb34fe-metadata.xml to import/fb34fe/metadata.xml \n\
|
---|
54 | \n\
|
---|
55 | perl -S incremental-import.pl -manifest manifests/new-metadata.xml documented-examples/manifest-demo-e \n\
|
---|
56 | perl -S incremental-buildcol.pl documented-examples/manifest-demo-e</pre> \n\
|
---|
57 | \n\
|
---|
58 | Preview and the new metadata should be there.</p>
|
---|