2f3b0e50d26bcef0867bd112945e34e88069d863
angie
Mon Mar 25 16:14:25 2013 -0700
Minor fix in GAD details: if publication title etc. are missing, don't display them. refs #10449
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index fd7080e..38f0a1f 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -9131,31 +9131,31 @@
while (row != NULL)
{
upperDisease = replaceChars(row[0], "'", "''");
touppers(upperDisease);
printf(", ",
"http://geneticassociationdb.nih.gov/cgi-bin/tableview.cgi?table=allview&cond=upper(DISEASE)%20like%20'%25",
cgiEncode(upperDisease), "%25'%20AND%20upper(GENE)%20%20like%20'%25", itemName, "%25'");
printf("%s\n", row[0]);
row = sqlNextRow(sr);
}
sqlFreeResult(&sr);
refPrinted = 0;
safef(query, sizeof(query),
- "select broadPhen,reference,title,journal, pubMed, conclusion from gadAll where geneSymbol='%s' and association = 'Y' order by broadPhen",
+ "select broadPhen,reference,title,journal, pubMed, conclusion from gadAll where geneSymbol='%s' and association = 'Y' and title != '' order by broadPhen",
itemName);
sr = sqlMustGetResult(conn, query);
row = sqlNextRow(sr);
if (row != NULL) printf("
Related Studies: