Skip to content
Snippets Groups Projects
Commit 6b95ed4d authored by Alex Arnaud's avatar Alex Arnaud
Browse files

dev #17871 oai - Make marc xml format is shown corrctly

parent 202705bc
Branches
Tags
2 merge requests!917Dev#17871 oaista la vista,!904Dev#17871 oaista la vista
......@@ -50,7 +50,7 @@ function activerFormat(sIdProfil)
}
// Identifiants des objets a afficher
if(sFormat == 0 || sFormat== 6)
if(sFormat == 0 || sFormat == 6 || sFormat == 7)
{
if(sTypeFichier == "0") sIdBlocFormat="unimarc_0";
else sIdBlocFormat="unimarc_1";
......
......@@ -157,7 +157,14 @@ function afficherProfil($profil,$display)
function paveUnimarcNotice($profil)
{
$id_profil=$profil["id_profil"];
if($profil["type_fichier"]==0 and ($profil["format"] == 0 or $profil["format"] == 6)) $display="block"; else $display="none";
if ($profil['type_fichier'] == Class_IntProfilDonnees::FT_RECORDS
and in_array($profil["format"], [Class_IntProfilDonnees::FORMAT_UNIMARC, Class_IntProfilDonnees::FORMAT_MARC21, Class_IntProfilDonnees::FORMAT_UNIMARC_XML]))
$display = 'block';
else
$display = 'none';
print('<div id="unimarc_0" style="display:'.$display.'">');
print('<table class="form" cellspacing="0" cellpadding="5">');
......
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