1 | name=QQQmanifest-demo-e
|
---|
2 | dls.Organization=QQQOrganizations
|
---|
3 | text=QQQText
|
---|
4 | section=QQQChapter
|
---|
5 | document=QQQBook
|
---|
6 | dls.Titles=QQQTitles
|
---|
7 | dls.Keyword=QQQHow to
|
---|
8 | dls.Subject=QQQSubjects
|
---|
9 |
|
---|
10 | textdate=QQQpublication date\:
|
---|
11 | textnumpages=QQQno. of pages\:
|
---|
12 | textsource=QQQsource ref\:
|
---|
13 |
|
---|
14 | shortDescription=QQQ<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=QQQ<h3>Features of this collection</h3> \n\
|
---|
17 | <ul> \n\
|
---|
18 | <li>Uses <tt>lucene</tt> to do incremental build.</li> \n\
|
---|
19 | <li>Uses OIDtype <tt>dirname</tt> to make it easy to specify document ids for deletion.</li> \n\
|
---|
20 | <li><tt>import</tt> folder and import.extra folder with additional material.</li> \n\
|
---|
21 | <li><tt>manifests</tt> 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=QQQ<h3>Instructions</h3><br /><p>0. Run setup/source setup.bash in top level before starting.</p><br />
|
---|
28 |
|
---|
29 | description1=QQQ<p>1. Build the collection initially\:<br /> \n\
|
---|
30 | <pre>perl -S import.pl -site localsite documented-examples/manifest-demo-e \n\
|
---|
31 | perl -S buildcol.pl -site localsite -activate documented-examples/manifest-demo-e</pre> \n\
|
---|
32 | <i>Note\:</i> If you forget to pass in the <tt>-activate</tt> flag to the <tt>buildcol</tt> command, use a file explorer to go into your Greenstone 3 installations\'s <tt>web/sites/localsite/collect/documented-examples/manifest-demo-e</tt> folder, and rename the <tt>building</tt> subfolder there to <tt>index</tt>.)<br /> \n\
|
---|
33 | <br /> \n\
|
---|
34 | Preview the collection. Contains 8 documents, 5 from BOSTID and 3 from EC Courier.</p><br />
|
---|
35 |
|
---|
36 | description2=QQQ<p>2. Add some new documents into the collection.<br /> \n\
|
---|
37 | <br /> \n\
|
---|
38 | Copy the three folders fb33fe fb34fe wb34te from import.extra into import. \n\
|
---|
39 | <br /> \n\
|
---|
40 | <pre>perl -S incremental-import.pl -site localsite -manifest manifests/add-new-files.xml documented-examples/manifest-demo-e \n\
|
---|
41 | perl -S incremental-buildcol.pl -site localsite -activate documented-examples/manifest-demo-e</pre> \n\
|
---|
42 | \n\
|
---|
43 | Now there should be FAO Better Farming Documents, and one World Bank document.</p><br />
|
---|
44 |
|
---|
45 | description3=QQQ<p>3. Delete some documents from the collection.<br /> \n\
|
---|
46 | <pre>perl -S incremental-import.pl -site localsite -manifest manifests/delete-some-files.xml documented-examples/manifest-demo-e \n\
|
---|
47 | perl -S incremental-buildcol.pl -site localsite -activate documented-examples/manifest-demo-e</pre> \n\
|
---|
48 | \n\
|
---|
49 | Note that we haven\'t actually deleted the docs from the import folder. Just from the collection\'s <tt>archives</tt> and <tt>index</tt> subfolders.<br /> \n\
|
---|
50 | Now the EC Courier documents should be gone.</p><br />
|
---|
51 |
|
---|
52 | description4=QQQ<p>4. Modify some metadata<br /> \n\
|
---|
53 | <pre>Copy import.extra/fb33fe-metadata.xml to import/fb33fe/metadata.xml \n\
|
---|
54 | Copy import.extra/fb34fe-metadata.xml to import/fb34fe/metadata.xml \n\
|
---|
55 | \n\
|
---|
56 | perl -S incremental-import.pl -site localsite -manifest manifests/new-metadata.xml documented-examples/manifest-demo-e \n\
|
---|
57 | perl -S incremental-buildcol.pl -site localsite -activate documented-examples/manifest-demo-e</pre> \n\
|
---|
58 | \n\
|
---|
59 | Preview and the new metadata should be there.</p>
|
---|