 <cfif isdefined("bursa_length") and len(bursa_length) gt 0>
   <cfset mapurl = "#mapurl#&bursa_length=#bursa_length#">
   <cfif compare(bursa_length,"NULL") is 0>
-      <cfset basQual = " #basQual# AND ConcatAttributeValue(flat.collection_object_id,"bursa_length") is null">
+      <cfset basQual = " #basQual# AND ConcatAttributeValue(flat.collection_object_id,'bursa_length') is null">
   <cfelse>
     <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_bursa_length ON (#session.flatTableName#.collection_object_id = tbl_bursa_length.collection_object_id)">
     <cfset basQual = " #basQual# AND tbl_bursa_length.attribute_type = 'bursa length'">

<cfif isdefined("soft_parts") and len(soft_parts) gt 0>
  <cfset mapurl = "#mapurl#&soft_parts=#soft_parts#">
  <cfif compare(soft_parts,"NULL") is 0>
      <cfset basQual = " #basQual# AND ConcatAttributeValue(flat.collection_object_id,"soft_parts") is null">
  <cfelse>
    <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_soft_parts ON (#session.flatTableName#.collection_object_id = tbl_soft_parts.collection_object_id)">
    <cfset basQual = " #basQual# AND tbl_soft_parts.attribute_type = 'soft parts'">

<cfif isdefined("nest_phenology") and len(nest_phenology) gt 0>
  <cfset mapurl = "#mapurl#&nest_phenology=#nest_phenology#">
  <cfif compare(nest_phenology,"NULL") is 0>
      <cfset basQual = " #basQual# AND ConcatAttributeValue(flat.collection_object_id,'nest_phenology') is null">
  <cfelse>
    <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_nest_phenology ON (#session.flatTableName#.collection_object_id = tbl_nest_phenology.collection_object_id)">
    <cfset basQual = " #basQual# AND tbl_nest_phenology.attribute_type = 'nest phenology'">
