GS3 Collection Configuration Files in Detail


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.

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

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


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.