Commit c113fc10 authored by Sebastien Moretti's avatar Sebastien Moretti

Fix alt attribute for species images

parent a3a5d927
......@@ -59,9 +59,8 @@ public class HtmlSpeciesDisplay extends HtmlParentDisplay implements SpeciesDisp
this.writeln(speciesList.stream()
.map(species ->
"<a class='species_element' href='" + getSpeciesPageUrl(species.getId()) + "' " +
" alt ='" + htmlEntities(species.getShortName())+"'>" +
" <figure><img src='"+ this.getSpeciesImageSrc(species, true)+"' />" +
"<a class='species_element' href='" + getSpeciesPageUrl(species.getId()) + ">" +
" <figure><img src='"+ this.getSpeciesImageSrc(species, true)+"' alt='"+ htmlEntities(species.getShortName())+"'>" +
" <figcaption>" +
" <p><i>" + htmlEntities(species.getShortName()) + "</i></p>" +
" <p>" + (StringUtils.isNotBlank(species.getName()) ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment