 	</cfloop>
 
 
-	<cfset tmp=srchdr & chr(10) & s.sequence_id>
+	<cfset tmp=tmp & chr(10) & s.sequence_id>
 	<cfset tmp=tmp & chr(9) & sd.COLLECTORS>
 	<cfset tmp=tmp & chr(9) & sd.cdate>
 	<cfset tmp=tmp & chr(9) & sd.country>

	<!--- IDK if anyone will have this but we should --->
	<cfset tmp=tmp & chr(9) & "">

	<cffile action="write" mode="777" file="#dir#/#sequence_identifier#.src" output="#tmp#" addnewline="false">

<a href="/temp/#d.batch_name#/#sequence_identifier#.src">/temp/#d.batch_name#/#d.batch_name#.src</a>


</cfloop>


	<p>

			collection_object_id=#collection_object_id#
	</cfquery>

	<cfif lnum gt 1>
		<cfset tmp_sq=tmp_sq & chr(10)>
	</cfif>
	<cfset tmp_sq=tmp_sq & ">#sequence_identifier# [organism=#sd.scientific_name#]#chr(10)##sequence_data#">


	<cfset host="">
	<cfloop list="#sd.RELATEDCATALOGEDITEMS#" index="i" delimiters=";">
