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

pour masquer PDF et porte-document selon contexte

parent 148f9b52
......@@ -8,7 +8,11 @@ declare variable $id external;
let $locale := max.i18n:getLang($project)
return <nav class="article_actions">
return
if($id='eadheader' or $id='archdesc')
then ()
else
<nav class="article_actions">
<ul>
<li>
<label>
......
......@@ -32,7 +32,7 @@ function max.plugin.metadata:getMetadataDocument($project, $doc, $tag, $search a
let $html := max.html:render(
$project, $doc,
<div>
<div class="plugins-wrapper">{max.html:invokePluginXQueries($project, $doc, ())}</div>
<div class="plugins-wrapper">{max.html:invokePluginXQueries($project, $doc, $tag)}</div>
<div id='text'>
{xslt:transform(
$xml,
......
declare variable $id external;
<div class="ead2pdf">
<a role="button" title="Export pdf" target="_blank" href="./ead/{$id}.pdf">
&#8682;<span class="texte">PDF</span>
</a>
</div>
(:hides pdf export in eadheader or archdesc consult context :)
if($id='eadheader' or $id='archdesc')
then ()
else
<div class="ead2pdf">
<a role="button" title="Export pdf" target="_blank" href="./ead/{$id}.pdf">
&#8682;<span class="texte">{$id}PDF</span>
</a>
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment