-
Notifications
You must be signed in to change notification settings - Fork 7
/
search.xml
100 lines (85 loc) · 5.39 KB
/
search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="utf-8" ?>
<SearchInterface>
<InterfaceProperties>
<!--
Limited variable interpolation is supported.
${request:contextPath} - the application root path on the client, usually /corpus-frontend . Is equal to the cfUrlExternal setting. Does not contain a trailing slash.
${request:corpusPath} - the corpus root path on the client, usually /corpus-frontend/${corpus-id}, equal to ${request:contextPath} if not viewing a corpus. Does not contain a trailing slash.
${request:corpusId} - the corpus id (including username portion for user corpora), so 'lassy' or 'username:corpus-name', empty if not viewing a corpus.
Paths do not contain a trailing slash
-->
<!--
Custom files can be made available by placing them in a ./static directory within the corpus data directory
(the exact location of that directory is configured in the .properties file for AutoSearch.)
These files can then be accessed through the url ${request:corpusPath}/static/**
So when you create a static/img/ directory containing logo.png for the 'zeebrieven' corpus,
the url here would be '${request:contextPath}/zeebrieven/static/img/logo.png', or '${request:corpusPath}/static/img/logo.png'
and the directory structure would be ${interfaceDataDir}/zeebrieven/static/img/logo.png
Tip: use relative urls to reference resources from inside other resources (such from within custom css or js) (e.g. '../img/**' for images in a css file)
-->
<!-- When a DisplayName has been set, it will be shown in stead of the raw corpus name.
If omitted, we will fall back to the displayName configured in BlackLab-Server,
if that is not configured either, the internal corpus name is shown. -->
<!--<DisplayName>BlackLab AutoSearch Corpus Search</DisplayName>-->
<!-- Should be a directory; see webapp/img/ for a full listing of files -->
<FaviconDir>${request:contextPath}/img</FaviconDir>
<!--
You can include custom js and css (usually from your corpus interface directory under /${contextPath}/corpusname/static/**), but external sites are supported.
Attributes on the <CustomJs> (such as 'type="module"') tag are copied to the <script> tag on the page.
The 'page' attribute is special, it's not copied, but controls lets you only run the script on the specified page (options: search, article, about, help, error, config, corpora, remote-index).
Simply remove the 'page' attribute to include the script on every page.
-->
<!--
<CustomJs page="search" type="module">${request:corpusPath}/static/some.other.js</CustomJs>
<CustomCss page="article">${request:corpusPath}/static/your.css</CustomCss>
-->
<!--
You can define which properties/annotations to show as columns in the results table.
By default (up to) the first 3 properties are shown, but 'lemma' and 'pos' have precedence and are always shown if they exist in the corpus.
-->
<!-- <PropColumns>lemma,pos,tense, person,number</PropColumns> -->
<NavLinks>
<Link value="http://www.ivdnt.org/" newWindow="true">INT</Link>
<Link value="http://www.clarin.eu/" newWindow="true">CLARIN</Link>
<Link value="https://www.clariah.nl/" newWindow="true">CLARIAH</Link>
<Link value="${request:corpusPath}/help">Help</Link>
<Link value="${request:corpusPath}/about">About</Link>
</NavLinks>
<Article>
<!--
Set to true to enable pagination when viewing documents.
This setting is not enabled by default, as it may result in issues displaying the document's content,
because xsl files will not run on the complete document any longer, thus xpaths may fail unexpectedly.
-->
<Pagination>false</Pagination>
<!-- When pagination is enabled, this controls the length of a page. -->
<PageSize>1000</PageSize>
</Article>
<!-- Google analytics. Disabled if not provided. -->
<!--
<Analytics>
<Key>google analytics key</Key>
</Analytics>
-->
<!-- see https://github.com/moritzsternemann/vue-plausible -->
<!--
<Plausible>
<domain>The domain registered with plausible</domain>
<apiHost>The instance of plausible to use (for when self-hosting), normally https://plausible.io</apiHost>
</Plausible>
-->
</InterfaceProperties>
<XsltParameters>
<!--
The following values are provided automatically:
Typically /corpus-frontend/ or similar. Takes the value of cfUrlExternal from the .properties file.
Will not contain a trailing slash.
<XsltParameter name="contextPath" value="${request:contextPath}"/>
The corpus path, usually /corpus-frontend/${corpus-id}, equal to ${request:contextPath} if not viewing a corpus.
Will not contain a trailing slash.
<XsltParameter name="corpusPath" value="${request:corpusPath}"/>
The corpus ID (including username portion for user corpora), so 'lassy' or 'username:corpus-name', empty if not viewing a corpus.
<XsltParameter name="corpusId" value="${request:corpusId}"/>
-->
</XsltParameters>
</SearchInterface>