Project

General

Profile

« Previous | Next » 

Revision ddbbb621

Added by Andreas Kohlbecker over 3 years ago

ref #9308 slight improvement for type status in bold letters

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationItem.java
301 301
            if(regDto.getOrderdTypeDesignationWorkingSets() != null) {
302 302
                for( TypeDesignationWorkingSet workingSet : regDto.getOrderdTypeDesignationWorkingSets().values()) {
303 303
                    for(TypeDesignationStatusBase<?> typeStatus : workingSet.keySet()) {
304
                        summary = summary.replace(typeStatus.getLabel(), "<strong>" + typeStatus.getLabel() + "</strong>");
304
                        if(summary.contains(typeStatus.getLabel() + "s")){
305
                            // replace plural form
306
                            summary = summary.replace(typeStatus.getLabel() + "s", "<strong>" + typeStatus.getLabel() + "s</strong>");
307
                        } else {
308
                            // replace singular form
309
                            summary = summary.replace(typeStatus.getLabel(), "<strong>" + typeStatus.getLabel() + "</strong>");
310
                        }
305 311
                    }
306 312
                }
307 313
            }

Also available in: Unified diff