3 =head2 library_summary_html
5 Desc: get a chunk of HTML describing this library
7 Ret : html string containing a summary of this library's vital statistics
15 sub library_summary_html {
18 my $libname = $this->name;
19 # my $superclone = $this->superclone_object;
20 # my $super_html = $superclone ? die 'not implemented' : 'none';
21 my (undef, $organism, $accession) = $this->accession_name;
23 my $host = $this->cloning_host;
24 my $vector = $this->cloning_vector_object->name;
25 my ($rs1,$rs2) = ($this->rs1, $this->rs2);
27 ($host,$vector,$rs1,$rs2) =
28 map {$_ || ''} ($host,$vector,$rs1,$rs2);
29 $vector &&= $this->cloning_vector_object->link_html;
31 info_table_html(#table attributes
35 #fields that will always be there
37 Organism => $organism,
38 Accession => $accession,
39 'Cloning host' => $host,
40 'Cloning vector' => $vector,
42 #fields that are only sometimes there
43 $rs1 ? $rs2 ? ('Restriction enzyme 1', $rs1)
44 : ('Restriction enzyme' , $rs1)
46 $rs2 ? $rs1 ? ('Restriction enzyme 2', $rs2)
47 : ('Restriction enzyme' , $rs2)
59 print library_summary_html($library);