06d7be056190c14b85e71bc12523f18ea6815b5e markd Mon Dec 7 00:50:29 2020 -0800 BLAT mmap index support merge with master diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c index dc23769..bc7e738 100644 --- src/hg/hgGene/hgGene.c +++ src/hg/hgGene/hgGene.c @@ -188,63 +188,52 @@ boolean idInRefseq(char *id, struct sqlConnection *conn) /* Return TRUE if id is in refGene table */ { char query[256]; if (!sqlTableExists(conn, "refGene")) { return(FALSE); } sqlSafef(query, sizeof(query), "select count(*) from refGene where name = '%s'", id); return sqlQuickNum(conn, query) > 0; } -char *abbreviateSummary(char *summary) -/* Get rid of some repetitious stuff. */ -{ -char *pattern = -"Publication Note: This RefSeq record includes a subset " -"of the publications that are available for this gene. " -"Please see the Entrez Gene record to access additional publications."; -stripString(summary, pattern); -return summary; -} - char *descriptionString(char *id, struct sqlConnection *conn) /* return description as it would be printed in html, can free after use */ { char *descrBySql = NULL; char *summaryTables = genomeOptionalSetting("summaryTables"); struct dyString *description = dyStringNew(0); descrBySql = genoQuery(id, "descriptionSql", conn); dyStringPrintf(description, "Description: "); if (descrBySql != NULL) dyStringPrintf(description, "%s
\n", descrBySql); else dyStringPrintf(description, "%s
\n", "No description available"); freez(&descrBySql); if (summaryTables != NULL) { if (sqlTablesExist(conn, summaryTables)) { char *summary = genoQuery(id, "summarySql", conn); if (summary != NULL && summary[0] != 0) { - summary = abbreviateSummary(summary); + summary = abbreviateRefSeqSummary(summary); dyStringPrintf(description, "%s", genomeSetting("summarySource")); if (genomeOptionalSetting("summaryIdSql")) { char *summaryId = genoQuery(id, "summaryIdSql", conn); if (summaryId != NULL) dyStringPrintf(description, " (%s)", summaryId); } dyStringPrintf(description, ": %s", summary); freez(&summary); dyStringPrintf(description, "
\n"); } } } return dyStringCannibalize(&description);