Table of Contents

GS3 Collection Configuration Files in Detail

collectionConfig.xml

If you would like to change the defaults for some of the library cgi parameters, you can use <libraryParamList>.

For example, we would like the Maori Newspaper Collection to load in Maori, even though the library home page is set to English. To do this, we need to set the language cgi argument (l) to Maori (mi).

The following code can be added to the collection's collectionConfig.xml file, as a child of the main <CollectionConfig> element.

<libraryParamList>
  <param name="l" default="mi"/>
</libraryParamList>

This will add l=mi as a cgi argument to the collection's link on the library home page.

collectionInit.xml

This is used if you want to specify a different, custom, java class for the Collection object. The class name is specified using the class attribute, and it must be in the package org.greenstone.gsdl3.collection.

<collectionInit class="MyCollection"/>

This will try to load the org.greenstone.gsdl3.collection.MyCollection class, and use that instead of the default org.greenstone.gsdl3.collection.Collection class.

buildConfig.xml