a55caf35864fc8a67c3c2e84919e75e78143c99f tdreszer Tue Nov 2 14:52:26 2010 -0700 Added support for getting cv typeOfTerms hash and made the cv whitelist ise cv.ra diff --git src/hg/inc/mdb.h src/hg/inc/mdb.h index 0ba3b17..79e8657 100644 --- src/hg/inc/mdb.h +++ src/hg/inc/mdb.h @@ -306,20 +306,24 @@ #define MDB_VAL_STD_TRUNCATION 64 struct slName *mdbObjSearch(struct sqlConnection *conn, char *var, char *val, char *op, int limit, boolean tables, boolean files); // Search the metaDb table for objs by var and val. Can restrict by op "is" or "like" and accept (non-zero) limited string size // Search is via mysql, so it's case-insensitive. Return is sorted on obj. struct slName *mdbValSearch(struct sqlConnection *conn, char *var, int limit, boolean tables, boolean files); // Search the metaDb table for vals by var. Can impose (non-zero) limit on returned string size of val // Search is via mysql, so it's case-insensitive. Return is sorted on val. struct slPair *mdbValLabelSearch(struct sqlConnection *conn, char *var, int limit, boolean tables, boolean files); // Search the metaDb table for vals by var and returns controlled vocabulary (cv) label // (if it exists) and val as a pair. Can impose (non-zero) limit on returned string size of name. // Return is case insensitive sorted on name (label or else val). +struct hash *mdbCvTermTypeHash(); +// returns a hash of hashes of mdb and controlled vocabulary (cv) term types +// Those terms should contain label,descrition,searchable,cvDefined,hidden + struct slPair *mdbCvWhiteList(boolean searchTracks, boolean cvLinks); // returns the official mdb/controlled vocabulary terms that have been whitelisted for certain uses. #endif /* MDB_H */