Project

General

Profile

« Previous | Next » 

Revision a5b15eef

Added by Katja Luther almost 8 years ago

further development of the checklist editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/filter/ChecklistEditorFilter.java
15 15
    public void setSearchText(String s) {
16 16
        // Search must be a substring of the existing value
17 17
        if(s.contains("*")){
18
            s=s.replace("*", "");
18
            s=s.replace("*", ".*");
19 19
        }
20
        this.searchString = "(?i).*" + s + ".*";
20
        this.searchString = ".*" + s + ".*";
21 21
    }
22 22

  
23 23
    @Override
......
34 34
            return true;
35 35
        }
36 36
        //Author
37
        if (nonVirlaName.getAuthorshipCache() != null && nonVirlaName.getAuthorshipCache().matches(searchString)) {
38
            return true;
39
        }
40
        //Reference
41
        if(reference != null && reference.getAbbrevTitleCache().matches(searchString)){
42
            return true;
43
        }
44
        //Rank
45
        if (rank != null && rank.matches(searchString)) {
46
            return true;
47
        }
37
//        if (nonVirlaName.getAuthorshipCache() != null && nonVirlaName.getAuthorshipCache().matches(searchString)) {
38
//            return true;
39
//        }
40
//        //Reference
41
//        if(reference != null && reference.getAbbrevTitleCache().matches(searchString)){
42
//            return true;
43
//        }
44
//        //Rank
45
//        if (rank != null && rank.matches(searchString)) {
46
//            return true;
47
//        }
48 48
        return false;
49 49
    }
50 50

  

Also available in: Unified diff