forked from srophe/britishLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacet-def.xml
30 lines (29 loc) · 1.58 KB
/
facet-def.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
<facets xmlns="http://expath.org/ns/facet">
<facet-definition name="script" label="Script">
<group-by function="scriptValues">
<sub-path>descendant::tei:msDesc/tei:physDesc/tei:handDesc/tei:handNote/@script</sub-path>
</group-by>
<max-values show="5">10</max-values>
<order-by direction="ascending">value</order-by>
</facet-definition>
<facet-definition name="material" label="Material">
<group-by function="materialValues">
<sub-path>descendant::tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/@material</sub-path>
</group-by>
<max-values show="5">10</max-values>
<order-by direction="ascending">value</order-by>
</facet-definition>
<facet-definition name="classfication" label="Wright's Subject Classification">
<group-by>
<sub-path>descendant::tei:msDesc/tei:head/tei:listRelation[@type="Wright-BL-Taxonomy"]/tei:relation[@name="dcterms:type"]/tei:desc</sub-path>
</group-by>
<max-values show="5">10</max-values>
<order-by direction="ascending">value</order-by>
</facet-definition>
<!--
/TEI/teiHeader/fileDesc/sourceDesc/msDesc/head/listRelation[@type="Wright-BL-Taxonomy"]/relation[@name="dcterms:type"]
Here are those xpaths:
Date: /TEI/teiHeader/fileDesc/sourceDesc/msDesc/history/origin/origDate. We will want to use the @notBefore, @notAfter, @from, @to, and @when attributes.
Note that there is sometimes an //origDate element with @notBefore-custom, etc. attributes but we don't want to use these for the slider
-->
</facets>