 			<cfabort>
 		</cfif>
 		<cfquery name="dc" datasource="uam_god">
-			delete from cache_publication_sdata where doi='#doi#'
+			delete from cache_publication_sdata where source='crossref' and doi='#doi#'
 		</cfquery>
 		<cfquery name="uc" datasource="uam_god">
-			insert into cache_publication_sdata (doi,json_data,last_date) values ('#doi#', <cfqueryparam value="#d.Filecontent#" cfsqltype="cf_sql_clob">,sysdate)
+			insert into cache_publication_sdata (doi,json_data,source,last_date) values
+			 ('#doi#', <cfqueryparam value="#d.Filecontent#" cfsqltype="cf_sql_clob">,'crossref',sysdate)
 		</cfquery>
 		<br>added to cache
 		<cfset x=DeserializeJSON(d.Filecontent)>

		</cfloop>
	</cfif>


	<cfhttp method="get" url="http://opencitations.net/index/coci/api/v1/citations/#doi#">
		<cfhttpparam type = "header" name = "User-Agent" value = "Arctos (https://arctos.database.museum; mailto:dustymc@gmail.com)">
		<cfhttpparam type = "header" name = "Accept" value = "application/json">
	</cfhttp>
<h3>
Cited By (from http://opencitations.net)
</h3>

		<a target="_blank" class="external" href="https://api.crossref.org/v1/works/http://dx.doi.org/#doi#">view data</a>
	</p>
	<!--- see if we have a recent cache --->
	<cfquery name="c" datasource="uam_god" cachedwithin="#createtimespan(0,0,60,0)#">
		select * from cache_publication_sdata where source='crossref' and doi='#doi#' and last_date > sysdate-30
	</cfquery>
	<cfif c.recordcount gt 0>
		<br>got cache
