anchor.diff:  			</cfif>
   
   		</cfif>
  -		<!----------
  -		<cfquery name="nomenclatural_code" dbtype="query">
  -			select distinct term from d where term_type='nomenclatural_code'
  -		</cfquery>
  -		<cfif nomenclatural_code.recordcount is 1>
  -			<cfset nomencode=nomenclatural_code.term>
  -		<cfelse>
  -			<cfquery name="kingdom" dbtype="query">
  -				select distinct term from d where term_type='kingdom'
  -			</cfquery>
  -			<cfif kingdom.term is "Plantae">
  -				<cfset nomencode="ICBN">
  -			<cfelseif kingdom.term is "Animalia">
  -				<cfset nomencode="ICZN">
  -			</cfif>
  -		</cfif>
  -		<cfif len(nomencode) gt 0>
  -			<br>nomencode=#nomencode# rock on....
  -
  -		<cfelse>
  -			<!--- if we didn't get a nomenclatural_code we can't do much here ---->
  -			<br>no nomencode
  -
  -		</cfif>
  -		-------->
  -
  +
  +
  +		<cfset gdn=trim(replace(gdn,' ,',',','all'))>
   		<cfset gdn=trim(replace(gdn,'<i></i>','','all'))>
   		 <cfset gdn=reReplace(gdn,"\s+"," ","All")>
   		<cfreturn gdn>
  
positive.code: </cffunction>
  <!------------------------------------------------------->
  <cffunction name="mobileDesktopRedirect" output="true" returnType="string" access="remote">
  	<!----
  		<br>START mobileDesktopRedirect
  		<br>cgi.script_name: #cgi.script_name#
  		This function redirects between mobile and desktop based on device detection scripts from
  		http://detectmobilebrowsers.com/
  		cookies and current page.
  		Rules:
  		IF no cookie AND is mobile device --- > redirect to mobile
  		It's called at onRequestStart in Application.cfc
  	---->
  	<cfoutput>
  		<!---- only redirect if they're coming in to something for which we have a mobile page ---->
  		<cfif cgi.script_name is "/dm.cfm">
  		  <cfreturn>
  		</cfif>
  		<cfif isdefined("request.rdurl") and (
  			request.rdurl contains "/guid/" or
  			request.rdurl contains "/name/" or
  			replace(cgi.script_name,"/","","all") is "SpecimenSearch.cfm" or
  			replace(cgi.script_name,"/","","all") is "taxonomy.cfm" or
  			replace(cgi.script_name,"/","","all") is "SpecimenResults.cfm")>
  			<!--- check to see if they have set a cookie ---->
  			<cfif IsDefined("Cookie.dorm")>
  				<!--- they have an explicit preference and we have a mobile option, send them where they want to be ---->
  				<cfif cookie.dorm is "mobile" and isMobileTemplate() is false>
  					<!---- DEVICE: untested; CURRENT SITE: desktop; DESIRED SITE: mobile; ACTION: redirect ---->
  					<cfset z="/dm.cfm?r=" & mdflip(request.rdurl)>
  					<cflocation url="#z#" addtoken="false">
  				<cfelseif cookie.dorm is not "mobile" and isMobileTemplate() IS TRUE>
  					<!---- DEVICE: untested; CURRENT SITE: mobile; DESIRED SITE: desktop; ACTION: redirect ---->
  					<cfset z="/dm.cfm?r=" & mdflip(request.rdurl)>
  					<cflocation url="#z#" addtoken="false">
  				</cfif>
  			<cfelse>
  				<!----
  					We have a mobile option and they've expressed no preferences.
  					If they're on a mobile device and NOT a mobile page, redirect them - they're a first-time user
  					---->
  				<cfif isMobileClient() is true and isMobileTemplate() is false>
  	                <!--- see if they're on a mobile device but not a mobile page ---->
  				     <cfset z="/dm.cfm?r=" & mdflip(request.rdurl)>
  	                <cflocation url="#z#" addtoken="false">
  				</cfif>
  			</cfif>
  	    </cfif>
  	</cfoutput>
  	<cfreturn>
  </cffunction>
  
  
  <!---------------------------------------------->
  
negative.code: 	</cfif>
  	<!--- these are user-agents that regularly ignore the robots.txt file --->
  	<!--- keep this synced up with /ScheduledTasks/createRobots.cfm ---->
  	<cfset badbot="Baiduspider,bash,BUbiNG">
  	<cfset badbot=badbot & ",ca-crawler,CCBot">
  	<cfset badbot=badbot & ",Domain,DeuSu,DomainTunoCrawler">
  	<cfset badbot=badbot & ",Exabot">
  