Team:Warsaw/Calendar-Main/NoAtribution
From 2008.igem.org
(Difference between revisions)
Line 167: | Line 167: | ||
else if(ans.search("<h4>")<0) document.getElementById("no_author").innerHTML=document.getElementById("no_author").innerHTML+"<br/><a href="+'"'+adresbase+nday+'"'+">"+nday+" No authors:"+get_title(ans)+"</a>"; | else if(ans.search("<h4>")<0) document.getElementById("no_author").innerHTML=document.getElementById("no_author").innerHTML+"<br/><a href="+'"'+adresbase+nday+'"'+">"+nday+" No authors:"+get_title(ans)+"</a>"; | ||
- | else if (count_authors(ans)==count_titles(ans)) | + | else if (and(count_authors(ans)==count_titles(ans),count_authors(ans)>0)) |
{ | { | ||
for (i in authors) | for (i in authors) | ||
{ | { | ||
- | if(ans.search( | + | if(ans.search(authors[i])>0) { |
document.getElementById(authors[i]).innerHTML=document.getElementById(authors[i]).innerHTML+"<br/><a href="+'"'+adresbase+nday+'"'+">"+nday+": "+get_title_by_author(ans,authors[i])+"</a>"; | document.getElementById(authors[i]).innerHTML=document.getElementById(authors[i]).innerHTML+"<br/><a href="+'"'+adresbase+nday+'"'+">"+nday+": "+get_title_by_author(ans,authors[i])+"</a>"; | ||
Revision as of 22:17, 10 October 2008
Attribution analyzer
|