 							cataloged_item.collection_object_id=#coll_obj_id#
 					</cfquery>
 					
-					<cfset locality = trim(d.data)>
+					<cfset coll_event_locality = trim(d.data)>
 					<cfset coll_event_id=#d.id#>
+					
+					<cfset coll_event_uri="/showLocality.cfm?action=srch&collecting_event_id=" & #d.id#>
 					
 
 				</cfif>

				</cfloop>

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

						<cfelse>
							<cfset cat_num = cat_item_sum>						
						</cfif>
						
						<cfif len(#link#) gt 0>
							<cfset cat_item = '<a href="#link#">#cat_num#</a>'>
						<cfelse>
							<cfset cat_item = cat_num>
						</cfif>

					<cfelseif #rel_type# is "collecting_event">		
						<cfset coll_event_id=#related_primary_key#>		
						
						<cfif len(#link#) gt 0>
							<cfset coll_event = '<a href="#link#">' & trim(summary) & '</a>'>
						<cfelse>
							<cfset coll_event =  trim(summary)>
						</cfif>
						
					<cfelseif #rel_type# is "project">						
						<cfif len(#link#) gt 0>
							<cfset project = 'Project: <a href="#link#">' & trim(summary) & '</a>'>
						<cfelse>
							<cfset project =  trim(summary)>
						</cfif>
						
					<cfelseif #rel_type# is "publication">
						<cfif len(#link#) gt 0>
							<cfset publication = 'Publication: <a href="#link#">' & trim(summary) & '</a>'>
						<cfelse>
							<cfset publication =  trim(summary)>
						</cfif>

					<cfelseif #rel_type# is "locality">
						<cfif len(#link#) gt 0>
							<cfset shows_locality = 'Shows locality: <a href="#link#">' & trim(summary) & '</a>'>
						<cfelse>
							<cfset shows_locality =  trim(summary)>
						</cfif>
					
					<cfelseif #rel_type# is "taxonomy">
						<cfif len(#link#) gt 0>
							<cfset descr_taxonomy = 'Describes Taxonomy: <a href="#link#">' & trim(summary) & '</a>'>
						<cfelse>
							<cfset descr_taxonomy =  trim(summary)>
						</cfif>
			
					</cfif>
				</cfloop>		

				
				<!-- If can't find a collecting event, try to find one through available cataloged item -->		
				<cfif len(coll_event_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
