From 8af6931a6383e47631740c00c6e08483ab94fc1c Mon Sep 17 00:00:00 2001 From: Rita Chen Date: Thu, 23 Jan 2020 11:16:36 +1100 Subject: [PATCH] #202 - incorrect URL for "Provided by: Encyclopedia of Life" link. --- build.gradle | 2 +- grails-app/assets/javascripts/species.show.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 77e2248..d0f7a78 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { } } -version "1.4.21" +version "1.4.22-SNAPSHOT" group "au.org.ala.plugins.grails" apply plugin:"eclipse" diff --git a/grails-app/assets/javascripts/species.show.js b/grails-app/assets/javascripts/species.show.js index 3d7495f..f916817 100755 --- a/grails-app/assets/javascripts/species.show.js +++ b/grails-app/assets/javascripts/species.show.js @@ -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){ @@ -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'); }