Functionalities added to BibAdmin whose code given below: * Main Keyword Cloud * Keyword Clouds * Author Photo Cloud * Coauthor Graph * Journal and Conference Clouds * Program Page * Keyword Definition === Main Keyword Cloud === in index.php ************************** echo " "; } ************************** in show.php, in the part about keyword pages, after line "$keyword = str_replace(",", "','", $keyword);". ************************** titlu("center", "$subt_col", "000000", "Associated keywords".$top_btn); echo " "; ************************** === Author Photo Cloud === in index.php Table $tb_authors now contains the 2 following fields to store the original picture URL and the local picture (100px*100px) URL: - picture varchar(255) - formattedpicture varchar(255) **************************
"; $thelinkid=@mysql_connect("$host","$login_user_db","$login_pass_db"); $res = mysql_db_query($db_bibliography, "SELECT * FROM $tb_keywords ORDER BY `name` ASC;"); $maxnb=0; while ($row=mysql_fetch_object($res )) { $newnb = mysql_num_rows(mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_keyw WHERE `id_keyw`='".$row->id."';")); if ($newnb>$maxnb){ $maxnb=$newnb; } } $res = mysql_db_query($db_bibliography, "SELECT * FROM $tb_keywords ORDER BY `name` ASC;"); while ($row=mysql_fetch_object($res )) { $res2 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_keyw WHERE `id_keyw`='".$row->id."';"); $coeff = mysql_num_rows($res2); echo "name)."\" class=\"level".(floor(10*log(1+$coeff)/log(1+$maxnb )))."\">".str_replace(" ","-",$row->name)."(".$coeff.") "; } echo "
"; ************************** It uses the following CSS code for "petitnuage2": ++++++++++++++++++++++++++ .petitnuage2 {line-height:18px;font: normal small verdana, arial, helvetica, sans-serif; text-align: justify; border:0px #B6CDE1; padding:10px; position:relative; width:100%} .petitnuage2 a {text-decoration:none} .petitnuage2 a:hover {color: white; background-color: #668AA8;} .petitnuage2 a.level0 {font-size:8px;color:#DFDFDF;} .petitnuage2 a.level1 {font-size:9px;color:#B8C9D6;} .petitnuage2 a.level2 {font-size:10px;color:#668AA8;} .petitnuage2 a.level3 {font-size:11px;color:#47657B;} .petitnuage2 a.level4 {font-size:12px;color:#E76300;} .petitnuage2 a.level5 {font-size:13px;color:#E76300;} .petitnuage2 a.level6 {font-size:14px;color:#E76300;} .petitnuage2 a.level7 {font-size:15px;color:#E76300;font-weight: bold} .petitnuage2 a.level8 {font-size:16px;color:#E76300;font-weight: bold} .petitnuage2 a.level9 {font-size:17px;color:#E76300;font-weight: bold} .petitnuage2 a.level10 {font-size:18px;color:#FF3300;font-weight: bold} .petitnuage_titre {font: normal small verdana, arial, helvetica, sans-serif; font-size:10px;color:gray; font-style:italic;} ++++++++++++++++++++++++++ === Keyword Clouds === in show.php, in the part about author pages, after the "titlu" line: ************************** $kwarray=array(); $res = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_auth WHERE id_author='".$author_id."';"); while ($row = mysql_fetch_object($res)){ $ress2 = mysql_db_query($db_bibliography,"SELECT * FROM ".$tb_pub_to_keyw." WHERE id_pub=".$row->id_pub.";"); while ($row2 = mysql_fetch_object($ress2)){ if (array_key_exists($row2->id_keyw,$kwarray)){ $kwarray[$row2->id_keyw]++; } else { $kwarray[$row2->id_keyw]=1; } } } $maxnb=0; $thekeywords=array(); foreach ($kwarray as $word_id => $value) { $ress=mysql_db_query($db_bibliography,"SELECT * FROM ".$tb_keywords." WHERE id=".$word_id.";"); while ($row = mysql_fetch_object($ress)){ $thekeywords[$row->name]=$value; if ($value>$maxnb){$maxnb=$value;} } } function insensitive_uksort($a,$b) { return strtolower($a)>strtolower($b); } uksort($thekeywords, "insensitive_uksort"); if (count($thekeywords)>0){ titlu("center", "$subt_col", "000000", "Associated keywords".$top_btn); echo "
"; foreach ($thekeywords as $word => $value) { if ($maxnb<6) {$value=$value/2;} echo "".str_replace(" ","-",$word)." "; } echo "
"; $keywordsid=""; for ($i=0; $i0){ $keywordsid=$keywordsid.",".$row->id; } else { $keywordsid=$row->id; } } } $kwarray=array(); $ress = mysql_db_query($db_bibliography,"SELECT * FROM ".$tb_pub_to_keyw." WHERE id_keyw in ('".$keywordsid."') GROUP BY id_pub;"); while ($row = mysql_fetch_object($ress)){ $ress2 = mysql_db_query($db_bibliography,"SELECT * FROM ".$tb_pub_to_keyw." WHERE id_pub=".$row->id_pub.";"); while ($row2 = mysql_fetch_object($ress2)){ if (array_key_exists($row2->id_keyw,$kwarray)){ $kwarray[$row2->id_keyw]++; } else { $kwarray[$row2->id_keyw]=1; } } } $maxnb=0; $thekeywords=array(); foreach ($kwarray as $word_id => $value) { $ress=mysql_db_query($db_bibliography,"SELECT * FROM ".$tb_keywords." WHERE id=".$word_id.";"); while ($row = mysql_fetch_object($ress)){ $thekeywords[$row->name]=$value; if ($value>$maxnb){$maxnb=$value;} } } function insensitive_uksort($a,$b) { return strtolower($a)>strtolower($b); } uksort($thekeywords, "insensitive_uksort"); foreach ($thekeywords as $word => $value) { if ($maxnb<6) {$value=$value/2;} echo "".str_replace(" ","-",$word)." "; } echo "
"; $linkid=@mysql_connect("$host","$login_user_db","$login_pass_db"); $res = mysql_db_query($db_bibliography, "SELECT * FROM $tb_authors WHERE `picture`!='' ORDER BY `name` ASC;"); if (mysql_num_rows($res) > 0){ while ($row=mysql_fetch_object($res )) { $res2 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_auth WHERE `id_author`='".$row->id."' AND `tip`='a';"); $coeff = 0; while ($row2=mysql_fetch_object($res2)) { $res3 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_auth WHERE `id_pub`='".$row2->id_pub."' AND `tip`='a';"); $coeff += 10/mysql_num_rows($res3); } if ($coeff>0){ echo "id. "\">formattedpicture."\" border=\"0\" width=\"".(floor(11+20*log(1+$coeff)))."px\" alt=\"".($row->surname." ".$row->name)."\" title=\"".($row->surname." ".$row->name)."\">"; } //echo "name."\" class=\"level".rand(1,10)."\">".$row->name." "; //\"".(!empty($row->homepage)? ("./show.php?author_id=".$row->id):"http://www.google.com/search?q=".$row->surname." ".$row->name). } } mysql_free_result($res); mysql_close($linkid); echo "
Authors present in the database (size representing the number of publications, weighted by the number of coauthors on each publication)
************************** === Coauthor Graph === in new page coauthor.php it uses the JAVA applet available on http://java.sun.com/applets/jdk/1.4/demo/applets/GraphLayout/Graph.class ************************** echo '

