6542ba707229988a8b763bc5952f476f0097d7b5
max
Fri Mar 16 13:33:30 2012 -0700
sciencedirect auto activate app
diff --git src/hg/hgc/t2g.c src/hg/hgc/t2g.c
index 6b8b4fc..804d089 100644
--- src/hg/hgc/t2g.c
+++ src/hg/hgc/t2g.c
@@ -152,31 +152,34 @@
char* sectionList = makeSqlMarkerList();
printLimitWarning(conn, markerTable, item, itemLimit, sectionList);
printf("
Snippets from Publications:
");
struct sqlResult* sr = queryMarkerRows(conn, markerTable, articleTable, item, itemLimit, sectionList);
char **row;
while ((row = sqlNextRow(sr)) != NULL)
{
char* articleId = row[0];
char* url = row[1];
char* title = row[2];
char* authors = row[3];
char* citation = row[4];
char* snippets = row[5];
- printf("%s ", url, title);
+ char* addParam = "";
+ if (strstrNoCase(url, "sciencedirect.com"))
+ addParam = "?svAppaddApp=298535"; // add the "UCSC matches" sciverse application to article view
+ printf("%s ", url, addParam, title);
printf("%s; ", authors);
printf("%s
", citation);
if (t2gDebug)
printf("articleId=%s", articleId);
printf("%s", snippets);
printf("
");
}
freeMem(sectionList);
sqlFreeResult(&sr);
}
static char* printArticleInfo(struct sqlConnection *conn, char* item)
/* Header with information about paper, return documentId */
{