 					</cfquery>
 					
 					<cfset locality = #d.data#>
+					<cfset coll_event_id=#d.collecting_event_id#>
 					<cfset locality = replace(#locality#,"[:\(]",";")>
 					<cfset locality = replace(#locality#, "\)", "")>
 					

						<cfelse>
							<cfset kw=""&locality>
						</cfif>
						
						<!-- query lat/long for inputting to map -->
						<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,cfid)#">
							select dec_lat, dec_long
							from collecting_event, lat_long
							where collecting_event.collecting_event_id=#related_primary_key#
								and collecting_event.locality_id=lat_long.locality_id
						</cfquery>
						
						<cfset dec_lat=#d.dec_lat#>
						<cfset dec_long=#d.dec_long#>
					</cfif>
				</cfloop>		
				
				<cfif len(locality) eq 0 && 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 
						from 
							collecting_event,
							locality, 

			<cfset cat_item_url="">
			<cfset cat_item_sum="">
			<cfset coll_obj_id=0>
			<cfset coll_event_id>
			<cfset scientific_name="">
			<cfset higherGeog="">
			<cfset specLoc="">
			<cfset kw="">
			<cfset locality="">
			<cfset dec_long=0>
			<cfset dec_long=0>
			<cfif mrel.recordcount gt 0>				
