Archives/ARCHIVEID/cfg/cfg.d/

From EPrints Documentation
Revision as of 13:24, 31 January 2022 by Drn@ecs.soton.ac.uk (talk | contribs) (Added info about where cfg.d files come from.)
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects

This is the main repository configuration directory. Each of these files is a valid perl script and are loaded in alphabetic order. The configuration is stored in a hash reference named $c. For example a simple file might look like this:

# the foo option modifies the number of badgers in the boojum
$c->{foo} = 23;

Although this listing is shown as for the archive's cfg.d directory, it is actually the combined listing of all configuration files under the following cfg.d directories:

  • EPRINTS_PATH/lib/cfg.d/
  • EPRINTS_PATH/flavours/pub_lib/cfg.d/
  • EPRINTS_PATH/lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).
  • EPRINTS_PATH/flavours/pub_lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).