Greenstone tutorial exercise

Back to wiki
Back to index

CDS/ISIS collection

This exercise is similar to the Bibliographic collection exercise, except that a CDS/ISIS database is used instead of a MARC database, and we do not explode the database.

  1. Start a new collection called ISIS Collection, fill out appropriate fields for it, and choose Dublin Core as the metadata set.

  1. Drag the files from sample_files → isis into the collection.

  1. Build and preview the collection. The default indexes, classifiers and formats are not very useful for this data. There is no metadata searching, and the Titles A-Z classifier is completely empty. The filenames classifier is useless because all records come from the same file.

  1. In the Design panel select Search Types from the left-hand list and activate the Enable Advanced Searches option.

  1. Add form searching to the collection by selecting form in the Search Types: menu and clicking <Add Search Type>. Remove plain searching by selecting plain in the Currently Assigned Search Types list, and clicking <Remove Search Type>.

  1. In the Search Indexes section, remove the useless Source and Title indexes, and add new indexes for Photographer^all, Country^all and Notes^all metadata.

    CDS/ISIS metadata has subfields, and these are represented using ^.

  1. In the Browsing Classifiers section, remove the existing (useless) classifiers for Title and Source, and add a new AZList for Photographer.

  1. In the Format Features section, change the VList format statement to display Photographer and Notes metadata. Change it to look like:

    <td valign=top>[link][icon][/link]</td>
    <td valign=top><b>[ex.Photographer^all]</b><br/>[ex.Notes^all]</td>

    Click <Replace Format>.

  1. Rebuild and preview the collection.

ISISPlug stores a nicely formatted version of the record as the document text, and this is what is displayed when we view a record. Lets tidy it up a little more.

  1. In the Format Features section, remove the DETACH and NO HIGHLIGHTING buttons by setting the DocumentButtons format statement to empty, and clicking <Replace Format>.

  1. Remove the "Untitled" at the top of the document by setting the DocumentHeading format statement to empty and clicking <Replace Format>.

  1. Finally, lets link to the raw record, which is stored as ISISRawRecord metadata. Edit the DocumentText format statement to look like:

    <p>[Text]</p>
    {If}{_cgiargshowrecord_,
    <b>CDS Record:</b><br/><tt>[ISISRawRecord]</tt><p/>
    <center><a href=\'_gwcgi_?e=_cgiarge_&a=d&d=_cgiargd_\'>Hide CDS Record</a></center>,
    <center><a href=\'_gwcgi_?e=_cgiarge_&a=d&d=_cgiargd_&showrecord=1\'>Show CDS Record</a></center>
    }

    Don't forget to click <Replace Format>.

  1. Preview the collection.