6040b98c09665c8850ba5de35cd7290b62d626e8
kate
  Mon Apr 9 17:35:29 2012 -0700
Add header links for Antibody Targets (except for IE, where special handling of vertical headers generates inner div so additional work would be required to implement)
diff --git src/hg/js/encodeChipMatrix.js src/hg/js/encodeChipMatrix.js
index 3510971..d0e1690 100644
--- src/hg/js/encodeChipMatrix.js
+++ src/hg/js/encodeChipMatrix.js
@@ -109,32 +109,33 @@
         // colgroups are needed to support cross-hair hover effect
         $thead.before('<colgroup></colgroup>');
 
         $.each(antibodyGroups, function (i, group) {
             $tableHeaders.append('<th class="groupType"><div class="verticalText">' + 
                                 group.label + '</div></th>');
             maxLen = Math.max(maxLen, group.label.length);
             $thead.before('<colgroup></colgroup>');
 
             $.each(group.targets, function (i, target) {
                 // prune out targets with no experiments 
                 if (antibodyTargetExps[target] === undefined) {
                     return true;
                 }
                 antibodyTarget = encodeProject.getAntibodyTarget(target);
-                $th = $('<th class="elementType"><div class="verticalText">' + 
-                                target + '</div></th>');
+                $th = $('<th class="elementType">' + '<div class="verticalText">'+
+                    '<a target="cvWindow" href="/cgi-bin/hgEncodeVocab?ra=encode/cv.ra&deprecated=true&target=' + 
+                    encodeURIComponent(target) + '">' + target + '</a></div></th>');
                 if (!encodeProject.isIE8()) {
                     // Suppress mouseover under IE8 as QA noted flashing effect
                     $th.attr('title', antibodyTarget.description);
                 }
                 $tableHeaders.append($th);
                 // add colgroup element to support cross-hair hover effect
                 $thead.before('<colgroup class="experimentCol"></colgroup>');
                 maxLen = Math.max(maxLen, target.length);
             });
         });
         // adjust size of headers based on longest label length
         // empirically len/2 em's is right
         $('#columnHeaders th').css('height', (String((maxLen/2 + 2)).concat('em')));
         $('#columnHeaders th').css('width', '1em');