6585af44ef1b7a1bd1518fab1d504165ca5ebd53 max Wed May 1 14:15:36 2013 -0700 better html layout of publisher logo diff --git src/hg/hgc/pubs.c src/hg/hgc/pubs.c index e53e6df..90c0571 100644 --- src/hg/hgc/pubs.c +++ src/hg/hgc/pubs.c @@ -457,40 +457,41 @@ char *pmid = row[6]; articleSource = row[7]; extId = row[8]; url = mangleUrl(url); if (strlen(abstract)==0) abstract = "(No abstract available for this article. " "Please follow the link to the fulltext above by clicking on the titel or the fulltext image.)"; if (stringIn("sciencedirect.com", url)) { pubsHasSupp = FALSE; pubsIsElsevier = TRUE; } +// authors title +printf("<DIV style=\"width:800px; font-size:100%%\">\n"); +printf("<P>%s</P>\n", authors); +printf("<A TARGET=\"_blank\" HREF=\"%s\"><B>%s</B></A>\n", url, title); + // logo of publisher char *logoUrl = urlToLogoUrl(conn, pubsArticleTable, articleId, url); if (logoUrl) printf("<a href=\"%s\"><img align=\"right\" hspace=\"20\" src=\"%s\"></a>\n", url, logoUrl); freeMem(logoUrl); - -printf("<P>%s</P>\n", authors); -printf("<A TARGET=\"_blank\" HREF=\"%s\"><B>%s</B>\n", url, title); -printf("</A>\n"); - +printf("</DIV>\n"); printf("<P style=\"width:800px; font-size:80%%\">%s", cit); if (strlen(pmid)!=0 && strcmp(pmid, "0")) printf(", <A HREF=\"http://www.ncbi.nlm.nih.gov/pubmed/%s\">PMID%s</A>\n", pmid, pmid); printf("</P>\n"); printf("<P style=\"width:800px; font-size:100%%\">%s</P>\n", abstract); if (pubsIsElsevier) printf("<P><SMALL>Copyright 2012 Elsevier B.V. All rights reserved.</SMALL></P>"); sqlFreeResult(&sr); return articleId; } static struct hash *getSeqIdHash(struct sqlConnection *conn, char *trackTable, \