 		<cfset basSql = "#basSQL# #basFrom# #basWhere#
 			group by
 				publication.publication_id,
-				publication.publication_type,
 				publication.full_citation,
 				publication.doi,
 				publication.pmid,

		<cfset basWhere = "
			WHERE
				publication.publication_id = project_publication.publication_id (+) and
				publication.publication_id = identification.publication_id (+) and
				publication.publication_id = citation.publication_id (+)
				AND publication.publication_id = publication_agent.publication_id (+)
				AND publication_agent.agent_id = agent_name.agent_id (+) and
				publication.publication_id=taxonomy_publication.publication_id (+) and
				taxonomy_publication.taxon_name_id=taxon_name.taxon_name_id (+)">
		<cfif (isdefined("project_type") AND len(project_type) gt 0)>
			<cfset basWhere = "#basWhere# AND 1=2">
		</cfif>

			<cfset go="yes">
		</cfif>
		<cfif isdefined("agent_role") AND len(agent_role) gt 0>
			<cfif basFrom does not contain "publication_agent">
				<p>
				basFrom does not contain "publication_agent"
				</p>
				<cfset basFrom = "#basFrom#,publication_agent">
			</cfif>
			<cfset basWhere = "#basWhere# AND publication.publication_id = publication_agent.publication_id
				AND publication_agent.author_role='#agent_role#'">
			<cfset go="yes">
		</cfif>


		<cfif isdefined("publication_type") AND len(#publication_type#) gt 0>
			<cfset basWhere = "#basWhere# AND publication.publication_type = '#publication_type#'">
			<cfset go="yes">
