====== Greenstone Configuration Files ====== There are several important files in your Greenstone installation that you can use to configure certain settings. This page provides an overview of some of the important configuration files, where they are located, and a description of their function. There are also some sample collection configuration files, which can be useful when configuring your own collection. =====Important Configuration Files===== The table below provides some information on important configuration files throughout your Greenstone installation. ^**Server Configuration files**^^^ ^File^Location^Description^ |**global.properties**|''GSDL3HOME/WEB-INF/classes''|Some global settings for the server, including GSDL3HOME, proxy information, and library urls.| |**siteConfig.xml**|''GSDL3HOME/sites/''| Configuration file for a site. Contains info such as site-wide services, soap connections to other servers. Replacement rules for text and metadata (used for macro replacement for greenstone 2 collections)| |**interfaceConfig.xml**|''GSDL3HOME/interfaces/''|Configuration file for an interface.| |**OAIConfig.xml**|''GSDL3HOME/WEB-INF/classes''|the configuration file for the OAI server| ^**GLI Configuration files**^^^ |**config.xml**|Linux: ''/.gli'' \\ Windows: ''C:\Documents and Settings\\Application Data\Greenstone\GLI''|Configuration file for local GLI - stores settings such as library address, last collection open, warnings activated or deactivated etc.| |**configRemote.xml**|Linux: ''/.gli'' \\ Windows: ''C:\Documents and Settings\\Application Data\Greenstone\GLI''|Separate version for use with GLI client. Basically the same as the local version, but includes gliserver address. Needed so that you can run a local GLI at the same time as running GLI with a remote library server.| ^**Collection configuration files**^^^ |**[[en:user:gs3_collection_configuration_files#collectionconfigxml |collectionConfig.xml]]**|''GSDL3HOME/sites//collect//etc''|Collection design file. Greenstone3 equivalent to collect.cfg. Can be edited by hand, or is automatically generated by the GLI| |**[[en:user:gs3_collection_configuration_files#collectioninitxml |collectionInit.xml]]**|''GSDL3HOME/sites//collect//etc''|If you want to use a custom Java class for the Collection object, it can be specified in this file.| |**[[en:user:gs3_collection_configuration_files#buildconfigxml | buildConfig.xml]]**|''GSDL3HOME/sites//collect//index''|Generated automatically by collection building process. Greenstone3 equivalent to build.cfg. Includes build statistics, and information about indexes that have been built.| ^**Admin Configuration files**^^^ |**build.xml**|''GSDL3SRCHOME''|Ant build file for compilation, installation and running Greenstone3.| |**build.properties**|''GSDL3SRCHOME''|Some properties for ccompilation and installation of Greenstone3.| |**log4j.properties**|''GSDL3HOME/WEB-INF/classes''|settings for the runtime logging| |//GSDL3SRCHOME is the main Greenstone3 directory. GSDL3HOME is, by default, the GSDL3SRCHOME/web directory, but this may be moved to somewhere else.//||| ^**Server Configuration files**^^^ ^File^Location^Description^ |**main.cfg**|''GSDLHOME/etc''|The main configuration file for the library. Includes things like activation of certain features (administration, collector, depositor, gliapplet, logging), the list of macro files to be used, the list of languages provided, customized default settings for cgi arguments.| |**gsdlsite.cfg**|Web library: same directory as ''library.exe'' (''GSDLHOME/cgi-bin/'') \\ Windows local library: same directory as ''server.exe''| Some server settings| |**oai.cfg**|GSDLHOME/etc|OAI server configuration file| ^**GLI Configuration files**^^^ |**config.xml**|Linux: ''/.gli'' \\ Windows: ''C:\Documents and Settings\\Application Data\Greenstone\GLI''|Configuration file for local GLI - stores settings such as library address, last collection open, warnings activated or deactivated etc.| |**configRemote.xml**|Linux: ''/.gli'' \\ Windows: ''C:\Documents and Settings\\Application Data\Greenstone\GLI''|Separate version for use with GLI client. Basically the same as the local version, but includes gliserver address. Needed so that you can run a local GLI at the same time as running GLI with a remote library server.| ^**Collection configuration files**^^^ |** gli.col **|''GSDLHOME/collect/''|GLI configuration file specific to a collection. Includes information about whether the collection has been previously imported or built, and stores the import and build options specified in the Create panel for that collection.| |**collect.cfg**|''GSDLHOME/collect//etc''|Collection design file. Can be edited by hand, or is automatically generated by the GLI| |**build.cfg**|''GSDLHOME/collect//index''|Generated automatically by collection building process. Includes build statistics, and information about indexes that have been built.| |//GSDLHOME is the main Greenstone directory.//||| ===== Example collection configuration file ===== The collection configuration file (collectionConfig.xml for Greenstone 3, or collect.cfg for Greenstone 2) is the main file for customising the collection. The collectionConfig.xml file should look something like the following, which shows the collection configuration file that was created by using the command ''perl —S mkcol.pl -site localsite —creator me@waikato.ac.nz dlpeople''. me@waikato.ac.nz me@waikato.ac.nz true dlpeople dlpeople Untitled document section text titles filenames
()
oai_dc http://www.openarchives.org/OAI/2.0/oai_dc.xsd http://www.openarchives.org/OAI/2.0/oai_dc/ dc:title,Title
The collect.cfg file should look something like the following, which shows the collection configuration file that was created by using the command ''perl —S mkcol.pl —creator me@waikato.ac.nz dlpeople''. creator me@waikato.ac.nz maintainer me@waikato.ac.nz public true buildtype mgpp infodbtype gdbm indexes text dc.Title,ex.dc.Title,ex.Title ex.Source defaultindex text levels document plugin ZIPPlugin plugin GreenstoneXMLPlugin plugin TextPlugin plugin HTMLPlugin plugin EmailPlugin plugin PDFPlugin plugin RTFPlugin plugin WordPlugin plugin PostScriptPlugin plugin PowerPointPlugin plugin ExcelPlugin plugin ImagePlugin plugin ISISPlugin plugin NulPlugin plugin EmbeddedMetadataPlugin plugin MetadataXMLPlugin plugin ArchivesInfPlugin plugin DirectoryPlugin classify List -metadata dc.Title;ex.Title -partition_type_within_level approximate_size classify List -metadata ex.Source -partition_type_within_level approximate_size collectionmeta collectionname "dlpeople" collectionmeta iconcollection "" collectionmeta collectionextra "" collectionmeta .text "_labeltext_" collectionmeta .dc.Title,ex.dc.Title,Title "_labelTitle_" collectionmeta .Source "_labelSource_" collectionmeta .document "_textdocument_" collectionmeta .section "_textsection_" collectionmeta .document:text [l=en] "_labeltext_" collectionmeta .document:dc.Title,Title,ex.dc.Title [l=en] "_labelTitle_" collectionmeta .document:Source [l=en] "_labelSource_" collectionmeta .document:dc.Title,Title [l=en] "_labelTitle_" There is also a [[en:user:list_of_configuration_file_options|list of all available configuration file options]]. ===== Sample Collection Configuration Files ===== The configuration files of some of the collections on [[http://www.nzdl.org]] are made available here. |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=acrodemo|Acronym Extraction Demo]] |[[http://www.nzdl.org/gsdl/collect/acrodemo/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aginfo|Agricultural Information Modules]] |[[http://www.nzdl.org/gsdl/collect/aginfo/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=arabic|Arabic Collection]]|[[http://www.nzdl.org/gsdl/collect/arabic/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=tulane|Bibliotheque pour le Developpement]]|[[http://www.nzdl.org/gsdl/collect/tulane/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=chinese|Chinese Demonstration collection]] |[[http://www.nzdl.org/gsdl/collect/chinese/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=ccgi|Collection on Critical Global Issues (2nd edition)]] | [[http://www.nzdl.org/gsdl/collect/ccgi/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=coltbib|Colt Bibliography]] |[[http://www.nzdl.org/gsdl/collect/coltbib/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=csbib|Computer Science Bibliographies]] | [[http://www.nzdl.org/gsdl/collect/csbib/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=tcc|The Computists' Weekly]] |[[http://www.nzdl.org/gsdl/collect/tcc/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=gtz|Crystal]]|[[http://www.nzdl.org/gsdl/collect/gtz/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=faodocs|FAO document repository]] |[[http://www.nzdl.org/gsdl/collect/faodocs/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=fi1998|FAO on the Internet (1998)]] |[[http://www.nzdl.org/gsdl/collect/fi1998/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=fnl1_1|Food and Nutrition Library 1.1]] |[[http://www.nzdl.org/gsdl/collect/fnl1_1/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=gsarch|Greenstone Archives ]] |[[http://www.nzdl.org/gsdl/collect/gsarch/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=hcibib|HCI Bibliography]] |[[http://www.nzdl.org/gsdl/collect/hcibib/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=hdl|Humanity Development Library]] |[[http://www.nzdl.org/gsdl/collect/hdl/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=ipc|Indigenous Peoples]] |[[http://www.nzdl.org/gsdl/collect/ipc/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft|Kiwi Aircraft Images ]] |[[http://www.nzdl.org/gsdl/collect/aircraft/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=folktale|Language Extraction Demo]] |[[http://www.nzdl.org/gsdl/collect/folktale/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=mhl|Medical and Health Library ]] |[[http://www.nzdl.org/gsdl/collect/mhl/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=wordpdf|MSWord and PDF Demonstration]] |[[http://www.nzdl.org/gsdl/collect/wordpdf/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=musvid|Music Videos ]] |[[http://www.nzdl.org/gsdl/collect/musvid/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=rocky|OAI Plugin demo]] |[[http://www.nzdl.org/gsdl/collect/rocky/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=povsem|Poverty Alleviation ]] |[[http://www.nzdl.org/gsdl/collect/povsem/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=gberg|Project Gutenberg]] |[[http://www.nzdl.org/gsdl/collect/gberg/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=tidbits|TidBITS]] |[[http://www.nzdl.org/gsdl/collect/tidbitsetc/collect.cfg|collect.cfg file ]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=paho|Virtual Disaster Library ]] |[[http://www.nzdl.org/gsdl/collect/paho/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=whist|Women's History]] |[[http://www.nzdl.org/gsdl/collect/whist/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=envl|World Environment Library ]] |[[http://www.nzdl.org/gsdl/collect/envl/etc/collect.cfg|collect.cfg file]]| |[[http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=ohist|Youth Oral History]] |[[http://www.nzdl.org/gsdl/collect/ohist/etc/collect.cfg|collect.cfg file]]| ===== Additional Resources ===== * **[[http://files.greenstone.org/technical/inside_greenstone.pdf|Inside Greenstone Collections]]** (Greenstone 2, written for 2.40) This document presents and explains the configuration files for a few actual Greenstone collections, and also gives an example of how Greenstone's appearance can be customized. (Note, this document is intended to be used with Greenstone version 2.40 and higher.)