 			collector.agent_id=#agent_id#
 	</cfquery>
 	<cfif collectormedia.c 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>
+		<p>
+			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>
+		</p>
 	</cfif>
 	<cfquery name="project_agent" datasource="uam_god">
 		select

			full_citation
	</cfquery>
	<cfif len(publication_agent.full_citation) gt 0>
		Publications
		<ul>
			<cfloop query="publication_agent">
				<li>
					<a href="/publication/#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">
	<p>
		Activity Summary for #agent.preferred_agent_name# (#agent.agent_type#)
	</p>
	<p>
		Agent Names:
		<ul>
			<li>#agent_name# (#agent_name_type#)</li>
		</ul>
	</p>

	<cfif agent.agent_type is "group">
		<cfquery name="grpagnt" datasource="uam_god">
			select MEMBER_AGENT_ID,getPreferredAgentName(MEMBER_AGENT_ID) name from group_member where GROUP_AGENT_ID=#agent_id#
