199af1bfc7e950026d4392777113e6bf6d8d61f9 max Mon Nov 9 03:27:48 2020 -0800 libifying refseq summary abbreviator and also running on the refGene hgc page. refs #26454 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 8a99268..ba387101 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -11577,31 +11577,33 @@ } } return NULL; } char *getRefSeqSummary(struct sqlConnection *conn, char *acc) /* RefSeq summary or NULL if not available; free result */ { char * summary = NULL; if (sqlTableExists(conn, refSeqSummaryTable)) { char query[256]; sqlSafef(query, sizeof(query), "select summary from %s where mrnaAcc = '%s'", refSeqSummaryTable, acc); summary = sqlQuickString(conn, query); + summary = abbreviateRefSeqSummary(summary); } + return summary; } char *geneExtraImage(char *geneFileBase) /* check if there is a geneExtra image for the specified gene, if so return * the relative URL in a static buffer, or NULL if it doesn't exist */ { static char *imgExt[] = {"png", "gif", "jpg", NULL}; static char path[256]; int i; for (i = 0; imgExt[i] != NULL; i++) { safef(path, sizeof(path), "../htdocs/geneExtra/%s.%s", geneFileBase, imgExt[i]); if (access(path, R_OK) == 0)