 			media_relations.media_relationship='shows cataloged_item' AND
 			collector.agent_id=#agent_id#
 	</cfquery>
-	<ul>
-
-		<li>
-			<a href="/MediaSearch.cfm?action=search&collected_by_agent_id=#agent_id#">
-				Media from #collectormedia.c# collected/prepared specimens
-			</a>
-		</li>
-	</ul>
+	<cfif collectormedia.recordcount gt 0>
+		Media:
+
+		<ul>
+
+			<li>
+				<a href="/MediaSearch.cfm?action=search&collected_by_agent_id=#agent_id#">
+					Media from #collectormedia.c# collected/prepared specimens
+				</a>
+			</li>
+		</ul>
+	</cfif>
 	<cfquery name="project_agent" datasource="uam_god">
-			select
-				project_name,
-				project.project_id
-			from
-				project_agent,
-				project
-			where
-				 project.project_id=project_agent.project_id and
-				 project_agent.agent_id=#agent_id#
-			group by
-				project_name,
-				project.project_id
-		</cfquery>
-		<cfif len(project_agent.project_name) gt 0>
-			Projects
-			<ul>
-				<cfloop query="project_agent">
-					<li><a href="/ProjectDetail.cfm?project_id=#project_id#">#project_name#</a></li>
-				</cfloop>
-			</ul>
-		</cfif>
-		<cfquery name="publication_agent" datasource="uam_god">
-			select
-				publication.PUBLICATION_ID,
-				full_citation
-			from
-				publication,
-				publication_agent
-			where
-				publication.publication_id=publication_agent.publication_id and
-				publication_agent.agent_id=#agent_id#
-			group by
-				publication.PUBLICATION_ID,
-				full_citation
-		</cfquery>
-		<cfif len(publication_agent.full_citation) gt 0>
-			Publications
-			<ul>
-				<cfloop query="publication_agent">
-					<li>
-						<a href="/Publication.cfm?PUBLICATION_ID=#PUBLICATION_ID#">#full_citation#</a>
-						<cfquery name="citn" datasource="uam_god">
-							select count(*) c from citation where publication_id=#publication_id#
-						</cfquery>
-						<ul><li>#citn.c# citations</li></ul>
-					</li>
-				</cfloop>
-			</ul>
-		</cfif>
-
+		select
+			project_name,
+			project.project_id
+		from
+			project_agent,
+			project
+		where
+			 project.project_id=project_agent.project_id and
+			 project_agent.agent_id=#agent_id#
+		group by
+			project_name,
+			project.project_id
+	</cfquery>
+	<cfif len(project_agent.project_name) gt 0>
+		Projects
+		<ul>
+			<cfloop query="project_agent">
+				<li><a href="/ProjectDetail.cfm?project_id=#project_id#">#project_name#</a></li>
+			</cfloop>
+		</ul>
+	</cfif>
+	<cfquery name="publication_agent" datasource="uam_god">
+		select
+			publication.PUBLICATION_ID,
+			full_citation
+		from
+			publication,
+			publication_agent
+		where
+			publication.publication_id=publication_agent.publication_id and
+			publication_agent.agent_id=#agent_id#
+		group by
+			publication.PUBLICATION_ID,
+			full_citation
+	</cfquery>
+	<cfif len(publication_agent.full_citation) gt 0>
+		Publications
+		<ul>
+			<cfloop query="publication_agent">
+				<li>
+					<a href="/Publication.cfm?PUBLICATION_ID=#PUBLICATION_ID#">#full_citation#</a>
+					<cfquery name="citn" datasource="uam_god">
+						select count(*) c from citation where publication_id=#publication_id#
+					</cfquery>
+					<ul><li>#citn.c# citations</li></ul>
+				</li>
+			</cfloop>
+		</ul>
+	</cfif>
 </cfoutput>
 <cfinclude template = "/includes/_footer.cfm">
			collection.guid_prefix,
	        collection.collection_id
	</cfquery>
	<ul>
		<CFLOOP query="collector">
			<li>
				<a href="/SpecimenResults.cfm?collector_agent_id=#agent_id#&collection_id=#collector.collection_id#">#collector.cnt# #collector.guid_prefix#</a> specimens
			</li>
	  	</CFLOOP>
	</ul>


	Media:


	<cfquery name="collectormedia" datasource="uam_god">

			MEMBER_AGENT_ID=#agent_id#
		order by agent_name
	</cfquery>
	<cfif group_member.recordcount gt 0>
		<br />Groups:
		<ul>
			<cfloop query="group_member">
				<li><a href="agentActivity.cfm?agent_id=#GROUP_AGENT_ID#">#agent_name#</a></li>
			</cfloop>
		</ul>
	</cfif>

	<cfquery name="collector" datasource="uam_god">
		select
			count(distinct(collector.collection_object_id)) cnt,
