 				<cfset eol='found'>
 			</cfif>
 
-
-
-
-
+			<cfhttp url="http://api.gbif.org/v1/species?strict=true&name=#taxon_name#&nameType=scientific" method="get">
+				<cfhttpparam type="header" name="accept" value="application/json">
+			</cfhttp>
+
+				<cfdump var=#cfhttp#>
+
+			<cfif cfhttp.filecontent contains '"results":[]'>
+				<cfset gbif='not_found'>
+			<cfelse>
+				<cfset gbif='found'>
+			</cfif>
+
+
+
+
+
+			<br>gbif:#gbif#
 			<br>GNI:#g#
 			<br>WikiData:#w#
 			<br>WORMs:#wr#
+			<br>eol:#eol#
 
 			<cfquery name="u" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
-				update ds_temp_tax_validator set eol='#eol#',wiki='#w#',gni='#g#',worms='#wr#' where taxon_name='#taxon_name#'
+				update ds_temp_tax_validator set gbif='#gbif#', eol='#eol#',wiki='#w#',gni='#g#',worms='#wr#' where taxon_name='#taxon_name#'
 			</cfquery>
 
 		</cfloop>


<cfif action is "parse">
	<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
		select * from ds_temp_tax_validator where taxon_name is not null and wiki is null and rownum<200
	</cfquery>
	<cfif d.recordcount is 0>
		Nothing found - 	<a href="taxonNameValidator.cfm?action=showResults">showResults</a> or

alter table ds_temp_tax_validator add gni varchar2(255);
alter table ds_temp_tax_validator add worms varchar2(255);
alter table ds_temp_tax_validator add eol varchar2(255);
alter table ds_temp_tax_validator add gbif varchar2(255);

create or replace public synonym ds_temp_tax_validator for ds_temp_tax_validator;
grant all on ds_temp_tax_validator to manage_taxonomy;


-- google has diallowed useful API access to search results


-- reset for testing
update ds_temp_tax_validator set gbif=null, eol=null,wiki=null,gni=null,worms=null;





---->
<cfif action is 'gpd'>
