Skip to content
Snippets Groups Projects
Commit 7de42460 authored by jgaimard's avatar jgaimard
Browse files

Corrections st claude (avenio)

parent 0d8c02db
Branches
Tags
No related merge requests found
......@@ -176,7 +176,8 @@ class notice_avenio
{
$elems=explode("(",$enreg);
$nom=$elems[0];
$prenom=substr(trim($elems[1],0,(strlen(trim($elems[1]))-1)));
$prenom=trim($elems[1]);
$prenom=substr($prenom,0,(strlen($prenom)-1));
$auteurs[]=$nom . "|" .$prenom;
}
return $auteurs;
......@@ -287,7 +288,9 @@ class notice_avenio
{
if(!trim($auteur)) continue;
$elems=explode("|",$auteur);
$notice_sgbd->add_field("700","1 ","a".trim($elems[0]." ".trim($elems[1])));
$data_auteur[0]=array('a',$elems[0]);
if($elems[1]>'') $data_auteur[1]=array('b',$elems[1]);
$notice_sgbd->add_field("700","01",$data_auteur);
}
}
$unimarc=$notice_sgbd->update();
......
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