   </cfif>
 </cfif>
 
-<cfif isdefined("width") and len(width) gt 0>
-  <cfset mapurl = "#mapurl#&width=#width#">
-  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_width ON (#session.flatTableName#.collection_object_id = tbl_width.collection_object_id)">
-  <cfset basQual = " #basQual# AND tbl_width.attribute_type = 'width'">
-  <cfif session.flatTableName is not "flat"><cfset basQual = " #basQual# AND tbl_width.is_encumbered = 0"></cfif>
-  <cfif width neq "_">
-    <cfset schunits="">
-    <cfset oper=left(width,1)>
-    <cfif listfind(numattrschops,oper)>
-      <cfset schTerm=ucase(right(width,len(width)-1))>
-    <cfelse>
-      <cfset oper="like"><cfset schTerm=ucase(width)>
-    </cfif>
-    <cfif oper is "!"><cfset oper="!="></cfif>
-    <cfset temp=trim(rereplace(schTerm,"[0-9]","","all"))>
-    <cfif len(temp) gt 0 and listfindnocase(attrLengthUnits,temp) and isnumeric(replace(schTerm,temp,""))>
-      <cfset schTerm=replace(schTerm,temp,"")><cfset schunits=temp>
-    <cfelseif left(temp,1) eq "-" and listfindnocase(attrTimeUnits,trim(replace(temp,"-","")))>
-      <cfset schunits=trim(replace(temp,"-",""))>
-      <cfset low=trim(listgetat(numeric_age,1,"-"))>
-      <cfset high=trim(replacenocase(replace(replace(numeric_age,low,"","first"),"-",""),schunits,""))>
-      <cfset schTerm=trim(replace(replace(replace(numeric_age,schunits,""),low,""),high,""))>
-      <cfif len(low) gt 0 and len(high) gt 0 and len(schunits) gt 0><cfset oper="between"></cfif>
-    </cfif>
-    <cfif oper is "between">
-      <cfset basQual = " #basQual# AND to_days(tbl_width.attribute_value,tbl_width.attribute_units) #oper# to_days(#low#,'#schunits#') and to_days(#high#,'#schunits#')">
-    <cfelseif len(schunits) gt 0>
-      <cfset basQual = " #basQual# AND to_meters(tbl_width.attribute_value,tbl_width.attribute_units) #oper# to_meters(#schTerm#,'#schunits#')">
-    <cfelse>
-      <cfset basQual = " #basQual# AND tbl_width.attribute_value #oper# '#schTerm#'">
-    </cfif>
-  </cfif>
-</cfif>
-
 <cfif isdefined("wing_chord") and len(wing_chord) gt 0>
   <cfset mapurl = "#mapurl#&wing_chord=#wing_chord#">
   <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_wing_chord ON (#session.flatTableName#.collection_object_id = tbl_wing_chord.collection_object_id)">

  </cfif>
</cfif>

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

  </cfif>
</cfif>

<cfif isdefined("object_title") and len(object_title) gt 0>
  <cfset mapurl = "#mapurl#&object_title=#object_title#">
  <cfset basJoin = " #basJoin# INNER JOIN v_attributes tbl_object_title ON (#session.flatTableName#.collection_object_id = tbl_object_title.collection_object_id)">
  <cfset basQual = " #basQual# AND tbl_object_title.attribute_type = 'object title'">
  <cfif session.flatTableName is not "flat"><cfset basQual = " #basQual# AND tbl_object_title.is_encumbered = 0"></cfif>
  <cfif object_title neq "_">
    <cfset oper=left(object_title,1)>
    <cfif listfind(charattrschops,oper)>
      <cfset schTerm=ucase(right(object_title,len(object_title)-1))>
    <cfelse>
      <cfset oper="like"><cfset schTerm=ucase(object_title)>
    </cfif>
    <cfif oper is "!"><cfset oper="!="></cfif>
    <cfif oper is "like">
      <cfset basQual = " #basQual# AND upper(tbl_object_title.attribute_value) #oper# '%#ucase(escapeQuotes(schTerm))#%'">
	<cfelse>
      <cfset basQual = " #basQual# AND upper(tbl_object_title.attribute_value) #oper# '#ucase(escapeQuotes(schTerm))#'">
	</cfif>
  </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)">
