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

display:none sur le champ de recherche date qui ne fonctionne pas trop trop

parent df7ddbb4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ function max.plugin.ead_search:searchPage($project){
    let $simpleSearch := 
        <section>
    <p>La recherche peut se faire de deux manières indépendantes : </p><ul><li>soit par une recherche en plein texte,</li> <li>soit par une recherche multicritère (dont fait partie la recherche par année de production).</li></ul>
    <p>On ne peut croiser ces deux types de recherche.</p>
    <p>On ne peut pas croiser ces deux types de recherche.</p>
        <div id="ead-search-simple">
            <label>Recherche plein texte </label>
            <input id="searchInput" type="text" placeholder="Texte..."/>
@@ -86,7 +86,8 @@ function max.plugin.ead_search:searchPage($project){
            </div>
            else ()
        }
            <div id="ead-search-date-wrap">
        <!-- par défaut on masque la recherche par date -->
            <div id="ead-search-date-wrap" style="display:none">
                <input type="checkbox" id="ead-search-date-cb"/>
                <label>Année de production</label>
                <!--<div>
@@ -264,10 +265,10 @@ declare %private function max.plugin.ead_search:dateIntervalFilter($from as xs:s

    return
    for $m in $matches
        where $m/ancestor::*:c[1][@otherlevel='manuscrit']//*:unitdate[1]
        where $m/ancestor::*:c[1][@otherlevel]//*:unitdate[1]
        (: where $m//*:unitdate[1] :)
        (: let $unitDate := string((($m//*:unitdate)[1])/@normal) :)
        let $unitDate := string((($m/ancestor::*:c[1][@otherlevel='manuscrit']//*:unitdate)[1])/@normal)
        let $unitDate := string((($m/ancestor::*:c[1][@otherlevel]//*:unitdate)[1])/@normal)
        return if(contains($unitDate,'/'))
            then
            let $dates := tokenize($unitDate,'/')