<% '----------------------------------------------------------------------------------------------------------------------- ' PTaxonDetail.asp - August 2003 - Javier de la Torre ' ' This file shows information about one or more potential taxons. It can recieve different parameters and with them ' it constructs the SQL statements that is needed to select all the PTaxon that match this criteria. ' When the PTaxon are selected then each one is represented inside a gray table. For each PTaxon there are many other ' connections to the database that had to be made to get all the needed information. ' ' Parameters: ' NameCache: String --> Cache field of the name table ' NameId: Integer --> Id of the Name of the potential taxons ' PTRefFk: integer --> Id of the reference of the potential taxons ' '----------------------------------------------------------------------------------------------------------------------- %> <% 'Show back buttons backToSearch = 1 'Shows the backToSearch-Button backToResult = 1 'Shows the backToResult-Button %> <% '---------------------------------------------------------------------------------------- Dim hierarchy() Dim facts() ' Construct the SQL statement depending on the paramenter passed. ' That selects all the potential taxon. SQL = _ " SELECT Name.NameCache, Name.FullNameCache, PTaxon.PTRefFk, Name.NameId, Reference.RefCache " & _ " FROM Name INNER JOIN PTaxon ON Name.NameId = PTaxon.PTNameFk INNER JOIN Reference ON PTaxon.PTRefFk = Reference.RefId" 'All potential taxa using a specific NameId nameID = Request("NameId") 'error handling if nameID = "" then nameID = "0" SQL= SQL & " WHERE Name.NameId > 0 " if Request("NameCache")<>"" then SQL= SQL &" AND Name.NameCache = '"& Replace(Request("NameCache"),"'","''") &"'" 'SQL=SQL&" AND Name.NameCache = '"& Request("NameCache") "%'" else 'SQL= SQL &" AND Name.Genus IS NULL" SQL= SQL &" AND NameId = " & nameID end if if Request("PTRefFk")<>"" then SQL= SQL &" AND PTRefFk="& Request("PTRefFk") end if ' exclude MCL Taxa SQL = SQL &" AND PTaxon.IdInSource IS NULL " ' exclude MCL Synonyms with same name SQL = SQL &" AND PTaxon.StatusFk = 1 " 'This recordset returns all the potential taxon that match the name criteria and order them by source. Set RAllData = Server.CreateObject("ADODB.Recordset") openRecordset RAllData, SQL if Request("NameCache")<>"" then NameTotal=Request("NameCache") else If (not isnull(RAllData)) then if (RAllData.Recordcount > 0) Then NameTotal=RAllData("NameCache") end if end if end if %>
Details for missaplied name: <%=NameTotal%>
<% '------------------------- printer friendly ------------------------ ' Show the google images link only if is not a printer-frendly request if Request("Print")<>1 then %>
Link to species in Tropicos | Google Images

