fa815602bbac262a6e07ac577e40558abcf93144 max Tue Oct 15 04:53:53 2024 -0700 suppress download link for protected tracks, refs #34629 diff --git src/hg/hgTables/vcf.c src/hg/hgTables/vcf.c index c180371..5b9863a 100644 --- src/hg/hgTables/vcf.c +++ src/hg/hgTables/vcf.c @@ -465,31 +465,31 @@ } #define VCF_MAX_SCHEMA_COLS 20 void showSchemaVcf(char *table, struct trackDb *tdb, boolean isTabix) /* Show schema on vcf. */ { struct sqlConnection *conn = NULL; if (!trackHubDatabase(database)) conn = hAllocConn(database); char *fileName = vcfMustFindFileName(conn, table, hDefaultChrom(database), isTabix); struct asObject *as = vcfAsObj(); hPrintf("<B>Database:</B> %s", database); hPrintf(" <B>Primary Table:</B> %s<br>", table); -printDownloadLink("VCF", fileName); +printDownloadLink("VCF", tdb, fileName); hPrintf("<BR>\n"); hPrintf("<B>Format description:</B> %s<BR>", as->comment); /* Put up table that describes fields. */ hTableStart(); hPrintf("<TR><TH>field</TH>"); hPrintf("<TH>description</TH> "); puts("</TR>\n"); struct asColumn *col; int colCount = 0; for (col = as->columnList; col != NULL; col = col->next) { hPrintf("<TR><TD><TT>%s</TT></TD>", col->name); hPrintf("<TD>%s</TD></TR>", col->comment); ++colCount;