Project

General

Profile

Revision f1248e50

IDf1248e501de86a2549edbb0b1dd512e1dccf6c3b
Parent 4aa385eb
Child a9b9edad

Added by Andreas Kohlbecker about 2 years ago

ref #8365 stripping collection code from accession number in DerivedUnitFacadeCacheStrategy

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacadeCacheStrategy.java
101 101
        String result;
102 102
        if (isNotBlank(facade.getAccessionNumber())){
103 103
            result = facade.getAccessionNumber();
104
            String code = getCode(facade);
105
            result = result.trim();
106
            if(isNotBlank(code) && result.startsWith(code)){
107
                result = result.replaceAll("^" + code, "");
108
            }
104 109
        }else if (isNotBlank(facade.getBarcode())){
105 110
            result = facade.getBarcode();
106 111
        }else{

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)