<%end if%> <%'------------------------- NAVIGATION MENU------------------------ 'take the names of the different sources to create the navigation menu in the top Dim Sources ReDim Sources(0) s = 0 While not RAllData.eof sources(s) = RAllData("RefCache") Redim Preserve sources(s + 1) s = s + 1 RAllData.Movenext wend if RAllData.RecordCount >0 then RAllData.MoveFirst end if Dim NameA(7) If RAllData.Recordcount > 0 then cont_sources=0 While NOT RAllData.EOF 'counter for each movement cont_sources = cont_sources + 1 'I first obtain the information that belongs to this potential taxon: 'IOPI!SQL="SELECT PTaxon.PTNameFk, PTaxon.PTRefFk, Status.Status, PTaxon.StatusFk, Reference.NomTitleAbbrev, Reference.RefCache, PTaxon.Notes, Type.TypeCache, Type.TypeId, Rank.Rank FROM Rank RIGHT JOIN ((Reference RIGHT JOIN (Name RIGHT JOIN (PTaxon LEFT JOIN Status ON PTaxon.StatusFk = Status.StatusId) ON Name.NameId = PTaxon.PTNameFk) ON Reference.RefId = PTaxon.PTRefFk) LEFT JOIN Type ON Name.TypeId = Type.TypeId) ON Rank.RankId = Name.RankFk WHERE (((PTaxon.PTNameFk)="&RAllData("NameId")&") AND ((PTaxon.PTRefFk)="&RAllData("PTRefFk")&"))" SQL= _ " SELECT PTaxon.PTNameFk, PTaxon.DoubtfulFlag, PTaxon.PTRefFk, PTaxon.IdInSource , Status.Status, PTaxon.StatusFk, Reference.NomTitleAbbrev, Reference.RefCache, PTaxon.Notes, Rank.Rank, Rank.RankId " & _ " FROM Rank RIGHT JOIN ((Reference RIGHT JOIN (Name RIGHT JOIN (PTaxon LEFT JOIN Status ON PTaxon.StatusFk = Status.StatusId) ON Name.NameId = PTaxon.PTNameFk) ON Reference.RefId = PTaxon.PTRefFk) ) ON Rank.RankId = Name.RankFk " & _ " WHERE (((PTaxon.PTNameFk)=" & RAllData("NameId") & ") AND ((PTaxon.PTRefFk)=" & RAllData("PTRefFk")&"))" Set Rptaxon = Server.CreateObject("ADODB.Recordset") openRecordset Rptaxon, SQL '... then select all the information posible from this name SQL = " SELECT RefDetail.Notes as RefNote, RefDetail.Details, Name.NameCache, Name.FullNameCache, Name.NameId, Name.Genus, Name.SpeciesEpi, Name.InfraSpeciesEpi, Name.GenusSubdivisionEpi, Reference.NomTitleAbbrev, Reference.Volume, RefDetail.Details, Reference.InRefFk, Reference.RefYear, RefDetail.FullNomRefCache, Name.AuthorTeamFk, Name.ExAuthorTeamFk, Name.BasAuthorTeamFk, Name.ExBasAuthorTeamFk, Rank.RankAbbrev, NomStatus.NomStatus, Name.Notes, Name.UnnamedNamePhrase, Name.RankFk " & _ " FROM NomStatus RIGHT JOIN ((((Name LEFT JOIN Reference ON Name.NomRefFk = Reference.RefId) LEFT JOIN RefDetail ON Name.NomRefDetailFk = RefDetail.RefDetailId) INNER JOIN Rank ON Name.RankFk = Rank.RankId) LEFT JOIN NomStatusRel ON Name.NameId = NomStatusRel.NameFk) ON NomStatus.NomStatusId = NomStatusRel.NomStatusFk " & _ " WHERE (((Name.NameId) = " & Rptaxon("PTNameFk") &" ))" Set Rname = Server.CreateObject("ADODB.Recordset") openRecordset Rname, SQL '0--> Name Part (Juncus Roemeriani) '1--> Authors string (L.) '2--> Complete Reference starting with ", " (, Byull. Moskovsk. Obshch. Isp. Prir., Otd. Biol., 95: 117 (1990)) '3--> status part (,nom. illeg.) '4--> non part (,non Buchenau(1545)) '5--> total, all in the same 0+1+2+3+4 '6--> 0+1 '7--> Name notes if Rname("notes")="ll" then 'if there's something in the notes field i will use this as the complete name. This solution is valid for the IOPI project NameA(0)=Rname("FullNameCache") NameA(1)="Not parsed, see the notes" NameA(2)="Not parsed, see the notes" NameA(3)="Not parsed, see the notes" NameA(4)="Not parsed, see the name" NameA(5)=Rname("FullNameCache") NameA(6)=Rname("FullNameCache") NameA(7)=Rname("Notes") else 'I have to add the status of the name (nomenclature status). It's possible to have more than one status, but maximum here is 2 If Rname("NomStatus")<>"" then ' changed for MCL status_part= Replace(Rname("NomStatus"),"nom. rej. prop.","nom. rejic. prop.") if (status_part = "") then status_part = "" end if if Rname.Recordcount > 1 then 'There's more than one status Rname.movenext 'changed for MCL status_part=status_part & ", " & Replace(Rname("NomStatus"),"nom. rej. prop.","nom. rejic. prop.") End if End if NameA(0)=Rname("NameCache") ' by Andreas if (NOT ISNULL(Rname("FullNameCache")) AND NOT ISNULL(Rname("NameCache"))) Then NameA(1)=Replace(Rname("FullNameCache"),Rname("NameCache"),"") else NameA(1)=Rname("FullNameCache") end if ' by Andreas if (NOT ISNUll(Rname("FullNomRefCache"))) Then NameA(2)=Replace(Rname("FullNomRefCache"),"vol. ", "") & " " & Rname("RefNote") else NameA(2)= Rname("FullNomRefCache") & " " & Rname("RefNote") end if 'by Andreas if (Rname("Details") <> "") then NameA(2)=Replace(NameA(2),", " & Rname("Details"), ": " & Rname("Details")) end if NameA(3)=status_part NameA(4)=non_part 'by Andreas 'NameA(5)=Rname("FullNameCache") &", " & Rname("FullNomRefCache") NameA(6)=Rname("FullNameCache") NameA(7)=Rname("Notes") end if Rname.close set Rname=Nothing %> <% '-------------- reference restriction ------------------------ ' Show the reference to which the search is restricted if Request("PTRefFk")<>"" then 'here was the check for other source link --> else 'only show the navigation menu of different sources one time: if cont_sources = 1 then %> <% for i=0 to (ubound(sources)-1) %> <% next Response.write("
  <%=ubound(sources)%> different source(s) use this name:

  - <%=Left(sources(i), 100) & "..."%>
