src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 1.19

1.19 2009/03/04 06:57:34 mikep
put the url around the term id
Index: src/hg/encode/hgEncodeVocab/hgEncodeVocab.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/hgEncodeVocab/hgEncodeVocab.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -b -B -U 4 -r1.18 -r1.19
--- src/hg/encode/hgEncodeVocab/hgEncodeVocab.c	25 Feb 2009 18:26:03 -0000	1.18
+++ src/hg/encode/hgEncodeVocab/hgEncodeVocab.c	4 Mar 2009 06:57:34 -0000	1.19
@@ -56,9 +56,9 @@
     puts("  <TH>Term</TH><TH>Antibody Description</TH><TH>Target Description</TH><TH>Vendor ID</TH>");
     }
 else if (sameString(type,"ripTgtProtein"))
     {
-    puts("  <TH>Term</TH><TH>Alternative Symbols</TH><TH>Description</TH><TH>URL</TH>");
+    puts("  <TH>Term</TH><TH>Alternative Symbols</TH><TH>Description</TH>");
     }
 else if (sameString(type,"localization"))
     {
     puts("  <TH>Term</TH><TH>Description</TH><TH>GO ID</TH>");
@@ -141,18 +141,17 @@
 else if (sameString(type,"ripTgtProtein"))
     {
     ++(*total);
     puts("<TR>");
+    s = hashFindVal(ra, "url");
+    if (s)
+	printf("  <TD><A STYLE=\"text-decoration:none\" TARGET=_BLANK HREF=\"%s\">%s</A></TD>\n", s, term);
+    else
     printf("  <TD>%s</TD>\n", term);
     s = hashFindVal(ra, "alternativeSymbols");
     printf("  <TD>%s</TD>\n", s ? s : "&nbsp;");
     s = hashFindVal(ra, "description");
     printf("  <TD>%s</TD>\n", s ? s : "&nbsp;");
-    s = hashFindVal(ra, "url");
-    if (s)
-	printf("  <TD><A STYLE=\"text-decoration:none\" TARGET=_BLANK HREF=\"%s\">Source URL</A></TD>\n", s);
-    else
-	printf("  <TD>&nbsp;</TD>\n");
     puts("</TR>");
     }
 else if (sameString(type,"localization"))
     {