Commit 59d85db4 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

Merge branch 'feature/search-#13-#14' into 'develop'

Feature/search (closes #14)

Closes #14

See merge request !38
parents e0951c31 e8232f40
...@@ -59,6 +59,7 @@ declare function app:get-prefix() { ...@@ -59,6 +59,7 @@ declare function app:get-prefix() {
declare function app:css-injection($node as node(), $model as map(*), $exist-resource) { declare function app:css-injection($node as node(), $model as map(*), $exist-resource) {
switch ($exist-resource) switch ($exist-resource)
case "publish.html" return <link href="~assets/publish-gui/publish-gui.css" rel="stylesheet"/> case "publish.html" return <link href="~assets/publish-gui/publish-gui.css" rel="stylesheet"/>
case "search.html" return <link href="~assets/faceted-search/search.css" rel="stylesheet"/>
case "content.html" return case "content.html" return
(<link href="~assets/TEI-Stylesheets/tei.css" rel="stylesheet"/>, (<link href="~assets/TEI-Stylesheets/tei.css" rel="stylesheet"/>,
<link href="templates/css/content.css" rel="stylesheet"/>) <link href="templates/css/content.css" rel="stylesheet"/>)
......
...@@ -229,13 +229,13 @@ declare function local:facet($model as map(*), $hits as node()*, $key as xs:stri ...@@ -229,13 +229,13 @@ declare function local:facet($model as map(*), $hits as node()*, $key as xs:stri
let $facetRemoveQuery := replace($facetReq, $key || ":" || xmldb:encode($facet) || "," , "") let $facetRemoveQuery := replace($facetReq, $key || ":" || xmldb:encode($facet) || "," , "")
return return
<li class="facetSelected"> <li class="facetSelected">
<a class="facet-minus" href="{ $search-html }?q={ $query }&amp;facet={ $facetRemoveQuery }&amp;order={ $order }&amp;order-by={ $order-by }">-</a> <a class="facet-minus" href="{ $search-html }?q={ $query }&amp;facet={ $facetRemoveQuery }&amp;order={ $order }&amp;order-by={ $order-by }"><i class="fas fa-minus"></i> </a>
{ $facet } ({ $freq }) { $facet } ({ $freq })
</li> </li>
else else
<li> <li>
<a class="facet-minus" href="{ $search-html }?q={ $query }&amp;facet={ $key }:!{ xmldb:encode($facet) },{ $facetReq }&amp;order={ $order }&amp;order-by={ $order-by }">-</a> <a class="facet-minus" href="{ $search-html }?q={ $query }&amp;facet={ $key }:!{ xmldb:encode($facet) },{ $facetReq }&amp;order={ $order }&amp;order-by={ $order-by }"><i class="fas fa-plus"></i></a>
<a href="{ $search-html }?q={ $query }&amp;facet={ $key }:{ xmldb:encode($facet) },{ $facetReq }&amp;order={ $order }&amp;order-by={ $order-by }">{ $facet }</a> ({ $freq }) <a href="{ $search-html }?q={ $query }&amp;facet={ $key }:{ xmldb:encode($facet) },{ $facetReq }&amp;order={ $order }&amp;order-by={ $order-by }">{ $facet } </a> ({ $freq })
</li> </li>
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment