97b43803a09f9085190a3af6bb2b7c63d07016bb tdreszer Mon Aug 22 17:12:52 2011 -0700 Added support for cv terms that are searchable='wildList'. This type of searching allows comma dilimied lists and '%' wild card. diff --git src/hg/inc/cv.h src/hg/inc/cv.h index 8415505..10c6f04 100644 --- src/hg/inc/cv.h +++ src/hg/inc/cv.h @@ -85,31 +85,32 @@ const struct hash *cvTermTypeHash(); // returns a hash of hashes of mdb and controlled vocabulary (cv) term types // Those terms should contain label,descrition,searchable,cvDefined,hidden // NOTE: in static memory: DO NOT FREE struct slPair *cvWhiteList(boolean searchTracks, boolean cvLinks); // returns the official mdb/controlled vocabulary terms that have been whitelisted for certain uses. enum cvSearchable // metadata Variavble are only certain declared types { cvNotSearchable =0, // Txt is default cvSearchByMultiSelect =1, // Search by drop down multi-select of supplied list (NOT YET IMPLEMENTED) cvSearchBySingleSelect =2, // Search by drop down single-select of supplied list - cvSearchByFreeText =3, // Search by free text field (NOT YET IMPLEMENTED) + cvSearchByFreeText =3, // Search by free text field + cvSearchByWildList =4, // Search by comma delimited list (accepts '%' wildcard) cvSearchByDateRange =4, // Search by discovered date range (NOT YET IMPLEMENTED) cvSearchByIntegerRange =5 // Search by discovered integer range (NOT YET IMPLEMENTED) }; enum cvSearchable cvSearchMethod(const char *term); // returns whether the term is searchable const char *cvValidationRule(const char *term); // returns validation rule, trimmed of comment enum cvDataType // CV term may be recognizable as int or float { cvIndeterminant =0, // Indeterminant, likely string cvString =1, // Just about all terms are strings