diff --git a/collection.xconf b/collection.xconf index d7a59a51..c3850f50 100644 --- a/collection.xconf +++ b/collection.xconf @@ -8,6 +8,7 @@ + diff --git a/data/test/DamenConvLex-1834.xml b/data/test/DamenConvLex-1834.xml index 717ca3e5..38d2b291 100644 --- a/data/test/DamenConvLex-1834.xml +++ b/data/test/DamenConvLex-1834.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/F-rom.xml b/data/test/F-rom.xml index 6fd96895..6f6abb39 100644 --- a/data/test/F-rom.xml +++ b/data/test/F-rom.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/cortes_to_dantiscus.xml b/data/test/cortes_to_dantiscus.xml index 2b696339..9dc47d5c 100644 --- a/data/test/cortes_to_dantiscus.xml +++ b/data/test/cortes_to_dantiscus.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/cortes_to_dantiscus_Mexico.xml b/data/test/cortes_to_dantiscus_Mexico.xml index 346fea7c..4e55c251 100644 --- a/data/test/cortes_to_dantiscus_Mexico.xml +++ b/data/test/cortes_to_dantiscus_Mexico.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/ebbe.xml b/data/test/ebbe.xml index 293c8883..e4850970 100644 --- a/data/test/ebbe.xml +++ b/data/test/ebbe.xml @@ -1,7 +1,7 @@ - + diff --git a/data/test/graves6.xml b/data/test/graves6.xml index 1e7fcbda..f5923c69 100644 --- a/data/test/graves6.xml +++ b/data/test/graves6.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/kant_rvernunft_1781.TEI-P5.xml b/data/test/kant_rvernunft_1781.TEI-P5.xml index 1e090747..a10f15da 100644 --- a/data/test/kant_rvernunft_1781.TEI-P5.xml +++ b/data/test/kant_rvernunft_1781.TEI-P5.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/let695.xml b/data/test/let695.xml index 64107b43..094b8793 100644 --- a/data/test/let695.xml +++ b/data/test/let695.xml @@ -3,7 +3,7 @@ - + diff --git a/data/test/orlik_to_serafin.xml b/data/test/orlik_to_serafin.xml index d62fc8d1..0bcfaa88 100644 --- a/data/test/orlik_to_serafin.xml +++ b/data/test/orlik_to_serafin.xml @@ -1,5 +1,5 @@ - + diff --git a/data/test/osinski.xml b/data/test/osinski.xml index 9c51e917..7b6a213c 100644 --- a/data/test/osinski.xml +++ b/data/test/osinski.xml @@ -1,6 +1,6 @@ - + diff --git a/data/test/pb-mei-app.xml b/data/test/pb-mei-app.xml index 04b9c06f..40baffb7 100644 --- a/data/test/pb-mei-app.xml +++ b/data/test/pb-mei-app.xml @@ -2,7 +2,7 @@ - + diff --git a/data/test/test.docx.xml b/data/test/test.docx.xml index 9fd66188..1ce20174 100644 --- a/data/test/test.docx.xml +++ b/data/test/test.docx.xml @@ -1,5 +1,5 @@ - + diff --git a/index.xql b/index.xql index 0d56f93a..0cf8d8d0 100644 --- a/index.xql +++ b/index.xql @@ -60,6 +60,8 @@ declare function idx:get-metadata($root as element(), $field as xs:string) { root($root)//dbk:info/dbk:keywordset[@vocab="#genre"]/dbk:keyword, root($root)//article-meta/kwd-group[@kwd-group-type="genre"]/kwd ) + case "category" return + (root($root)/tei:TEI/@n, "ZZZ")[1] case "feature" return ( idx:get-classification($header, 'feature'), $root/dbk:info/dbk:keywordset[@vocab="#feature"]/dbk:keyword @@ -94,4 +96,4 @@ declare function idx:get-classification($header as element()?, $scheme as xs:str let $category := id(substring($target, 2), doc($idx:app-root || "/data/taxonomy.xml")) return $category/ancestor-or-self::tei:category[parent::tei:category]/tei:catDesc -}; +}; \ No newline at end of file diff --git a/modules/lib/browse.xql b/modules/lib/browse.xql index ef54d982..bc6ce003 100644 --- a/modules/lib/browse.xql +++ b/modules/lib/browse.xql @@ -56,7 +56,7 @@ function app:clear-facets($node as node(), $model as map(*)) { declare %templates:wrap %templates:default("field", "text") - %templates:default("sort", "title") + %templates:default("sort", "category") function app:form($node as node(), $model as map(*), $field as xs:string, $sort as xs:string) { map { "field": $field, diff --git a/templates/index.html b/templates/index.html index 23db809e..0b1a0b9a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -90,6 +90,7 @@

The Instant Publishing Toolbox + Default