937028df8583dc20713b1343522ddd038ad5375e max Wed Apr 19 05:13:52 2023 -0700 forgot to commit file in previous commit, no redmine diff --git src/hg/hgc/hgc.h src/hg/hgc/hgc.h index d0d0737..9f44c81 100644 --- src/hg/hgc/hgc.h +++ src/hg/hgc/hgc.h @@ -523,30 +523,35 @@ /* Show details for bigDbSnp item. */ void printAddWbr(char *text, int distance); /* a crazy hack for firefox/mozilla that is unable to break long words in tables * We need to add a <wbr> tag every x characters in the text to make text breakable. */ void printIframe(struct trackDb *tdb, char *itemName); /* print an iframe with the URL specified in trackDb (iframeUrl), can have * the standard codes in it (like $$ for itemName, etc) */ char *getIdInUrl(struct trackDb *tdb, char *itemName); /* If we have an idInUrlSql tag, look up itemName in that, else just * return itemName. */ +void printFieldLabel(char *entry); +/* print the field label, the first column in the table, as a <td>. Allow a + * longer description after a |-char, as some fields are not easy to + * understand. */ + struct slPair* getExtraFields(struct trackDb *tdb, char **fields, int fieldCount); /* return the extra field names and their values as a list of slPairs */ struct slPair *getFields(struct trackDb *tdb, char **fields); /* return field names and their values as a list of slPairs. */ void printEmbeddedTable(struct trackDb *tdb, struct embeddedTbl *embeddedTblList, struct dyString *tableLabelsDy); /* Pretty print a '|' and ';' encoded table or a JSON encoded table from a bigBed field. * The JSON encoded tables get passed through as json so hgc.js can build them instead, * which preserves the table order */ void getExtraTableFields(struct trackDb *tdb, struct slName **retFieldNames, struct embeddedTbl **retEmbeddedTblList, struct hash *fieldsToEmbeddedTbl); /* Parse the trackDb field "extraTableFields" into the field names and titles specified, * and fill out a hash keyed on the bigBed field name (which may be in an external file