Configuration orientation

From EPrints Documentation
Revision as of 16:36, 24 January 2007 by Tmb (Talk | contribs)

Jump to: navigation, search
Warning This page is under development as part of the EPrints 3.0 manual. It may still contain content specific to earlier versions. Manuals for previous versions of EPrints are also available.

You've just installed EPrints 3 and created a repository, and now you're keen to get started on customising it. Before diving into the how-tos, take some time to read through this brief orientation guide and familiarise yourself with the EPrints configuration landscape.

http://www.sxc.hu/pic/m/o/or/orek/17862_landscape.jpg

Where are the configuration files?

The default installation directory for EPrints is:

/opt/eprints3/

(you may have chosen a different installation directory when you installed EPrints).

There are several sub-directories at this level, but this guide covers only those relevant to repository configuration - the lib and archives directories. Before looking at the contents of these directories, we need to understand the concepts of global and repository-specific (or local) configuration.

What about everything else? The EPrints installation directory contains several other files and directories, which are described in the EPrints Directory Structure section.

Global vs Local configuration

A single installation of EPrints can run multiple repositories, each very different in style and functionality. Therefore, EPrints configuration files are divided into two default sets: global configuration files and repository-specific configuration files. Each repository shares the global configuration settings, whilst keeping its own set of local configuration settings.

EPrints tries to strike a sensible balance between the two sets. The global set contains the configuration options that you are probably least likely to need to change (although they are by no means unchangeable - you can override a global setting for a specific repository if you need to), whereas the repository-specific set, on the other hand, contains the most often tweaked settings.

The lib directory

Orientation browse lib.png

The lib directory is where the global configuration files are kept. This directory should be considered read only - to change a global setting for a particular repository, override the setting in the repository-specific configuration rather than edit the global configuration file directly. The configuration files in lib are organised into subdirectories according to their function, which should make finding a specific configuration file easier.

Exercise: Take a moment to explore the contents of the lib directory.

Note that the defaultcfg subdirectory contains the default set of configuration files that are copied into each new repository's local configuration directory. These local configuration directories are covered in the next section.

The archives directory

Each repository under the same installation of EPrints has its own subdirectory (named after the repository ID specified when creating the repository) under the archives directory. Each of these subdirectories contain the repository-specific configuration files (amongst other files) for that particular repository.