Subversion Repositories eFlore/Applications.cel

Rev

Rev 416 | Rev 892 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 416 Rev 423
Line 130... Line 130...
130
				
130
				
131
			      	$url_miniature = sprintf(EF_URL_PHOTOFLORA_IMG_MIN, $abreviation, $fichier);;
131
			      	$url_miniature = sprintf(EF_URL_PHOTOFLORA_IMG_MIN, $abreviation, $fichier);;
Line 132... Line 132...
132
			      	$url_max = $illustration['about'];
132
			      	$url_max = $illustration['about'];
-
 
133
			      	
133
			      	
134
					$value=array($url_miniature,$url_max);
134
					$value=array($url_miniature,$url_max);
135
					
135
				// Priorite aux images en png
136
					// Priorite aux images en png
136
					if (strstr($fichier, '.png')) {
137
					if (strstr($fichier, '.png')) {
137
						break;
138
						break;
Line 138... Line 139...
138
					}
139
					}
Line 139... Line -...
139
			}
-
 
140
	
140
			}
141
		}
141
	
142
		
142
		}
Line 143... Line 143...
143
		$json = new Services_JSON();
143
		
Line 152... Line 152...
152
		return  analyserFichierRdf($url);
152
		return  analyserFichierRdf($url);
153
}
153
}
Line 154... Line 154...
154
	
154
	
155
function analyserFichierRdf($chemin)
155
function analyserFichierRdf($chemin)
156
{
-
 
157
	
-
 
158
	//print $chemin;
-
 
159
	
156
{
160
		$aso_info = array();
157
	$aso_info = array();
161
		$dom = new DOMDocument();
158
	$dom = new DOMDocument();
162
		$dom->validateOnParse = true;
159
	$dom->validateOnParse = true;
163
		if (preg_match('/^http:\/\//', $chemin)) {
160
	if (preg_match('/^http:\/\//', $chemin)) {
Line 188... Line 185...
188
			$aso_info['dcterms:dateSubmitted'] = utf8_decode($rdf_description->getAttribute('dateSubmitted'));
185
		$aso_info['dcterms:dateSubmitted'] = utf8_decode($rdf_description->getAttribute('dateSubmitted'));
189
			$aso_info['dcterms:spatial'] = utf8_decode($rdf_description->getAttribute('spatial'));
186
		$aso_info['dcterms:spatial'] = utf8_decode($rdf_description->getAttribute('spatial'));
190
			$aso_info['dcterms:licence'] = utf8_decode($rdf_description->getAttribute('licence'));
187
		$aso_info['dcterms:licence'] = utf8_decode($rdf_description->getAttribute('licence'));
191
			$tab_infos[$rdf_description->getAttribute('identifier')] = $aso_info; 
188
		$tab_infos[$rdf_description->getAttribute('identifier')] = $aso_info; 
192
		}
189
	}
193
		//echo '<pre>'.$chemin.print_r($tab_infos, true).'</pre>';
-
 
194
 
-
 
Line 195... Line -...
195
		
-
 
196
		//print_r($tab_infos);
190
		
197
		return $tab_infos;
191
	return $tab_infos;
Line 198... Line 192...
198
}
192
}