6b045fb4555e28c738cab4be57b8a3750584fe9b angie Fri Sep 29 17:14:01 2017 -0700 Don't inject highlight straight into cart when hgFind finds a match for a search with padding -- only set highlight when there's a single match or when the user clicks on a link to select a specific match. fixes #20245 diff --git src/hg/inc/hgFind.h src/hg/inc/hgFind.h index 5f46a88..dfea4dd 100644 --- src/hg/inc/hgFind.h +++ src/hg/inc/hgFind.h @@ -60,28 +60,29 @@ void (*htmlEnd)(struct hgPosTable *table, FILE *f); /* Print end. */ }; struct hgPos /* A list of positions. */ { struct hgPos *next; /* Next in list. */ char *chrom; /* Chromosome. Not allocated here. */ int chromStart; /* Start position in chromosome. */ int chromEnd; /* End position in chromosome. */ char *name; /* Name of position - one word. */ char *description; /* Position description - a sentence or so. */ char *browserName; /* name as in hgTracks tg->itemName(). */ bool canonical; /* The gene is the canonical version. */ struct tsrPos *tp; /* The trix search associated with the gene. */ + char *highlight; /* If non-empty, new value for highlight cart variable */ }; void hgPositionsHelpHtml(char *organism, char *database); /* Display contents of dbDb.htmlPath for database, or print an HTML comment * explaining what's missing. */ char *hCarefulTrackOpenVis(char *db, char *trackName); /* If track is already in full mode, return full; otherwise, return * hTrackOpenVis. */ #endif /* HGFIND_H */