Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 460 Rev 461
Line 51... Line 51...
51
		$flores = $this->getFlores();
51
		$flores = $this->getFlores();
52
		$donnees['flores'] = array_slice($flores, 0, 3);
52
		$donnees['flores'] = array_slice($flores, 0, 3);
53
		$donnees['autresFlores'] = count($flores) - 3;
53
		$donnees['autresFlores'] = count($flores) - 3;
54
		$references = $this->getBiblioBota();
54
		$references = $this->getBiblioBota();
55
		$donnees['references'] = array_slice($references, 0, 3);
55
		$donnees['references'] = array_slice($references, 0, 3);
-
 
56
		foreach ($donnees['references'] as $id=>$reference) {
-
 
57
			preg_match('/.*<strong>(.*)<\/strong>.*/', $reference['reference_html'], $titre);
-
 
58
			$donnees['references'][$id]['reference_html'] = $titre[1];
-
 
59
		}
56
		$donnees['autresReferences'] = count($references) - 3;
60
		$donnees['autresReferences'] = count($references) - 3;
57
		if ($donnees['flores'] == array() && $donnees['references'] == array()) {
61
		if ($donnees['flores'] == array() && $donnees['references'] == array()) {
58
			$donnees['wikini'] = $this->getWikini();
62
			$donnees['wikini'] = $this->getWikini();
59
		}
63
		}
60
		return $donnees;
64
		return $donnees;