bf536f84ca4ea0d5ff0578b03d04644585647e25
kate
Mon Nov 27 15:28:31 2017 -0800
Suppress 'view schema' links for longTabix until view is implemented. refs #20599
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index f28d8c1..aa90c96 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -144,31 +144,33 @@
if (browser == btIE || browser == btFF)
upArrow = "↑";
// Note: the nested spans are so that javascript can determine position
// and selectively display the link when appropriate
printf("%s"
-if (trackDataAccessible(db, tdb))
+if (trackDataAccessible(db, tdb) && differentString("longTabix", tdb->type))
+ // FIXME: hgTables.showSchmaLongTabix is a currently a dummy routine, so let's not got here
+ // until it's implemented
{
char *tbOff = trackDbSetting(tdb, "tableBrowser");
if (isNotEmpty(tbOff) && sameString(nextWord(&tbOff), "off"))
return FALSE;
char *hint = " title='Open table schema in new window'";
if (label == NULL)
label = " View table schema";
struct trackDb *topLevel = trackDbTopLevelSelfOrParent(tdb);
printf(SCHEMA_LINKED, db, topLevel->grp, topLevel->track, tdb->table, hint, label);
return TRUE;
}
return FALSE;
}
char *wgEncodeVocabLink(char *file,char *term,char *value,char *title, char *label,char *suffix)
@@ -404,31 +406,33 @@
printf("Metadata:
%s\n", metadataAsHtmlTable(db, tdb, FALSE, FALSE));
boolean schemaLink = trackDataAccessible(db, tdb);
boolean downloadLink = (trackDbSetting(tdb, "wgEncode") != NULL && !tdbIsSuperTrack(tdb));
int links = 0;
if (schemaLink)
links++;
if (downloadLink)
links++;
if (links > 0)
cgiDown(0.7);
if (links > 1)
printf("
View table: "); -if (schemaLink) +if (schemaLink && differentString("longTabix", tdb->type)) + // FIXME: hgTables.showSchmaLongTabix is a currently a dummy routine, so let's not got here + // until it's implemented { makeSchemaLink(db,tdb,(links > 1 ? "schema":"View table schema")); if (downloadLink) printf(", "); } if (downloadLink) { // special case exception (hg18:NHGRI BiPs are in 7 different dbs but only hg18 has downloads): char *targetDb = trackDbSetting(tdb, "compareGenomeLinks"); if (targetDb != NULL) { targetDb = cloneFirstWordByDelimiter(targetDb,'='); if (!startsWith("hg",targetDb)) freez(&targetDb); } |