bc6a803ab72e4c35c16af563b3e88c03ee1adb5c
chmalee
  Mon Oct 26 12:10:29 2020 -0700
Support bigBed extra fields substitutions in hgc URL link outs

diff --git src/hg/hgc/hgc.h src/hg/hgc/hgc.h
index 912cc38..7090f02 100644
--- src/hg/hgc/hgc.h
+++ src/hg/hgc/hgc.h
@@ -493,30 +493,38 @@
 
 void doGtexGeneExpr(struct trackDb *tdb, char *item);
 /* Details of GTEX gene expression item */
 
 void doGtexEqtlDetails(struct trackDb *tdb, char *item);
 /* Details of GTEx eQTL item */
 
 void doBigDbSnp(struct trackDb *tdb, char *rsId);
 /* 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. */
+
 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.  */
 
 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.
 
 int extraFieldsPrint(struct trackDb *tdb,struct sqlResult *sr,char **fields,int fieldCount);
 // 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.