Changeset 640


Ignore:
Timestamp:
Jul 2, 2010, 9:38:49 AM (10 years ago)
Author:
vinlud
Message:

Setting Searchable only to search in known string fields

Location:
trunk/grails-app/domain/dbnp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/data/Term.groovy

    r557 r640  
    1515 */
    1616class Term implements Serializable {
    17         static searchable = true
     17    static searchable = {
     18           [only: ['name']]
     19    }
    1820
    1921        String name             // BioPortal: label (preferred name)
  • trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy

    r540 r640  
    88 */
    99class Sample extends TemplateEntity {
    10         static searchable = true
     10    static searchable = {
     11           [only: ['name']]
     12    }
     13 
    1114        Subject parentSubject
    1215        SamplingEvent parentEvent
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r564 r640  
    1010 */
    1111class Study extends TemplateEntity implements Serializable {
    12         static searchable = true
     12        static searchable = {
     13           [only: ['title', 'Description']]
     14    }
     15
    1316        nimble.User owner
    1417        String title
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r622 r640  
    1313 */
    1414class Subject extends TemplateEntity implements Serializable {
    15         static searchable = false
     15    static searchable = {
     16           [only: ['name']]
     17    }
    1618        String name
    1719        Term species
Note: See TracChangeset for help on using the changeset viewer.