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:
- The directory of the corpus itself
- The
default
dir (corporaInterfaceDefault) - 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:
my-corpus/static/some_script.js
default/static/some_script.js
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!