6e2e27d593cd3c4bdaddb5e5634b7d1f2196a6e6
max
Thu Oct 4 15:59:08 2012 -0700
adding logos to article pages (preparing for upcoming license change by elsevier)
diff --git src/hg/hgc/pubs.c src/hg/hgc/pubs.c
index ccf6f9b..be6da5a 100644
--- src/hg/hgc/pubs.c
+++ src/hg/hgc/pubs.c
@@ -345,30 +345,44 @@
printf("%s; ", authors);
printf("%s ", citation);
if (!isEmpty(pmid) && strcmp(pmid, "0")!=0 )
printf(", PMID%s\n", pmid, pmid);
printf("
\n");
if (pubsDebug)
printf("articleId=%s", articleId);
printf("%s
", snippets); printf("
%s
\n", authors); -printf("%s\n", url, title); +printf("%s\n", url, title); +printf("\n"); + + printf("%s", cit); if (strlen(pmid)!=0 && strcmp(pmid, "0")) printf(", PMID%s\n", pmid, pmid); printf("
\n"); printf("%s
\n", abstract); +if (pubsIsElsevier) + printf("Copyright 2012 Elsevier B.V. All rights reserved.
"); + 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 */ { char query[512]; /* check first if the column exists (some debugging tables on hgwdev don't have seqIds) */ safef(query, sizeof(query), "SHOW COLUMNS FROM %s LIKE 'seqIds';", trackTable); char *seqIdPresent = sqlQuickString(conn, query); if (!seqIdPresent) { return NULL; } @@ -653,32 +678,30 @@ /* print sequences, split into two sections * two sections: one for sequences that were clicked, one for all others*/ { struct hash *clickedSeqs = getSeqIdHash(conn, trackTable, articleId, item, seqName, start); bool skippedRows; if (clickedSeqs) skippedRows = printSeqSection(articleId, "Sequences used to construct this feature", \ fileDesc, conn, clickedSeqs, 1, fasta, pslTable, articleTable); else skippedRows=1; if (skippedRows) printSeqSection(articleId, "Other Sequences in this article", \ fileDesc, conn, clickedSeqs, 0, fasta, pslTable, articleTable); -if (pubsIsElsevier) - printf("Copyright 2012 Elsevier B.V. All rights reserved.
"); freeHash(&clickedSeqs); } static void printTrackVersion(struct trackDb *tdb, struct sqlConnection *conn, char *item) { char versionString[256]; char dateReference[256]; char headerTitle[512]; /* see if hgFixed.trackVersion exists */ boolean trackVersionExists = hTableExists("hgFixed", "trackVersion"); if (trackVersionExists) { char query[256]; safef(query, sizeof(query), \