src/hg/hgc/t2g.c 1.3
1.3 2010/05/20 20:56:37 hiram
rearrange heading information in t2g printout
Index: src/hg/hgc/t2g.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/t2g.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 4 -r1.2 -r1.3
--- src/hg/hgc/t2g.c 20 May 2010 19:14:15 -0000 1.2
+++ src/hg/hgc/t2g.c 20 May 2010 20:56:37 -0000 1.3
@@ -9,31 +9,27 @@
#include "hash.h"
void printPubmedLink(char* pmid)
{
- printf("<A HREF=\"http://www.ncbi.nlm.nih.gov/pubmed/%s\">PubMed</A>", pmid);
+ printf("<B>PubMed:</B> <A HREF=\"http://www.ncbi.nlm.nih.gov/pubmed/%s\" TARGET=_blank>%s</A><BR>\n", pmid, pmid);
}
void printPmcLink(char* pmcId)
{
- printf("<A HREF=\"http://www.ncbi.nlm.nih.gov/pmc/articles/PMC%s/?tool=pubmed\">PubmedCentral</A>", pmcId);
+ printf("<B>PubMed Central:</B> <A HREF=\"http://www.ncbi.nlm.nih.gov/pmc/articles/PMC%s/?tool=pubmed\" TARGET=_blank>%s</A><BR>\n", pmcId, pmcId);
}
void printT2gLink(char* pmcId)
{
- printf("<A HREF=\"http://kumiho.smith.man.ac.uk/bergman/text2genome/inspector.cgi?pmcId=%s\">text2genome</A>", pmcId);
+ printf("<B>Text2Genome:</B> <A HREF=\"http://kumiho.smith.man.ac.uk/bergman/text2genome/inspector.cgi?pmcId=%s\" TARGET=_blank>%s</A><BR>\n", pmcId, pmcId);
}
void printLinks(char* pmid, char* pmcId)
{
- printf("Links: ");
- printf("<SMALL>");
printT2gLink(pmcId);
- printf(", ");
printPubmedLink(pmid);
- printf(", ");
printPmcLink(pmcId);
- printf("</SMALL><P>");
+ printf("<BR>\n");
}
char* printArticleInfo(struct sqlConnection *conn, struct trackDb* tdb, char* item)
/* Header with information about paper, return documentId */
@@ -133,13 +129,13 @@
else
safef(headerTitle, sizeof(headerTitle), "%s", item);
genericHeader(tdb, headerTitle);
-
-printPos(chr, start, end, strand, TRUE, item);
+printPos(chr, start, end, strand, FALSE, item);
freeMem(chr);
-char* docId=0;
-docId = printArticleInfo(conn, tdb, item);
+
+char* docId = printArticleInfo(conn, tdb, item);
+
if (docId!=0)
{
printSeqInfo(conn, tdb, docId);