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("<B>Database:</B> %s", trackHubSkipHubName(database)); hPrintf(" <B>Primary Table:</B> %s ", table); printf("<B>Data last updated: </B>%s<BR>\n", firstWordInLine(sqlUnixTimeToDate(&timep, FALSE))); -printDownloadLink("Big Bed", fileName); +printDownloadLink("Big Bed", tdb, fileName); if (bbi->version >= 2) { hPrintf("<BR><B>Item Count:</B> "); printLongWithCommas(stdout, bigBedItemCount(bbi)); } printTypeHelpDesc(tdb->type); hPrintf("<BR>\n"); hPrintf("<B>Format description:</B> %s<BR>", as->comment); /* Put up table that describes fields. */ hTableStart(); hPrintf("<TR><TH>field</TH>"); if (ivList != NULL) hPrintf("<TH>example</TH>");