Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 572 | Rev 575 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 572 Rev 574
Line 832... Line 832...
832
		}
832
		}
833
		return $nom_complet;
833
		return $nom_complet;
834
	}
834
	}
Line 835... Line 835...
835
 
835
 
836
	public function tronquerBiblio($valeur){
836
	public function tronquerBiblio($valeur){
837
		$bib = strstr($valeur,',', true);
837
		$bib = '';
838
		if(strpos($bib,';')) {
-
 
839
			$bib = strstr($bib,';');
838
		if(strpos($valeur,',') !== false) {
840
			$bib = str_replace('; ','',$bib);
839
			$bib = explode(',',$valeur);
-
 
840
		}
-
 
841
		if(strpos($bib[0],';') !== false) {
-
 
842
			$bib[0] = strstr($bib[0],';');
-
 
843
			$bib[0] = str_replace('; ','',$bib[0]);
841
		}
844
		}
842
		return $bib;
845
		return $bib[0];
Line 843... Line 846...
843
	}
846
	}