") end if %>
<% end if %> <% '--------------------- tabel color---------------------------------- table_color=color_mis %>
<% if len(NameA(2)) > 0 then %> <%end if %> <% if len(NameA(3)) > 0 then %> <%end if %> <% ' Search if the name has HOMONYMS and print them '------------------------------------------------------------------------------------------ SQL= _ " SELECT NameFk1 " & _ " FROM RelName " & _ " WHERE NameFk2=" & Rptaxon("PTNameFk") &" AND RelNameQualifierFk = 2" set Rhom = Server.CreateObject("ADODB.Recordset") openRecordset Rhom, SQL if Rhom.Recordcount > 0 then 'If it has homonyms show them, take the details. SQL= _ " SELECT Name.NameId, Name.NameCache, Name.FullNameCache, Reference.RefYear " & _ " FROM Name LEFT JOIN Reference ON Name.NomRefFk = Reference.RefId "& _ " WHERE (Name.NameId = "& Rhom("NameFk1") &")" set Rhom_details = Server.CreateObject("ADODB.Recordset") openRecordset Rhom_details, SQL While Not Rhom_details.EOF non_part= Rhom_details("FullNameCache") if Rhom_details("RefYear")<>"" then non_part=non_part & " (" & Rhom_details("RefYear") & ")" end if %> <% Rhom_details.MoveNext Wend Rhom_details.close() set Rhom_details = Nothing End if Rhom.close set Rhom = Nothing '---------------- Rank ------------------------------------------------------------------- %> <% ' ---------------------------- BASIONYM ------------------------------------------------------------ 'Look to see if it's a basyonym of something and print it. BASYONYM OF SQL=" SELECT dbo.Name.NameId, Name_1.NameId AS NameIdBas, Name_1.FullNameCache " & _ " FROM dbo.Name Name_1 INNER JOIN Name INNER JOIN RelName ON Name.NameId = RelName.NameFk1 ON Name_1.NameId = RelName.NameFk2 " & _ " WHERE (((Name.NameId)="&Rptaxon("PTNameFk")&") AND ((RelName.RelNameQualifierFk)=1))" Set Rbas = Server.CreateObject("ADODB.Recordset") openRecordset Rbas, SQL if Rbas.RecordCount > 0 then %> <% end if Rbas.close set Rbas=Nothing %> <% ' ---------------------------- Syn. Subst. ------------------------------------------------------------ 'Look to see if it's a replaced Synonym of something and print it. REPLACED SYNONYM OF SQL=" SELECT dbo.Name.NameId, Name_1.NameId AS NameIdBas, Name_1.FullNameCache " & _ " FROM dbo.Name Name_1 INNER JOIN Name INNER JOIN RelName ON Name.NameId = RelName.NameFk1 ON Name_1.NameId = RelName.NameFk2 " & _ " WHERE (((Name.NameId)=" & Rptaxon("PTNameFk") & ") AND ((RelName.RelNameQualifierFk)=3))" Set RSubst = Server.CreateObject("ADODB.Recordset") openRecordset RSubst, SQL if RSubst.RecordCount > 0 then %> <% end if RSubst.close set RSubst=Nothing %> <%'-------------------- MISSAPLIED NAME ----------------------------------------------------------------------- ' Find the accepted name in MCL. SQL= "SELECT PTaxon_1.PTNameFk, PTaxon_1.PTRefFk, Name.NameCache, Name.FullNameCache, Name.Notes AS NameNotes" & _ " FROM (PTaxon AS PTaxon_1 INNER JOIN Name ON PTaxon_1.PTNameFk = Name.NameId) INNER JOIN (PTaxon INNER JOIN RelPTaxon ON (PTaxon.PTNameFk = RelPTaxon.PTNameFk1) " & _ " AND (PTaxon.PTRefFk = RelPTaxon.PTRefFk1)) ON (PTaxon_1.PTNameFk = RelPTaxon.PTNameFk2) AND (PTaxon_1.PTRefFk = RelPTaxon.PTRefFk2)" & _ " WHERE (((PTaxon.PTNameFk)="&Rptaxon("PTNameFk")&") AND ((PTaxon.PTRefFk)="&Rptaxon("PTRefFk")&") AND ((RelPTaxon.RelQualifierFk) = 3)) " & _ " ORDER BY Name.NameCache" Set Racc = Server.CreateObject("ADODB.Recordset") openRecordset Racc, SQL if Racc.Recordcount>0 then contador=0 While NOT Racc.EOF contador=contador+1 %> <% Racc.Movenext Wend Racc.Close set Racc=Nothing end if '--------------------------------------------------------------------------------------------------------------- %> <% '-----------------BASIONYM------------------------------------------------------------------------------------------- 'Look to see if it has a basionym of something. SQL= _ " SELECT dbo.Name.NameId, Name_1.NameId AS NameIdBas, Name_1.FullNameCache " & _ " FROM Name Name_1 INNER JOIN Name INNER JOIN RelName ON Name.NameId = RelName.NameFk2 ON Name_1.NameId = RelName.NameFk1 " & _ " WHERE (((Name.NameId)="&Rptaxon("PTNameFk")&") AND ((RelName.RelNameQualifierFk)=1))" Set Rbas = Server.CreateObject("ADODB.Recordset") openRecordset Rbas, SQL if Rbas.RecordCount > 0 then %> <% end if Rbas.close set Rbas=Nothing %> <%'----------------- SYNONYMS ------------------------------------------------------------------------------------------- 'Look for synonyms only if the potential taxon is accepted. SYNONYMS if Rptaxon("StatusFk")=1 then SQL= _ " SELECT PTaxon_1.PTNameFk, PTaxon_1.PTRefFk AS PTRefFk_s, Name.NameCache, Name.FullNameCache, Name.Notes AS NameNotes, Name.UnnamedNamePhrase, PTaxon.PTRefFk AS PTRefFk, RelPTQualifier.RelPTQualifier "&_ " FROM (PTaxon AS PTaxon_1 INNER JOIN (PTaxon INNER JOIN RelPTaxon ON (PTaxon.PTNameFk = RelPTaxon.PTNameFk2) AND (PTaxon.PTRefFk = RelPTaxon.PTRefFk2)) ON (PTaxon_1.PTNameFk = RelPTaxon.PTNameFk1) AND (PTaxon_1.PTRefFk = RelPTaxon.PTRefFk1)) INNER JOIN Name ON PTaxon_1.PTNameFk = Name.NameId INNER JOIN RelPTQualifier ON RelPTaxon.RelQualifierFk = RelPTQualifier.RelPTQualifierId " & _ " WHERE (((PTaxon.PTNameFk)="&Rptaxon("PTNameFk")&") AND ((PTaxon.PTRefFk)="&Rptaxon("PTRefFk")&") AND ((RelPTaxon.RelQualifierFk) in (2,4,5,6,7))) ORDER BY RelPTQualifier.RelPTQualifier DESC,Name.RankFk, Name.NameCache" Set Rsyn = Server.CreateObject("ADODB.Recordset") openRecordset Rsyn, SQL if Rsyn.Recordcount>0 then contador=0 syn_rel="" While NOT Rsyn.EOF contador=contador+1 %> <% syn_rel=Rsyn("RelPTQualifier") Rsyn.Movenext Wend Rsyn.Close set Rsyn=Nothing end if end if %> <%'----------------- SYNONYMS ------------------------------------------------------------------------------------------- 'Look for concept synonyms only if the potential taxon is accepted CONCEPT SYNONYMS if Rptaxon("StatusFk")=1 then SQL=_ " SELECT RelQualifierFk, NameId, Reference.RefId, NameCache, FullNameCache, Name.Notes AS NameNotes, RelPTQualifier AS RelQualifier, RelPTaxon.Notes AS RelNotes, Reference.RefCache, RelRefFk, is_congruent, is_included_in, includes, overlaps, excludes, doubtful, Reference_1.RefCache AS RelRefCache, RankFk "&_ " FROM RelPTQualifier INNER JOIN "&_ " RelPTaxon ON RelPTQualifier.RelPTQualifierId = RelPTaxon.RelQualifierFk INNER JOIN "&_ " Name ON RelPTaxon.PTNameFk2 = Name.NameId INNER JOIN "&_ " Reference ON RelPTaxon.PTRefFk2 = Reference.RefId INNER JOIN "&_ " Reference Reference_1 ON RelPTaxon.RelRefFk = Reference_1.RefId "&_ " WHERE (RelPTaxon.RelQualifierFk > 9) AND (RelPTaxon.PTRefFk1 = "&Rptaxon("PTRefFk")&") AND (RelPTaxon.PTNameFk1 = "&Rptaxon("PTNameFk")&") "&_ " UNION " & _ " SELECT RelQualifierFk, NameId, Reference.RefId, NameCache, FullNameCache, Name.Notes AS NameNotes, RelPTQualifier AS RelQualifier, RelPTaxon.Notes AS RelNotes, Reference.RefCache, RelRefFk, is_congruent, is_included_in, includes, overlaps, excludes, doubtful, Reference_1.RefCache AS RelRefCache, RankFk "&_ " FROM RelPTQualifier INNER JOIN "&_ " RelPTaxon ON RelPTQualifier.RelPTQualifierId = dbo.f_core_Reverse(RelPTaxon.RelQualifierFk) INNER JOIN "&_ " Name ON RelPTaxon.PTNameFk1 = Name.NameId INNER JOIN "&_ " Reference ON RelPTaxon.PTRefFk1 = Reference.RefId INNER JOIN "&_ " Reference Reference_1 ON RelPTaxon.RelRefFk = Reference_1.RefId "&_ " WHERE (RelPTaxon.RelQualifierFk > 9) AND (RelPTaxon.PTRefFk2 = "&Rptaxon("PTRefFk")&") AND (RelPTaxon.PTNameFk2 = "&Rptaxon("PTNameFk")&") "&_ "ORDER BY RelQualifierFk, RelRefFk, RankFk, namecache" Set Rcsyn = Server.CreateObject("ADODB.Recordset") openRecordset Rcsyn, SQL if Rcsyn.Recordcount>0 then %> <% contador=0 ult_ref="" While NOT Rcsyn.EOF contador=contador+1 %> <%if Rcsyn("RelRefCache")<>ult_ref then%> <%end if%> <% Rcsyn.Movenext if NOT Rcsyn.EOF then ult_ref=Rcsyn("RelRefCache") end if Wend Rcsyn.Close set Rcsyn=Nothing end if end if %> <%'------------------------MISSAPLIED NAMES-------------------------------------------------------------------------------- 'Look for missaplied names only if the potential taxon is accepted if Rptaxon("StatusFk")=1 then SQL= _ " SELECT PTaxon_1.PTNameFk, PTaxon_1.PTRefFk AS PTRefFk_s, Name.NameCache, Name.FullNameCache, Name.Notes AS NameNotes, PTaxon.PTRefFk AS PTRefFk, RelPTQualifier.RelPTQualifier as RelQualifier, RelPTaxon.Notes as RelNotes, Reference.RefCache"&_ " FROM (PTaxon AS PTaxon_1 INNER JOIN (PTaxon INNER JOIN RelPTaxon ON (PTaxon.PTNameFk = RelPTaxon.PTNameFk2) AND (PTaxon.PTRefFk = RelPTaxon.PTRefFk2)) ON (PTaxon_1.PTNameFk = RelPTaxon.PTNameFk1) AND (PTaxon_1.PTRefFk = RelPTaxon.PTRefFk1)) INNER JOIN Name ON PTaxon_1.PTNameFk = Name.NameId INNER JOIN RelPTQualifier ON RelPTaxon.RelQualifierFk = RelPTQualifier.RelPTQualifierId INNER JOIN Reference ON PTaxon_1.PTRefFk = Reference.RefId"&_ " WHERE (((PTaxon.PTNameFk)="&Rptaxon("PTNameFk")&") AND ((PTaxon.PTRefFk)="&Rptaxon("PTRefFk")&") AND ((RelPTaxon.RelQualifierFk)=3)) ORDER BY Name.NameCache" Set Rmiss = Server.CreateObject("ADODB.Recordset") openRecordset Rmiss, SQL if Rmiss.Recordcount > 0 then contador=0 While NOT Rmiss.EOF contador=contador + 1 %> <% Rmiss.Movenext Wend Rmiss.Close set Rmiss=Nothing end if end if %> <%'-----------------INCLUDED TAXA------------------------------------------------------------------------------------ 'Look for included taxa only if the potential taxon is accepted. INCLUDED TAXA, hierarchy DOWN if Rptaxon("StatusFk")=1 then SQL="SELECT PTaxon_1.PTNameFk, PTaxon_1.PTRefFk, Name.FullNameCache, Reference.RefCache, Reference.RefId AS RefId "&_ " FROM Reference INNER JOIN ((PTaxon AS PTaxon_1 INNER JOIN (PTaxon INNER JOIN RelPTaxon ON (PTaxon.PTNameFk = RelPTaxon.PTNameFk2) AND (PTaxon.PTRefFk = RelPTaxon.PTRefFk2)) ON (PTaxon_1.PTNameFk = RelPTaxon.PTNameFk1) AND (PTaxon_1.PTRefFk = RelPTaxon.PTRefFk1)) INNER JOIN Name ON PTaxon_1.PTNameFk = Name.NameId) ON Reference.RefId = PTaxon_1.PTRefFk "&_ " WHERE (((PTaxon.PTNameFk)="&Rptaxon("PTNameFk")&") AND ((PTaxon.PTRefFk)="&Rptaxon("PTRefFk")&") AND ((RelPTaxon.RelQualifierFk)=1)) "&_ " ORDER BY Name.RankFk DESC, Name.FullNameCache" Set Rinclu = Server.CreateObject("ADODB.Recordset") openRecordset Rinclu, SQL if Rinclu.Recordcount>0 then contador=0 %><% While NOT Rinclu.EOF contador=contador+1 %> <% Rinclu.Movenext Wend Rinclu.Close set Rinclu=Nothing end if end if %> <%'---------------------------NOTES---------------------------------------------------------------------------------------- 'There are two type of notes here, the one from the potential taxon and the one from the name. Show them if there´s something inside if NameA(7)<>"" then %> <%end if%> <% if Rptaxon("Notes")<>"" then %> <%end if%> <% '-----------END of TAXON -------------------------------------------------------------------------------------------------------- %>

