src/hg/hgTables/schema.c 1.64

1.64 2010/05/11 01:43:25 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgTables/schema.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/schema.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -b -B -U 4 -r1.63 -r1.64
--- src/hg/hgTables/schema.c	12 Apr 2010 18:16:48 -0000	1.63
+++ src/hg/hgTables/schema.c	11 May 2010 01:43:25 -0000	1.64
@@ -326,9 +326,9 @@
 /* If trackDb has html for table, print it out in a new section. */
 {
 if (tdb != NULL && isNotEmpty(tdb->html))
     {
-    webNewSection("%s (%s) Track Description", tdb->shortLabel, tdb->tableName);
+    webNewSection("%s (%s) Track Description", tdb->shortLabel, tdb->table);
     puts(tdb->html);
     }
 }
 
@@ -597,9 +597,9 @@
 /* Return TRUE if curTable is curTrack or its subtrack. */
 {
 if (curTrack == NULL)
     return FALSE;
-if (sameString(curTrack->tableName, curTable))
+if (sameString(curTrack->table, curTable))
     return TRUE;
 else if (startsWith("wigMaf", curTrack->type))
     {
     struct consWiggle *wig, *wiggles = wigMafWiggles(database, curTrack);
@@ -613,9 +613,9 @@
     struct slRef *tdbRef;
     for (tdbRef = tdbRefList; tdbRef != NULL; tdbRef = tdbRef->next)
         {
 	struct trackDb *sTdb = tdbRef->val;
-        if (sameString(sTdb->tableName, curTable))
+        if (sameString(sTdb->table, curTable))
             return TRUE;
         }
     }
 return FALSE;