Commit d79aa033 authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

affichage résultat recherche

parent 56b0bf3d
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -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>
    }
@@ -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, " &#x25B8; ")
        return string-join($titles, " &#x25B8; ") :)

        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(),' &#x25B8; '))}</a> 
        
    }</li>
(:    for $c in :)
(:    <li>{$c/*:did/*:unitid/text()} | <em>{string($c/*:did/*:unitdate[1]/@normal)}</em></li>:)