anchor.diff:  				<!----
   				<cfset checkSql(SqlString)>
   				---->
  -				<cfset InnerSqlString = 'select COUNT(distinct(collection_object_id)) CountOfCatalogedItem, linktospecimens,'>
  +				<cfset InnerSqlString = 'select COUNT(distinct(#session.flatTableName#.collection_object_id)) CountOfCatalogedItem, linktospecimens,'>
   				<cfif listfindnocase(groupBy,'individualcount')>
   					<cfset InnerSqlString = InnerSqlString & 'sum(individualcount) individualcount, '>
   				</cfif>
  
positive.code: 
  
  
  				<cfloop list="#spcols#" index="pt">
  
  
  					<cfset x=listgetat(pt,2,'.')>
  
negative.code: 					<cfreturn result>
  				</cfif>
  				<cfset thisLink=mapurl>
  
  
  
  
  				<!---
  					mapURL probably contains taxon_scope
  					We have to over-ride that here to get the
  