f885d0e861141c45a882fab5a66eb9e640341c4f markd Wed Jun 5 23:35:56 2013 -0700 open gencode hgc links back to browser in the same window diff --git src/hg/hgc/gencodeClick.c src/hg/hgc/gencodeClick.c index b67ac09..93a4766 100644 --- src/hg/hgc/gencodeClick.c +++ src/hg/hgc/gencodeClick.c @@ -181,31 +181,31 @@ safef(urlBuf, sizeof(urlBuf), urlTemplate, id); printf("<a href=\"%s\" target=_blank>%s</a>", urlBuf, id); } } static void prTdExtIdAnchor(char *id, char *urlTemplate) /* print a table data element with an anchor for a id */ { printf("<td>"); prExtIdAnchor(id, urlTemplate); } static void writePosLink(char *chrom, int chromStart, int chromEnd) /* write link to a genomic position */ { -printf("<a href=\"%s&db=%s&position=%s%%3A%d-%d\" target=_blank>%s:%d-%d</A>", +printf("<a href=\"%s&db=%s&position=%s%%3A%d-%d\">%s:%d-%d</A>", hgTracksPathAndSettings(), database, chrom, chromStart, chromEnd, chrom, chromStart+1, chromEnd); } static void writeBasicInfoHtml(struct trackDb *tdb, char *gencodeId, struct genePred *transAnno, struct wgEncodeGencodeAttrs *transAttrs, int geneChromStart, int geneChromEnd, struct wgEncodeGencodeGeneSource *geneSource, struct wgEncodeGencodeTranscriptSource *transcriptSource, bool haveTsl, struct wgEncodeGencodeTranscriptionSupportLevel *tsl) /* write basic HTML info for all genes */ { /* * notes: * - According to Steve: `status' is not the same for ensembl and havana. So either avoid displaying it * or display it as `automatic status' or `manual status'. */