src/hg/lib/hgFind.c 1.220
1.220 2009/07/09 00:06:02 angie
When searching all_{mrna,est}, strip off the all_ only if there are split tables; otherwise all_{mrna,est} is the trackDb track name too.
Index: src/hg/lib/hgFind.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgFind.c,v
retrieving revision 1.219
retrieving revision 1.220
diff -b -B -U 4 -r1.219 -r1.220
--- src/hg/lib/hgFind.c 3 Jun 2009 04:30:19 -0000 1.219
+++ src/hg/lib/hgFind.c 9 Jul 2009 00:06:02 -0000 1.220
@@ -1320,9 +1320,13 @@
slAddHead(&hgp->tableList, table);
dyStringPrintf(dy, "%s Alignments in %s", acc, shortLabel);
table->description = cloneString(dy->string);
if (startsWith("all_", tableName))
+ {
+ struct hTableInfo *hti = hFindTableInfo(db, NULL, tableName+4);
+ if (hti && hti->isSplit)
tableName += 4;
+ }
table->name = cloneString(tableName);
slSort(&pslList, pslCmpScore);
for (psl = pslList; psl != NULL; psl = psl->next)
{
@@ -1727,9 +1731,15 @@
isXeno ? "Non-" : "", organism,
aligns ? "A" : "Una");
freeMem(organism);
table->description = cloneString(title);
- table->name = isXeno ? cloneString("xenoMrna") : cloneString("mrna");
+ if (isXeno)
+ table->name = cloneString("xenoMrna");
+ else
+ {
+ struct hTableInfo *hti = hFindTableInfo(db, NULL, "mrna");
+ table->name = cloneString((hti && hti->isSplit) ? "mrna" : "all_mrna");
+ }
table->htmlOnePos = mrnaKeysHtmlOnePos;
slAddHead(&hgp->tableList, table);
}
freeDyString(&dy);