browser: search categories on uppercase form input
[sheet.git] / browser.plp
index 3dc8d806eda37a7bb4c57c57fdeb377f99ee3a2c..d623a344535af64c343ed15718756ad67fd1440d 100644 (file)
@@ -142,7 +142,7 @@ sub featurescore {
                        while (my ($browser, $versions) = each %$row) {
                                ref $versions eq 'HASH' or next;
                                while (my ($version, $_) = each %$versions) {
-                                       $rank += $canihas->{$browser}->{$version} * $statspts->{$_};
+                                       $rank += ($canihas->{$browser}->{$version} || .001) * $statspts->{$_};
                                }
                        }
                        return $rank;
@@ -172,7 +172,7 @@ sub saytitlecol {
 
        for ($row->{categories}) {
                my $cell = $_ ? lc $_->[0] : '-';
-               print '<th>', $cell;
+               printf '<th title="%s">%s', join(' + ', @$_), $cell;
        }
 
        print '<td>', map {