da4634bf1f2792c8742b4b8a28927ef82c65cea7 tdreszer Wed Mar 30 12:43:36 2011 -0700 Cleaned up fileSortOrderGet's discovery of sortable vars to use cv.ra searchable with a couple of exceptions diff --git src/hg/inc/cv.h src/hg/inc/cv.h index 183d036..65fbc63 100644 --- src/hg/inc/cv.h +++ src/hg/inc/cv.h @@ -31,30 +31,31 @@ #define CV_VALIDATE_EXISTS "exists" #define CV_VALIDATE_FLOAT "float" #define CV_VALIDATE_INT "integer" #define CV_VALIDATE_LIST "list:" #define CV_VALIDATE_REGEX "regex:" #define CV_VALIDATE_NONE "none" // CV TERMS (NOTE: UGLY Terms in cv.ra are hidden inside cv.c APIS) #define CV_TERM_GRANT "grant" #define CV_TERM_LAB "lab" #define CV_TERM_CELL "cell" #define CV_TERM_ANTIBODY "antibody" #define CV_TERM_CONTROL "control" #define CV_TERM_DATA_TYPE "dataType" #define CV_TERM_LOCALIZATION "localization" +#define CV_TERM_VIEW "view" char *cvTypeNormalized(char *sloppyTerm); // returns (on stack) the proper term to use when requesting a typeOfTerm char *cvTermNormalized(char *sloppyTerm); // returns (on stack) the proper term to use when requesting a cvTerm hash const struct hash *cvTermHash(char *term); // returns a hash of hashes of a term which should be defined in cv.ra // NOTE: in static memory: DO NOT FREE 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