Loading plugins/ead_search/ead_search.xqm +10 −3 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ function max.plugin.ead_search:runSearch($project as xs:string, $indexes as xs:s return <section> <h3>Résultats - {count($html/li/@id)}</h3> <h4>XQuery = {$fullQuery} - (db = {$dbPath})</h4> <!--<h4>XQuery = {$fullQuery} - (db = {$dbPath})</h4>--> {$html} </section> } Loading @@ -149,9 +149,16 @@ function max.plugin.ead_search:runSearch($project as xs:string, $indexes as xs:s }; declare %private function max.plugin.ead_search:formatSearchResult($c as node(), $n as xs:integer){ <li class="ead-search-result" id="{$n}">{ let $titles := for $i in $c/ancestor-or-self::*:c (: let $titles := for $i in $c/ancestor-or-self::*:c return (string-join($i/*:did/*:unitid/text(),'')) return string-join($titles, " ▸ ") return string-join($titles, " ▸ ") :) for $i in $c let $id := $i/self::*:c/@*:id let $baseuriXml := base-uri($c) let $baseuri := base-uri($id) return <a href='{$baseuri}/{$id}.html'>{(string-join($i/ancestor-or-self::*:c/*:did/*:unitid/text(),' ▸ '))}</a> }</li> (: for $c in :) (: <li>{$c/*:did/*:unitid/text()} | <em>{string($c/*:did/*:unitdate[1]/@normal)}</em></li>:) Loading Loading
plugins/ead_search/ead_search.xqm +10 −3 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ function max.plugin.ead_search:runSearch($project as xs:string, $indexes as xs:s return <section> <h3>Résultats - {count($html/li/@id)}</h3> <h4>XQuery = {$fullQuery} - (db = {$dbPath})</h4> <!--<h4>XQuery = {$fullQuery} - (db = {$dbPath})</h4>--> {$html} </section> } Loading @@ -149,9 +149,16 @@ function max.plugin.ead_search:runSearch($project as xs:string, $indexes as xs:s }; declare %private function max.plugin.ead_search:formatSearchResult($c as node(), $n as xs:integer){ <li class="ead-search-result" id="{$n}">{ let $titles := for $i in $c/ancestor-or-self::*:c (: let $titles := for $i in $c/ancestor-or-self::*:c return (string-join($i/*:did/*:unitid/text(),'')) return string-join($titles, " ▸ ") return string-join($titles, " ▸ ") :) for $i in $c let $id := $i/self::*:c/@*:id let $baseuriXml := base-uri($c) let $baseuri := base-uri($id) return <a href='{$baseuri}/{$id}.html'>{(string-join($i/ancestor-or-self::*:c/*:did/*:unitid/text(),' ▸ '))}</a> }</li> (: for $c in :) (: <li>{$c/*:did/*:unitid/text()} | <em>{string($c/*:did/*:unitdate[1]/@normal)}</em></li>:) Loading