Skip to content

Commit

Permalink
Merge pull request #203 from AtlasOfLivingAustralia/develop
Browse files Browse the repository at this point in the history
#202 - incorrect URL for "Provided by: Encyclopedia of Life" link.
  • Loading branch information
Rita-C authored Jan 27, 2020
2 parents 678029f + 8af6931 commit ebf9f6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
}
}

version "1.4.21"
version "1.4.22-SNAPSHOT"
group "au.org.ala.plugins.grails"

apply plugin:"eclipse"
Expand Down
4 changes: 3 additions & 1 deletion grails-app/assets/javascripts/species.show.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ function loadExternalSources(){
//clone a description template...
if(data.taxonConcept && data.taxonConcept.dataObjects){
//console.log('Loading EOL content - ' + data.taxonConcept.dataObjects.length);
var eolIdentifier = data.taxonConcept.identifier;
$.each(data.taxonConcept.dataObjects, function(idx, dataObject){
//console.log('Loading EOL content -> ' + dataObject.description);
if(dataObject.language == SHOW_CONF.eolLanguage || !dataObject.language){
Expand Down Expand Up @@ -391,7 +392,8 @@ function loadExternalSources(){
$description.find(".rights").css({'display':'none'});
}

$description.find(".providedBy").attr('href', 'http://eol.org/pages/' + data.identifier);
$description.find(".providedBy").attr('href', 'https://eol.org/pages/' + eolIdentifier);
$description.find(".providedBy").attr('target', '_blank');
$description.find(".providedBy").html("Encyclopedia of Life");
$description.appendTo('#descriptiveContent');
}
Expand Down

0 comments on commit ebf9f6c

Please sign in to comment.