Loading plugins/ead_search/ead_search.xqm +4 −3 Original line number Diff line number Diff line Loading @@ -203,12 +203,13 @@ declare %private function max.plugin.ead_search:formatSearchResult($c as node(), (: let $titles := for $i in $c/ancestor-or-self::*:c return (string-join($i/*:did/*:unitid/text(),'')) return string-join($titles, " ▸ ") :) let $dbPath := max.config:getProjectDBPath($project) for $i in $c let $id := $i/self::*:c/@*:id let $baseuriXml := base-uri($c) let $baseuri := substring-after(base-uri($id),'/') let $baseuri := substring-after(base-uri($id),$dbPath) let $xslRes := file:parent(file:parent(file:parent(static-base-uri())))||"editions/"||$project||"/ui/xsl/ead/resSearch.xsl" let $req := <div><a href='{max.config:getBaseURI()}{$baseuri}/{$id}.html'>{$i/ancestor-or-self::*:c/*:did}</a><section>{$i/ancestor-or-self::*:c/*:did}</section></div> let $req := <div><a href='{max.config:getBaseURI()}{$project}{$baseuri}/{$id}.html'>{$i/ancestor-or-self::*:c/*:did}</a><section>{$i/ancestor-or-self::*:c/*:did}</section></div> return if (file:exists($xslRes)) then Loading Loading @@ -506,7 +507,7 @@ Clés d'indexation en Pleade |Lieu |geogname |@role |@normal | |Fonction |occupation |ø |@normal | |Nom |name |@role |@normal | |Personne |persname |@role |@normal | |Personne |pername |@role |@normal | |Sujet |subject |ø |@normal | |Titre |title |@type |@normal | |:--------------------------|:----------|:---------------------|:---------------------------| Loading Loading
plugins/ead_search/ead_search.xqm +4 −3 Original line number Diff line number Diff line Loading @@ -203,12 +203,13 @@ declare %private function max.plugin.ead_search:formatSearchResult($c as node(), (: let $titles := for $i in $c/ancestor-or-self::*:c return (string-join($i/*:did/*:unitid/text(),'')) return string-join($titles, " ▸ ") :) let $dbPath := max.config:getProjectDBPath($project) for $i in $c let $id := $i/self::*:c/@*:id let $baseuriXml := base-uri($c) let $baseuri := substring-after(base-uri($id),'/') let $baseuri := substring-after(base-uri($id),$dbPath) let $xslRes := file:parent(file:parent(file:parent(static-base-uri())))||"editions/"||$project||"/ui/xsl/ead/resSearch.xsl" let $req := <div><a href='{max.config:getBaseURI()}{$baseuri}/{$id}.html'>{$i/ancestor-or-self::*:c/*:did}</a><section>{$i/ancestor-or-self::*:c/*:did}</section></div> let $req := <div><a href='{max.config:getBaseURI()}{$project}{$baseuri}/{$id}.html'>{$i/ancestor-or-self::*:c/*:did}</a><section>{$i/ancestor-or-self::*:c/*:did}</section></div> return if (file:exists($xslRes)) then Loading Loading @@ -506,7 +507,7 @@ Clés d'indexation en Pleade |Lieu |geogname |@role |@normal | |Fonction |occupation |ø |@normal | |Nom |name |@role |@normal | |Personne |persname |@role |@normal | |Personne |pername |@role |@normal | |Sujet |subject |ø |@normal | |Titre |title |@type |@normal | |:--------------------------|:----------|:---------------------|:---------------------------| Loading