Source:

<%=Rptaxon("Refcache")%>
Name: <%=NameA(6)%>
Nomencl. ref.: <%=NameA(2)%>
Nomencl. status(es) <% = NameA(3)%>
Homonyms <%=non_part%>
Rank: <%=Rptaxon("Rank")%>
Is basionym for: "> <%=Rbas("FullNameCache")%>
Is replaced synonym for: "> <%=RSubst("FullNameCache")%>
<%if contador=1 then%> MisappliedName of: <%end if%> &PTRefFk=<%=Racc("PTRefFk")%>"> <%=Racc("FullNameCache")%>
Basionym: &PTRefFk=<%=Request("PTRefFk")%>"><%=Rbas("FullNameCache")%>
<%if contador=1 or syn_rel<>Rsyn("RelPTQualifier") then%> <%=ucase(left(Trim(Replace(Replace(Rsyn("RelPTQualifier"),"is",""),"of","")),1))&right(Trim(Replace(Replace(Rsyn("RelPTQualifier"),"is",""),"of","")),len(Trim(Replace(Replace(Rsyn("RelPTQualifier"),"is",""),"of","")))-1)&"(s):"%> <%end if%> &PTRefFk=<%=Rsyn("PTRefFk_s")%>"><%=Rsyn("FullNameCache")%>
Concept Synonym(s):  
  According to: <%=Rcsyn("RelRefCache")%>
  <% 'Construct a string concatenating the images that are needed to represent the concept relation concept_images="" if Rcsyn("is_congruent")<>0 then concept_images="" if Rcsyn("is_included_in")<>0 then if concept_images<>"" then concept_images=concept_images&"," else concept_images="" end if end if if Rcsyn("includes")<>0 then if concept_images<>"" then concept_images=concept_images&"," else concept_images="" end if end if if Rcsyn("overlaps")<>0 then if concept_images<>"" then concept_images=concept_images&"," else concept_images="" end if end if if Rcsyn("excludes")<>0 then if concept_images<>"" then concept_images=concept_images&"," else concept_images="" end if end if concept_images="{"&concept_images&"}" if Rcsyn("doubtful")<>0 then concept_images="?"&concept_images %> <%=concept_images%> &PTRefFk=<%=Rcsyn("RefId")%>"><%=Rcsyn("FullNameCache")%> sec. <%=Rcsyn("RefCache")%> <%=Rcsyn("RelNotes")%>
<%if contador=1 then%> Missaplied Name(s): <%end if%> &PTRefFk=<%=Rmiss("PTRefFk_s")%>"><%=Rmiss("FullNameCache")%> sec. <%=Rmiss("RefCache")%> [<%=Rmiss("RelQualifier")%>] <%=Rmiss("RelNotes")%>
<%if contador=1 then%> Included taxa: <%end if%> &PTRefFk=<%=Rinclu("PTRefFk")%>"><%=Rinclu("FullNameCache")%> <%if Rinclu("PTRefFk")<>Rptaxon("PTRefFk") then%> sec. <%=Rinclu("RefCache")%><%end if%>
Name Notes: <%=NameA(7)%>
Taxon Notes: <%=Rptaxon("Notes")%>
 
<% Rptaxon.close set Rptaxon = Nothing RAllData.MoveNext Wend %> <% ' Message indicating that there was no potential taxon using this name ---------------- '---------------------------------------------------------------------------------------------------------------------- else %>
There are no potential taxons using this name!
<% '----------------------------------------------------------------------------------------------------------------------- end if RAllData.close set RAllData = Nothing %>