src/hg/lib/hgFindSpecCustom.c 1.16

1.16 2010/03/29 23:11:37 angie
When filling in searchDescription using tdb->longLabel, just omit the table name because it is often more confusing than informative.
Index: src/hg/lib/hgFindSpecCustom.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgFindSpecCustom.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/hg/lib/hgFindSpecCustom.c	3 Sep 2008 19:19:24 -0000	1.15
+++ src/hg/lib/hgFindSpecCustom.c	29 Mar 2010 23:11:37 -0000	1.16
@@ -286,9 +286,9 @@
     struct sqlConnection *conn = hAllocConn(db);
     struct trackDb *tdb = hMaybeTrackInfo(conn, hfs->searchTable);
     hFreeConn(&conn);
     if (tdb != NULL)
-	safef(buf, sizeof(buf), "%s (%s)", tdb->longLabel, hfs->searchTable);
+	safecpy(buf, sizeof(buf), tdb->longLabel);
     else
 	safef(buf, sizeof(buf), "%s", hfs->searchTable);
     hfs->searchDescription = cloneString(buf);
     }