e73289859b677d42a6656224c8b97689192ee43d tdreszer Thu Jan 6 13:53:50 2011 -0800 Refinement of supplemental link. If supplemental is soft link as with Open Chrom, it was failing to appear. diff --git src/hg/lib/fileUi.c src/hg/lib/fileUi.c index 0cca925..cd0d693 100644 --- src/hg/lib/fileUi.c +++ src/hg/lib/fileUi.c @@ -60,31 +60,31 @@ safef(cmd,sizeof(cmd),"ls -log --time-style=long-iso /usr/local/apache/htdocs-hgdownload/goldenPath/%s/%s/%s/", db,dir,subDir); } else // genome and hgwbeta can use rsync { // Works: rsync -avn rsync://hgdownload.cse.ucsc.edu/goldenPath/hg18/encodeDCC/wgEncodeBroadChipSeq safef(cmd,sizeof(cmd),"rsync -avn rsync://%s/goldenPath/%s/%s/%s/%s | grep %s", server, db, subDir,dir,fileName,fileName); } //warn("cmd: %s",cmd); scriptOutput = popen(cmd, "r"); while(fgets(buf, sizeof(buf), scriptOutput)) { eraseTrailingSpaces(buf); if (!endsWith(buf,".md5sum")) // Just ignore these { int count = chopLine(buf, words); - if (count == 6 && sameString(server,"hgdownload-test.cse.ucsc.edu")) // genome-test is different + if (count >= 6 && sameString(server,"hgdownload-test.cse.ucsc.edu")) // genome-test is different { //-rw-rw-r-- 5 502826550 2010-10-22 16:51 /usr/local/apache/htdocs-hgdownload/goldenPath/hg19/encodeDCC/wgEncodeBroadHistone/wgEncodeBroadHistoneGm12878ControlStdRawDataRep1.fastq.gz AllocVar(oneFile); oneFile->fileSize = sqlUnsignedLong(words[2]); oneFile->fileDate = cloneString(words[3]); char *atSlash = strrchr(words[5], '/'); if (atSlash != NULL) oneFile->fileName = cloneString(atSlash + 1); else oneFile->fileName = cloneString(words[5]); slAddHead(&foundFiles,oneFile); } else if (count == 5 && differentString(server,"hgdownload-test.cse.ucsc.edu"))// genome and hgwbeta can use rsync { //-rw-rw-r-- 26420982 2009/09/29 14:53:30 wgEncodeBroadChipSeq/wgEncodeBroadChipSeqSignalNhlfH4k20me1.wig.gz @@ -260,37 +260,37 @@ oneFile->sortFields[sortOrder->count] = NULL; } } slSort(fileList,fileDbSortCmp); } } static void filesDownloadsPreamble(char *db, struct trackDb *tdb) { puts("

Data is RESTRICTED FROM USE"); puts("in publication until the restriction date noted for the given data file.track, "supplemental"); if (oneFile != NULL) { - printf("

\nSupplemental materials may be found here.

\n", + printf("

\nSupplemental materials may be found here.

\n", hDownloadsServer(),db,ENCODE_DCC_DOWNLOADS, tdb->track); } puts("

\nThere are two files within this directory that contain information about the downloads:"); -printf("
• files.txt which is a tab-separated file with the name and metadata for each download.\n", +printf("
• files.txt which is a tab-separated file with the name and metadata for each download.\n", hDownloadsServer(),db,ENCODE_DCC_DOWNLOADS, tdb->track); -printf("
• md5sum.txt which is a list of the md5sum output for each download.\n", +printf("
• md5sum.txt which is a list of the md5sum output for each download.\n", hDownloadsServer(),db,ENCODE_DCC_DOWNLOADS, tdb->track); puts("

"); } void filesDownloadUi(char *db, struct cart *cart, struct trackDb *tdb) // UI for a "composite like" track: This will list downloadable files associated with // a single trackDb entry (composite or of type "downloadsOnly". The list of files // will have links to their download and have metadata information associated. // The list will be a sortable table and there may be filtering controls. { // The basic idea: // 1) tdb of composite or type=downloadsOnly tableless track // 2) All mdb Objs associated with "composite=tdb->track" and having fileName // 3) Verification of each file in its discovered location // 4) Lookup of 'fileSortOrder'