Project

General

Profile

« Previous | Next » 

Revision d7c4522d

Added by Andreas Kohlbecker almost 7 years ago

ref #6169 better bibliographic references

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationDTO.java
14 14
import java.util.Set;
15 15
import java.util.UUID;
16 16

  
17
import org.apache.commons.lang3.StringUtils;
17 18
import org.apache.log4j.Logger;
18 19
import org.joda.time.DateTime;
19 20

  
......
89 90
        }
90 91

  
91 92
        // trigger initialization of the reference
92
        getCitationString();
93
        getNomenclaturalCitationString();
93 94

  
94 95
    }
95 96

  
......
247 248
    /**
248 249
     * @return the citationString
249 250
     */
250
    public String getCitationString() {
251
    public String getNomenclaturalCitationString() {
251 252
        if(citation == null){
252 253
            return null;
253 254
        }
......
259 260
        }
260 261
    }
261 262

  
263
    /**
264
     * @return the citationString
265
     */
266
    public String getBibliographicCitationString() {
267
        if(citation == null){
268
            return null;
269
        } else {
270
            if(StringUtils.isNotEmpty(citationDetail)){
271
                return citation.generateTitle().replaceAll("\\.$", "") + (StringUtils.isNotEmpty(citationDetail) ? ": " + citationDetail : "");
272
            } else {
273
                return citation.generateTitle();
274

  
275
            }
276

  
277
        }
278
    }
279

  
262 280
    /**
263 281
     * @return the blockedBy
264 282
     */

Also available in: Unified diff