fa815602bbac262a6e07ac577e40558abcf93144 max Tue Oct 15 04:53:53 2024 -0700 suppress download link for protected tracks, refs #34629 diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c index f0467fd..6e24217 100644 --- src/hg/hgTables/bigBed.c +++ src/hg/hgTables/bigBed.c @@ -525,31 +525,31 @@ conn = hAllocConn(database); char *fileName = bigBedFileName(table, conn); struct bbiFile *bbi = bigBedFileOpenAlias(fileName, chromAliasFindAliases); struct bbiChromInfo *chromList = bbiChromList(bbi); struct lm *lm = lmInit(0); struct bigBedInterval *ivList = getNElements(bbi, chromList, lm, 10); time_t timep = bbiUpdateTime(bbi); /* Get description of columns, making it up from BED records if need be. */ struct asObject *as = bigBedAsOrDefault(bbi); hPrintf("Database: %s", trackHubSkipHubName(database)); hPrintf("    Primary Table: %s ", table); printf("Data last updated: %s
\n", firstWordInLine(sqlUnixTimeToDate(&timep, FALSE))); -printDownloadLink("Big Bed", fileName); +printDownloadLink("Big Bed", tdb, fileName); if (bbi->version >= 2) { hPrintf("
Item Count: "); printLongWithCommas(stdout, bigBedItemCount(bbi)); } printTypeHelpDesc(tdb->type); hPrintf("
\n"); hPrintf("Format description: %s
", as->comment); /* Put up table that describes fields. */ hTableStart(); hPrintf("field"); if (ivList != NULL) hPrintf("example");