forked from subugoe/typo3-find-edfu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedfu.ts
216 lines (203 loc) · 5.16 KB
/
edfu.ts
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# »find« extension configuration for the Edfu index.
#
# 2013 Sven-S. Porst, SUB Göttingen <[email protected]>
#
plugin.tx_find {
# Paths for own templates and partials.
# Most of them use symlinks to point back to the standard files provided by the extension.
view {
templateRootPath = EXT:find/Projects/edfu/Templates/
partialRootPath = EXT:find/Projects/edfu/Partials/
}
settings {
# Connection setup for the Solr index.
# Needs to be adapted / overwritten for the final configuration.
connection {
host = 127.0.0.1
port = 8080
path = /solr/edfu
# Use a long 10 second timeout for Solr queries.
timeout = 10
}
# Add a filter query to not return documents of type »gott« or »ort«
# This will removed when project members log in with their account.
# (See the note at the end of the configuration file for details.)
additionalFilters {
3 = -typ:gott
4 = -typ:ort
}
# Query field configuration
queryFields {
# Main query field, suppress typ »wb_berlin« and »stelle« documents.
0 {
query = %s -typ:wb_berlin -typ:stelle
noescape = 1
}
# Second query field for transliteration. Search with/out suffix
# can be toggled with a checkbox.
10 {
id = translit
type = Text
query = transliteration:%s -typ:wb_berlin -typ:stelle
queryAlternate.1 = transliteration_nosuffix:%s -typ:wb_berlin -typ:stelle
noescape = 1
}
# Hidden search field for szene ID. Used when clicking on a scene
# in the temple map.
30 {
id = szene
hidden = 1
query = szene_uid:%s -typ:wb_berlin -typ:stelle
type = Text
}
# Hidden search field for text type. Used when clicking a text type
# to find all formular records of that type.
40 {
id = texttyp
hidden = 1
query = texttyp:%s
phrase = 1
type = Text
}
# Hidden search field for place name. Used when clicking a place name
# to find all documents associated with that name.
50 {
id = ort
hidden = 1
query = ort:%s
phrase = 1
type = Text
}
# Hidden search field for localisation. Used when clicking a localisation
# to find all documents associated with it.
60 {
id = lokalisation
hidden = 1
query = lokalisation:%s
phrase = 1
type = Text
}
}
# Set up the correspondence between data fields and query field IDs.
# Used for creating the links.
queryFieldForDataField {
texttyp = texttyp
ort = ort
lokalisation = lokalisation
}
# Sort by the sort field in the documents.
# These have differing content depending on their type.
sort {
1 {
id = default
sortCriteria = sort asc
}
}
# Fields to use for displaying the result list.
standardFields {
title = transliteration
snippet = uebersetzung
}
# Facet configuration.
facets {
# The typ facet is used for the tabs at the top.
# It comes with explicit facet queries for the types we want to display.
# Only the two types we want to display by default are configured here.
# The remaining types only appear for logged in users and are configured
# at the end of the file.
10 {
id = typ
excludeOwnFilter = 1
type = Tabs
hidden = 1
# Show »formular« type by default
selectedByDefault {
formular = 1
}
facetQuery {
10 {
id = formular
query = typ:formular
}
20 {
id = wort
query = typ:wort
}
}
}
# There are 8 Chassinat volumes, show all of them.
20 {
id = band
field = band
sortOrder = index
displayDefault = 8
}
# In case documents on other temples than Edfu are included,
# add a facet with the temple name.
30 {
id = tempel
field = tempel
fetchMinimum = 1
}
}
# Configure the fields to highlight.
highlight {
default {
fields {
f1 = transliteration_highlight
f2 = uebersetzung
f3 = texttyp
f4 = eponym
f5 = beziehung
f6 = ort
f7 = weiteres
f8 = anmerkung
}
# Use a really large fragsize as we have to operate on the results with
# regular expressions which only works reliably if we are guaranteed to
# have all opening and closing transliteration brackets in our
# highlight string
fragsize = 5000
useQueryTerms = 0
useFacetTerms = 0
alternateFields {
transliteration = transliteration_highlight
bandseitezeile = bandseitezeile_highlight
}
}
detail {
f51 = literatur
f52 = ortsbeschreibung
f53 = funktion
f54 = stelle_anmerkung
f55 = lemma
}
}
# Configure custom CSS, JavaScript and localisation resources.
CSSPaths.50 = EXT:find/Projects/edfu/Resources/edfu.css
JSPaths.50 = EXT:find/Projects/edfu/Resources/edfu.js
languageRootPath = EXT:find/Projects/edfu/Language/
}
}
# The default configuration does not show the »gott« and »ort« type records.
# These are only configured for logged in project members.
# TODO: set the number in the [usergroup = 1] line to the id of the Edfu
# frontend user group.
[usergroup = 1]
plugin.tx_find.settings {
facets.10.facetQuery {
30 {
id = gott
query = typ:gott
}
40 {
id = ort
query = typ:ort
}
}
additionalFilters {
3 >
4 >
}
}
[global]