Commit 79d62b23 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

Merge branch 'ag/gestionBoutonsSelonContexte' into 'dev'

pour masquer PDF et porte-document selon contexte

See merge request pdn-certic/MaX!82
parents 876f43de 9e852f43
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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, 
+5 −2
Original line number Diff line number Diff line

declare variable $id external;

(: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">PDF</span>
                &#8682;<span class="texte">{$id}PDF</span>
            </a>
        </div>