a1707797e434bd59ef53ef18510c62eb8cb100cb larrym Fri Mar 23 13:32:01 2012 -0700 commit tim's code to stop using trackHash in compositeMetadataToggle; this fixes #7376 diff --git src/hg/inc/hui.h src/hg/inc/hui.h index b3d8165..2b364cf 100644 --- src/hg/inc/hui.h +++ src/hg/inc/hui.h @@ -888,56 +888,56 @@ acemblyAll =0, acemblyMain=1, acemblyPutative=2, }; enum acemblyOptEnum acemblyStringToEnum(char *string); /* Convert from string to enum representation. */ char *acemblyEnumToString(enum acemblyOptEnum x); /* Convert from enum to string representation. */ void acemblyDropDown(char *var, char *curVal); /* Make drop down of options. */ void hCompositeUi(char *db, struct cart *cart, struct trackDb *tdb, - char *primarySubtrack, char *fakeSubmit, char *formName, struct hash *trackHash); + char *primarySubtrack, char *fakeSubmit, char *formName); /* UI for composite tracks: subtrack selection. If primarySubtrack is * non-NULL, don't allow it to be cleared and only offer subtracks * that have the same type. If fakeSubmit is non-NULL, add a hidden * var with that name so it looks like it was pressed. */ char *compositeGroupLabel(struct trackDb *childTdb, char *group, char *id); /* Given ID from group, return corresponding label, looking through parent's subGroupN's */ char *compositeGroupId(struct trackDb *tdb, char *group, char *id); /* Given label, return id, looking through parent's subGroupN's */ char *compositeLabelWithVocabLink(char *db,struct trackDb *parentTdb, struct trackDb *childTdb, char *vocabType, char *label); /* If the parentTdb has a controlledVocabulary setting and the vocabType is found, then label will be wrapped with the link to display it. Return string is cloned. */ char *controlledVocabLink(char *file,char *term,char *value,char *title, char *label,char *suffix); // returns allocated string of HTML link to controlled vocabulary term char *metadataAsHtmlTable(char *db,struct trackDb *tdb,boolean - showLongLabel,boolean showShortLabel, struct hash *trackHash); + showLongLabel,boolean showShortLabel); /* If metadata from metaDb exists, return string of html with table definition */ boolean compositeMetadataToggle(char *db,struct trackDb *tdb,char *title, - boolean embeddedInText,boolean showLongLabel, struct hash *trackHash); + boolean embeddedInText,boolean showLongLabel); /* If metadata from metaTbl exists, create a link that will allow toggling it's display */ boolean superTrackDropDownWithExtra(struct cart *cart, struct trackDb *tdb, int visibleChild,char *extra); /* Displays hide/show dropdown for supertrack. * Set visibleChild to indicate whether 'show' should be grayed * out to indicate that no supertrack members are visible: * 0 to gray out (no visible children) * 1 don't gray out (there are visible children) * -1 don't know (this function should determine) * If -1,i the subtracks field must be populated with the child trackDbs. * Returns false if not a supertrack */ #define superTrackDropDown(cart,tdb,visibleChild) superTrackDropDownWithExtra(cart,tdb,visibleChild,NULL) boolean dimensionsExist(struct trackDb *parentTdb); @@ -1179,40 +1179,40 @@ filterBy_t *filterBySet, boolean onOneLine); /* Does the UI for a list of filterBy structure */ char *filterByClause(filterBy_t *filterBy); /* returns the SQL where clause for a single filterBy struct */ struct dyString *dyAddFilterByClause(struct cart *cart, struct trackDb *tdb, struct dyString *extraWhere,char *column, boolean *and); /* creates the where clause condition to support a filterBy setting. Format: filterBy column:Title=value,value [column:Title=value|label,value|label,value|label]) filterBy filters are multiselect's so could have multiple values selected. thus returns the "column1 in (...) and column2 in (...)" clause. if 'column' is provided, and there are multiple filterBy columns, only the named column's clause is returned. The 'and' param and dyString in/out allows stringing multiple where clauses together */ -boolean makeDownloadsLink(char *database, struct trackDb *tdb, struct hash *trackHash); +boolean makeDownloadsLink(char *database, struct trackDb *tdb); // Make a downloads link (if appropriate and then returns TRUE) boolean makeSchemaLink(char *db,struct trackDb *tdb,char *label); // Make a table schema link (if appropriate and then returns TRUE) void makeTopLink(struct trackDb *tdb); /* Link to top of UI page */ -void extraUiLinks(char *db,struct trackDb *tdb, struct hash *trackHash); +void extraUiLinks(char *db,struct trackDb *tdb); /* Show downloads, schema and metadata links where appropriate */ boolean chainDbNormScoreAvailable(struct trackDb *tdb); /* check if normScore column is specified in trackDb as available */ void hPrintAbbreviationTable(struct sqlConnection *conn, char *sourceTable, char *label); /* Print out table of abbreviations. */ // Four State checkboxes can be checked/unchecked by enable/disabled // NOTE: fourState is not a bitmap because it is manipulated in javascript and int seemed easier at the time #define FOUR_STATE_UNCHECKED 0 #define FOUR_STATE_CHECKED 1 #define FOUR_STATE_CHECKED_DISABLED -1 #define fourStateChecked(fourState) ((fourState) == FOUR_STATE_CHECKED || (fourState) == FOUR_STATE_CHECKED_DISABLED) #define fourStateEnabled(fourState) ((fourState) >= FOUR_STATE_UNCHECKED)