Loading plugins/ead_search/ead_search.xqm +5 −4 Original line number Diff line number Diff line Loading @@ -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..."/> Loading Loading @@ -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> Loading Loading @@ -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,'/') Loading Loading
plugins/ead_search/ead_search.xqm +5 −4 Original line number Diff line number Diff line Loading @@ -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..."/> Loading Loading @@ -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> Loading Loading @@ -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,'/') Loading