Skip to content

Config Files โ€‹

The default location of customization files is /etc/projectconfigs/
The location can be changed using the corporaInterfaceDataDir setting in the Global Settings File.

/etc/projectConfigs/
โ””โ”€ 
corpus-1/
   โ”œโ”€ 
search.xml
   โ”œโ”€ 
help.inc
   โ”œโ”€ 
about.inc
   โ”œโ”€ 
article.xsl
   โ”œโ”€ 
meta.xsl
   โ”œโ”€ 
static/
   |  โ”œโ”€ 
locales/
   |  |  โ”œโ”€ 
en-us.json
   |  |  โ””โ”€ 
...
   |  โ””โ”€ 
...
   โ”œโ”€ 
corpus-2/
   โ”œโ”€ 
corpus-3/
   โ”œโ”€ 
...
   โ”œโ”€ 
default/
   |  โ”œโ”€ 
search.xml
   |  โ””โ”€ 
...
   โ””โ”€ 
...
<--- The location set in the corporaInterfaceDataDir setting
<--- Exact name/ID of the corpus as in BlackLab
ย 
ย 
ย 
ย 
ย 
ย 
<--- Language files for the interface, specific to this corpus
ย 
ย 
<--- Anything else you want to make available client-side
ย 
ย 
ย 
<--- Fallbacks / Defaults go here
ย 
ย 
ย 

Overlay System โ€‹

Important to know

Files and static files 'overlay' each other, meaning we will always check all of the following locations, in order of precedence:

  1. The directory of the corpus itself
  2. The default dir (corporaInterfaceDefault)
  3. Inside the WAR

Example of overlaying โ€‹

When requesting /blacklab-frontend/my-corpus/static/some_script.js the server will return the first file it finds in the following locations:

  1. my-corpus/static/some_script.js
  2. default/static/some_script.js
  3. src/main/resources/interface-default/static/some_script.js (inside the WAR)

โ„น๏ธ This is also true for locales, help.inc, about.inc and search.xml files!

Apache license 2.0