Project

General

Profile

Revision 75bfa4b6

ID75bfa4b6e6d3256d7b325ed9b5415b902e47b998
Parent c2c03366
Child 1e037cd6

Added by Andreas Müller about 2 years ago

fix #7508 add language information to term representations

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/l10n/TermRepresentation_L10n.java
33 33

  
34 34
    String label = null;
35 35
    String abbreviatedLabel = null;
36
    String languageIso = null;
37
    String languageUuid = null;
36 38

  
37 39
    public TermRepresentation_L10n() {
38 40
    }
......
89 91
            }
90 92

  
91 93
            abbreviatedLabel = representation.getAbbreviatedLabel();
94

  
95
            Language lang = representation.getLanguage();
96
            if (lang != null){
97
                this.languageIso = lang.getIso639_2();
98
                if (this.languageIso == null){
99
                    this.languageIso = lang.getIso639_1();
100
                }
101
                this.languageUuid = lang.getUuid().toString();
102
            }
92 103
        }
93 104
    }
94 105

  
......
116 127
        this.abbreviatedLabel = abbreviatedLabel;
117 128
    }
118 129

  
130
    public String getLanguageIso() {
131
        return languageIso;
132
    }
119 133

  
134
    public void setLanguageIso(String languageIso) {
135
        this.languageIso = languageIso;
136
    }
120 137

  
138
    public String getLanguageUuid() {
139
        return languageUuid;
140
    }
141

  
142
    public void setLanguageUuid(String languageUuid) {
143
        this.languageUuid = languageUuid;
144
    }
121 145
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)