a29f47ac15fc5b67afe74d68c763e14277731983
max
  Tue May 9 02:20:49 2023 -0700
allow longer labels in .as descriptions, separated with a | character, they appear in small font under the field label, came up in Clinvar discussion with Ana, Lou, Brian, Mar 7-14. Not used right now but the need has come up a few times. no redmine.

diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index ffbcbb4..9bf6820 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -1735,43 +1735,44 @@
     if (strchr(tmp->name, '|'))
         {
         title = strchr(fieldName, '|');
         *title++ = 0;
         }
     struct embeddedTbl *new;
     AllocVar(new);
     new->field = fieldName;
     new->title = title != NULL ? cloneString(title) : fieldName;
     slAddHead(retList, new);
     slNameAddHead(retFieldNames, fieldName);
     hashAdd(embeddedTblHash, fieldName, new);
     }
 }
 
-void printFieldLabel(char *entry)
+static 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. */
 {
 char *afterPipe = strchr(entry, '|');
 if (afterPipe)
     *afterPipe = 0;
 
 printf("<tr><td>%s", entry);
 
 if (afterPipe)
     {
+    // Could also have a "?" icon and show the description on mouse over
     afterPipe++; // skip past | character
     printf("<br><span class='bedExtraTblNote'>%s</small>", afterPipe);
     }
 
 puts("</td>");
 }
 
 #define TDB_STATICTABLE_SETTING "extraDetailsTable"
 #define TDB_STATICTABLE_SETTING_2 "detailsStaticTable"
 int extraFieldsPrintAs(struct trackDb *tdb,struct sqlResult *sr,char **fields,int fieldCount, struct asObject *as)
 // Any extra bed or bigBed fields (defined in as and occurring after N in bed N + types.
 // sr may be null for bigBeds.
 // Returns number of extra fields actually printed.
 {
 // We are trying to print extra fields so we need to figure out how many fields to skip