   </cfif>
 </cfif>
 
-<cfif isdefined("credit_line") and len(credit_line) gt 0>
-  <cfset mapurl = "#mapurl#&credit_line=#credit_line#">
-  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_credit_line ON (#session.flatTableName#.collection_object_id = tbl_credit_line.collection_object_id)">
-  <cfset basQual = " #basQual# AND tbl_credit_line.attribute_type = 'credit line'">
-  <cfif session.flatTableName is not "flat"><cfset basQual = " #basQual# AND tbl_credit_line.is_encumbered = 0"></cfif>
-  <cfif credit_line neq "_">
-    <cfset oper=left(credit_line,1)>
-    <cfif listfind(charattrschops,oper)>
-      <cfset schTerm=ucase(right(credit_line,len(credit_line)-1))>
-    <cfelse>
-      <cfset oper="like"><cfset schTerm=ucase(credit_line)>
-    </cfif>
-    <cfif oper is "!"><cfset oper="!="></cfif>
-    <cfif oper is "like">
-      <cfset basQual = " #basQual# AND upper(tbl_credit_line.attribute_value) #oper# '%#ucase(escapeQuotes(schTerm))#%'">
-	<cfelse>
-      <cfset basQual = " #basQual# AND upper(tbl_credit_line.attribute_value) #oper# '#ucase(escapeQuotes(schTerm))#'">
-	</cfif>
-  </cfif>
-</cfif>
-
-<cfif isdefined("crop_contents") and len(crop_contents) gt 0>
-  <cfset mapurl = "#mapurl#&crop_contents=#crop_contents#">
-  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_crop_contents ON (#session.flatTableName#.collection_object_id = tbl_crop_contents.collection_object_id)">
-  <cfset basQual = " #basQual# AND tbl_crop_contents.attribute_type = 'crop contents'">
-  <cfif session.flatTableName is not "flat"><cfset basQual = " #basQual# AND tbl_crop_contents.is_encumbered = 0"></cfif>
-  <cfif crop_contents neq "_">
-    <cfset oper=left(crop_contents,1)>
-    <cfif listfind(charattrschops,oper)>
-      <cfset schTerm=ucase(right(crop_contents,len(crop_contents)-1))>
-    <cfelse>
-      <cfset oper="like"><cfset schTerm=ucase(crop_contents)>
-    </cfif>
-    <cfif oper is "!"><cfset oper="!="></cfif>
-    <cfif oper is "like">
-      <cfset basQual = " #basQual# AND upper(tbl_crop_contents.attribute_value) #oper# '%#ucase(escapeQuotes(schTerm))#%'">
-	<cfelse>
-      <cfset basQual = " #basQual# AND upper(tbl_crop_contents.attribute_value) #oper# '#ucase(escapeQuotes(schTerm))#'">
-	</cfif>
-  </cfif>
-</cfif>
-
 <cfif isdefined("crown_rump_length") and len(crown_rump_length) gt 0>
   <cfset mapurl = "#mapurl#&crown_rump_length=#crown_rump_length#">
   <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_crown_rump_length ON (#session.flatTableName#.collection_object_id = tbl_crown_rump_length.collection_object_id)">

  </cfif>
</cfif>

<cfif isdefined("brood_parasite_present") and len(brood_parasite_present) gt 0>
  <cfset mapurl = "#mapurl#&brood_parasite_present=#brood_parasite_present#">
  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_brood_parasite_present ON (#session.flatTableName#.collection_object_id = tbl_brood_parasite_present.collection_object_id)">
  <cfset basQual = " #basQual# AND tbl_brood_parasite_present.attribute_type = 'brood parasite present'">
  <cfif session.flatTableName is not "flat"><cfset basQual = " #basQual# AND tbl_brood_parasite_present.is_encumbered = 0"></cfif>
  <cfif brood_parasite_present neq "_">
    <cfset oper=left(brood_parasite_present,1)>
    <cfif listfind(charattrschops,oper)>
      <cfset schTerm=ucase(right(brood_parasite_present,len(brood_parasite_present)-1))>
    <cfelse>
      <cfset oper="like"><cfset schTerm=ucase(brood_parasite_present)>
    </cfif>
    <cfif oper is "!"><cfset oper="!="></cfif>
    <cfif oper is "like">
      <cfset basQual = " #basQual# AND upper(tbl_brood_parasite_present.attribute_value) #oper# '%#ucase(escapeQuotes(schTerm))#%'">
	<cfelse>
      <cfset basQual = " #basQual# AND upper(tbl_brood_parasite_present.attribute_value) #oper# '#ucase(escapeQuotes(schTerm))#'">
	</cfif>
  </cfif>
</cfif>

<cfif isdefined("brood_patch") and len(brood_patch) gt 0>
  <cfset mapurl = "#mapurl#&brood_patch=#brood_patch#">
  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_brood_patch ON (#session.flatTableName#.collection_object_id = tbl_brood_patch.collection_object_id)">

  </cfif>
</cfif>

<cfif isdefined("ovum") and len(ovum) gt 0>
  <cfset mapurl = "#mapurl#&ovum=#ovum#">
  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_ovum ON (#session.flatTableName#.collection_object_id = tbl_ovum.collection_object_id)">