Coauthor graph in 2007

'; // echo 'surname; $thename=str_replace(" ","",str_replace("-","",$leprenom{0}.$row->name)); $res2 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_auth WHERE `id_author`='".$row->id."' and `tip`='a';"); $nbres2 = mysql_num_rows($res2); if ($nbres2>1){ while ($row2=mysql_fetch_object($res2)) { if (mysql_num_rows(mysql_db_query($db_bibliography, "SELECT * FROM $tb_publications WHERE `id`='".$row2->id_pub."' and year<2008;"))>0){ $res3 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_auth WHERE `id_pub`='".$row2->id_pub."';"); while ($row3=mysql_fetch_object($res3)) { $res4 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_authors WHERE `id`='".$row3->id_author."';"); $row4=mysql_fetch_object($res4); if (!array_key_exists($row4->name,$array)){ $array[$row4->name]=1; $leprenom2=$row4->surname; $theother=str_replace(" ","",str_replace("-","",$leprenom2{0}.$row4->name)); if (strnatcmp($thename,$theother)<0){ $res5 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_auth WHERE `id_author`='".$row4->id."' and `tip`='a';"); if ((mysql_num_rows($res5)>2) && ($nbres2>2)) if ($premier==1){ echo $thename.'-'.$theother.'/'.(25+15*$i); $premier=0; } else echo ','.$thename.'-'.$theother.'/'.(25+15*$i); $i++; } } } } } } } echo '"> '; ************************** === Journal and Conference Cloud === in show.php ************************** if ($entry_type=="InProceedings") { echo "
"; $res = mysql_db_query($db_bibliography, "SELECT DISTINCT booktitle FROM $tb_publications WHERE entry_type='$entry_type' ORDER BY booktitle ASC;"); while ($row = mysql_fetch_object($res )){ $res2 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_publications WHERE `booktitle`='".mysql_real_escape_string($row->booktitle)."';"); $coeff = mysql_num_rows($res2); echo "booktitle)."\" class=\"level".(2*$coeff)."\">"; if (strpos($row->booktitle,")")){ $text=str_replace(")","",str_replace("(","",strstr($row->booktitle,"("))); echo str_replace(" ","-",$text)."(".$coeff.") "; } else { echo str_replace(" ","-",$row->booktitle)."(".$coeff.") "; } } echo "
"; } elseif ($entry_type=="Article (Journal)") { echo "
"; $res = mysql_db_query($db_bibliography, "SELECT DISTINCT journal FROM $tb_publications WHERE entry_type='$entry_type' ORDER BY journal ASC;"); while ($row = mysql_fetch_object($res )){ $res2 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_publications WHERE `journal`='".mysql_real_escape_string($row->journal)."';"); $coeff = mysql_num_rows($res2); echo "journal)."\" class=\"level".min(10,($coeff))."\">"; if (strpos($row->journal,")")){ $text=str_replace(")","",str_replace("(","",strstr($row->journal,"("))); echo str_replace(" ","-",$text)."(".$coeff.") "; } else { echo str_replace(" ","-",$row->journal)."(".$coeff.") "; } } echo "
"; } ************************** === Program Page === in show.php ************************** else if (!empty($keyword) && ($keyword=='programs')) { //Show by programs $titlul = 'Programs to compute, evaluate, compare, visualize... phylogenetic networks.
This page is automatically built from all publications tagged by Program* in the database.'; titlu("left", "$title_bg", "FFFFFF", $titlul . "   "); require_once('./fc_enum.php'); // echo " "; echo "
"; $res = mysql_db_query($db_bibliography, "SELECT * FROM $tb_keywords WHERE `name` LIKE 'Program%' ORDER BY `name`;"); while ($row=mysql_fetch_object($res )){ $res2 = mysql_db_query($db_bibliography, "SELECT * FROM $tb_pub_to_keyw WHERE `id_keyw`='$row->id';"); echo "
name."\" title=\"Show publications on ".$row->name."\" class=\"subl\">".$row->name."
".$row->about." "; if (mysql_num_rows($res2)>1){ echo "
name."\">".mysql_num_rows($res2)." publications in the database mention ".$row->name." ";} else{ echo "
name."\">".mysql_num_rows($res2)." publication in the database mentions ".$row->name." "; } echo "
"; } echo " "; } ************************** === Keyword Defintion === in show.php, a few lines after "} else if (!empty($keyword)) {" ************************** $lin .= (empty($lin)?"":",").$keywords[$i]; $titlul .= "'".$keywords[$i]."'". (empty($user) ? "":"\"Edit\""). (empty($row->about) ? "
":" : ".$row->about."
"); **************************