 				</cfloop>
 
 			</cfif>
-			
+
+		
 			<!--- 
 			<!-- Set up/fill query table used for bulk downloading-->
 			<cfset tempResult = queryaddrow(downloadResults,1)>

						<cfelse>
							<cfset cat_num = cat_item_sum>						
						</cfif>

					<cfelseif #rel_type# is "collecting_event">		
						<cfset coll_event_id=#related_primary_key#>			
						<cfset locality=trim(summary)>
						
					<cfelseif #rel_type# is "project">
						<cfset project_name=#summary#>
					</cfif>
				</cfloop>		
				
				<!-- Editing after extraction -->
				
				<cfif len(cat_num) gt 0>
					<cfset cat_num= '<a href="#cat_item_url#">' & cat_num & '</a>'>
				</cfif>
				
				<!-- If can't find a collecting event, try to find one through available cataloged item -->		
				<cfif len(locality) lte 0 and coll_obj_id gt 0>
					<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,cfid)#">
						select 
							higher_geog || ': ' || spec_locality || ' (' || verbatim_date || ')' data , collecting_event.collecting_event_id id

					<cfset dec_lat=#d.dec_lat#>
					<cfset dec_long=#d.dec_long#>
				</cfif>

			
				<!-- Orders the keywords -->
				<cfset kw_list = "#scientific_name#|#coll_event#|#description#|#agent_name#|#cat_item#|#project#|#publication#|#shows_locality#|#descr_taxonomy#">
				<cfloop list="#kw_list#" index="s" delimiters="|">
					<cfif len(trim(s)) gt 0>
						<cfif len(kw) gt 0>
