name=manifest-demo-e dls.Organization=Organizations text=Text section=Chapter document=Book dls.Titles=Titles dls.Keyword=How to dls.Subject=Subjects textdate=publication date\: textnumpages=no. of pages\: textsource=source ref\: shortDescription=

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.

description=

Features of this collection

\n\ \n\ description0=

Instructions


0. Run setup/source setup.bash in top level before starting.


description1=

1. Build the collection initially\:
\n\

perl -S import.pl -site localsite documented-examples/manifest-demo-e \n\
perl -S buildcol.pl -site localsite -activate documented-examples/manifest-demo-e
\n\ Note\: If you forget to pass in the -activate flag to the buildcol command, use a file explorer to go into your Greenstone 3 installations's web/sites/localsite/collect/documented-examples/manifest-demo-e folder, and rename the building subfolder there to index.)
\n\
\n\ Preview the collection. Contains 8 documents, 5 from BOSTID and 3 from EC Courier.


description2=

2. Add some new documents into the collection.
\n\
\n\ Copy the three folders fb33fe fb34fe wb34te from import.extra into import. \n\
\n\

perl -S incremental-import.pl -site localsite -manifest manifests/add-new-files.xml documented-examples/manifest-demo-e \n\
perl -S incremental-buildcol.pl -site localsite -activate documented-examples/manifest-demo-e
\n\ \n\ Now there should be FAO Better Farming Documents, and one World Bank document.


description3=

3. Delete some documents from the collection.
\n\

perl -S incremental-import.pl -site localsite -manifest manifests/delete-some-files.xml documented-examples/manifest-demo-e \n\
perl -S incremental-buildcol.pl -site localsite -activate documented-examples/manifest-demo-e
\n\ \n\ Note that we haven't actually deleted the docs from the import folder. Just from the collection's archives and index subfolders.
\n\ Now the EC Courier documents should be gone.


description4=

4. Modify some metadata
\n\

Copy import.extra/fb33fe-metadata.xml to import/fb33fe/metadata.xml \n\
Copy import.extra/fb34fe-metadata.xml to import/fb34fe/metadata.xml \n\
 \n\
perl -S incremental-import.pl -site localsite -manifest manifests/new-metadata.xml documented-examples/manifest-demo-e \n\
perl -S incremental-buildcol.pl -site localsite -activate documented-examples/manifest-demo-e
\n\ \n\ Preview and the new metadata should be there.