dc2c90bfb233f529dd7b81ba92777f72a4035290 max Mon Nov 2 08:28:20 2020 -0800 fixing hgGene refseq summary output, refs #26454 diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c index dc23769..2a97f7c 100644 --- src/hg/hgGene/hgGene.c +++ src/hg/hgGene/hgGene.c @@ -194,32 +194,39 @@ { 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."; +"Please see the Gene record to access additional publications."; stripString(summary, pattern); + +// remove anything after ##Evidence-Data-START## +char *findStr = "##Evidence-Data-START##"; +char *start = memMatch(findStr, strlen(findStr), summary, strlen(summary)); +if (start) + *start = 0; + 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, "<B>Description:</B> "); if (descrBySql != NULL) dyStringPrintf(description, "%s<BR>\n", descrBySql); else