-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollection.xconf
153 lines (143 loc) · 10.8 KB
/
collection.xconf
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
<collection xmlns="http://exist-db.org/collection-config/1.0">
<index xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<fulltext default="none" attributes="false"/>
<lucene>
<module uri="http://teipublisher.com/index" prefix="nav" at="index.xql"/>
<text qname="tei:TEI" index="no">
<field name="kanton" expression="if (not(@type=('volinfo','introduction','biblio')) and .//tei:text/tei:body/*) then replace(tei:teiHeader//tei:seriesStmt/tei:idno, '^[^_]+_([^_]+).*$', '$1') else 'XXX'"/>
<field name="idno" expression="if (not(@type=('volinfo','introduction','biblio'))) then tei:teiHeader//tei:seriesStmt/tei:idno else '000XXX'||@subtype"/>
<field name="title" expression="if (not(@type=('volinfo','introduction','biblio'))) then tei:teiHeader//tei:msDesc/tei:head else '000XXX'||@subtype"/>
<field name="date-min" expression="nav:get-metadata(., 'notBefore')" type="xs:date"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(., 'notBefore'), '-')" hierarchical="yes"/>
<field name="type" expression="nav:get-metadata(., 'type')"/>
</text>
<text match="/tei:TEI/tei:text">
<!-- no place or author field available for Sources Online Portal Search -->
<!-- <field name="author" expression="nav:get-metadata(ancestor::tei:TEI, 'author')"/> -->
<field name="title" expression="if (not(ancestor::tei:TEI/@type=('volinfo','introduction','biblio'))) then ancestor::tei:TEI/tei:teiHeader//tei:msDesc/tei:head else '000XXX'||@subtype"/>
<field name="year" expression="substring(nav:get-metadata(ancestor::tei:TEI, 'notAfter'), 1, 4)"/>
<field name="corpus" expression="'qzh'"/>
<facet dimension="corpus" expression="'qzh'"/>
<facet dimension="language" expression="nav:get-metadata(ancestor::tei:TEI, 'language')"/>
<facet dimension="year" expression="substring(nav:get-metadata(ancestor::tei:TEI, 'notAfter'), 1, 4)"/>
<facet dimension="place" expression="nav:get-metadata(ancestor::tei:TEI, 'place')"/>
<!--field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
<field name="date-max" expression="nav:get-metadata(ancestor::tei:TEI, 'notAfter')" type="xs:date"/>
<field name="title" expression="nav:get-metadata(ancestor::tei:TEI, 'title')"/>
<field name="author" expression="nav:get-metadata(ancestor::tei:TEI, 'author')"/>
<field name="place" expression="nav:get-metadata(ancestor::tei:TEI, 'place')"/>
<field name="notAfter" expression="nav:get-metadata(ancestor::tei:TEI, 'notAfter')"/>
<field name="notBefore" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
<field name="year" expression="substring(nav:get-metadata(ancestor::tei:TEI, 'notAfter'), 1, 4)"/>
<field name="keyword" expression="nav:get-metadata(ancestor::tei:TEI, 'keyword')"/>
<field name="language" expression="nav:get-metadata(ancestor::tei:TEI, 'language')"/>
<field name="corpus" expression="'qzh'"/>
<field name="date" expression="nav:get-metadata(ancestor::tei:TEI, 'date')"/>
<field name="file" expression="util:document-name(.)"/-->
</text>
<text qname="tei:body">
<ignore qname="tei:note"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text qname="tei:back">
<ignore qname="tei:note"/>
<ignore qname="tei:orig"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:sourceDesc/tei:biblFull/tei:titleStmt/tei:title">
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:fileDesc/tei:titleStmt/tei:title">
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:msDesc/tei:head">
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:msDesc/tei:msIdentifier/tei:idno">
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:msDesc/tei:msContents/tei:summary">
<ignore qname="tei:orig"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:body/tei:note">
<ignore qname="tei:orig"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:back/tei:note">
<ignore qname="tei:orig"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:body//tei:note//tei:orig">
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:back//tei:orig">
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:msDesc/tei:msContents/tei:summary//tei:orig">
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="date-min" expression="nav:get-metadata(ancestor::tei:TEI, 'notBefore')" type="xs:date"/>
</text>
<text match="//tei:teiHeader//tei:seal">
<facet dimension="date" expression="tokenize(nav:get-metadata(ancestor::tei:TEI, 'notBefore'), '-')" hierarchical="yes"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
</text>
<text match="//tei:teiHeader//tei:supportDesc/tei:condition"/>
<text qname="tei:place" index="no">
<field name="place-n" expression="@n"/>
<field name="lname" expression="tei:placeName[@type='main']"/>
<field name="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
<facet dimension="type" expression="nav:get-metadata(ancestor::tei:TEI, 'type')"/>
</text>
<text qname="tei:person" index="no">
<field name="name" expression="tei:persName[@type='full']"/>
<field name="person-note" expression="tei:note"/>
<field name="type" expression="'Person'"/>
<facet dimension="type" expression="'Person'"/>
</text>
<text qname="tei:org" index="no">
<field name="org-name" expression="tei:orgName"/>
<field name="type" expression="'Organization'"/>
<facet dimension="type" expression="'Organization'"/>
</text>
<text qname="tei:category" index="no">
<field name="category-desc" expression="tei:desc"/>
<facet dimension="type" expression="'Keyword'"/>
</text>
</lucene>
<range>
<create qname="@ref" type="xs:string"/>
<create qname="@scribe" type="xs:string"/>
<create qname="@when" type="xs:date"/>
<create qname="tei:date">
<field name="date-type" match="@type" type="xs:string"/>
</create>
<create qname="tei:idno" type="xs:string"/>
<create qname="tei:persName" type="xs:string"/>
<create qname="tei:orgName" type="xs:string"/>
<create qname="tei:desc" type="xs:string"/>
</range>
</index>
</collection>