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

fonctions pour masquer boutons pdf et porte-document quand affichage des métadonnées

parent c0145cb5
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -201,3 +201,17 @@ for (i = 0; i < coll.length; i++) {
        }
    });
}

// pour masquer le pdf et le porte-document lorsque l'on affiche les balise archdesc et eadheader qui n'ont pas d'identifiant.
if(document.querySelector('.article_actions')){
    this.affichageBouton();
}
function affichageBouton(){
  let str=''+window.location
  let res=str.split("/")
  if((res.indexOf("eadheader.html")>0) | (res.indexOf("archdesc.html")>0))
  {
      document.getElementsByClassName("article_actions")[0].style.display='none'
      document.getElementsByClassName("ead2pdf")[0].style.display='none'
  }
}
 No newline at end of file