c20579fc7c537c1736650125c5d264357d2cfa78 angie Mon Sep 18 13:15:16 2017 -0700 Big search & replace: use https instead of http for NCBI URLs. refs #17793 diff --git src/hg/hgc/pubs.c src/hg/hgc/pubs.c index e9f576e..0371475 100644 --- src/hg/hgc/pubs.c +++ src/hg/hgc/pubs.c @@ -439,31 +439,31 @@ // optional: print the little gray line with author, journal, year info bool didPrint = FALSE; printf("<small>"); if (year!=NULL && differentWord(year, "0")) { printf("%s", year); didPrint = TRUE; } if (!isEmpty(journal)) { printf(" - %s ", journal); didPrint = TRUE; } if (!isEmpty(pmid) && strcmp(pmid, "0")!=0 ) { - printf(", <A HREF=\"http://www.ncbi.nlm.nih.gov/pubmed/%s\">PMID%s</A>\n", pmid, pmid); + printf(", <A HREF=\"https://www.ncbi.nlm.nih.gov/pubmed/%s\">PMID%s</A>\n", pmid, pmid); didPrint = TRUE; } printf("</small></span>\n"); if (didPrint) printf("<BR>\n"); if (pubsDebug) printf("articleId=%s", articleId); return articleId; } static void printSnippets(struct sqlResult *srSnip) { char **snipRow; @@ -659,31 +659,31 @@ printf("<P>%s</P>\n", authors); // // logo of publisher char *logoUrl = urlToLogoUrl(pubsArticleTable, articleId, url); if (logoUrl) printf("<a href=\"%s\"><img align=\"right\" hspace=\"20\" src=\"%s\"></a>\n", url, logoUrl); freeMem(logoUrl); printf("<div style=\"width:800px\">"); printf("<A TARGET=\"_blank\" HREF=\"%s\"><B>%s</B></A></div>\n", url, title); printf("</DIV>\n"); printf("</DIV>\n"); printf("<P style=\"width:1024px; 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(", <A HREF=\"https://www.ncbi.nlm.nih.gov/pubmed/%s\">PMID%s</A>\n", pmid, pmid); printf("</P>\n"); printf("<P style=\"width:1024px; 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, \ char *articleId, char *item, char *seqName, int start) /* return a hash with the sequence IDs for a given chain of BLAT matches */ { if (start==-1)