Skip to content

Commit

Permalink
Merge pull request #117 from AtlasOfLivingAustralia/bug/issue-116
Browse files Browse the repository at this point in the history
issue #116 replacing usage of deprecated jsonp with json to prevent C…
  • Loading branch information
sughics authored Nov 2, 2022
2 parents 55d33bf + 030174f commit 458ac38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grails-app/assets/javascripts/taxonTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function initTaxonTree(treeOptions) {
ajax: {
url: function(node) {
var rank = $(node).attr("rank");
var u = urlConcat(treeOptions.biocacheServicesUrl, "/breakdown.json?q=") + query + "&rank=";
var u = urlConcat(treeOptions.biocacheServicesUrl, "/breakdown?q=") + query + "&rank=";
if (rank == 'kingdoms') {
u += 'kingdom'; // starting node
}
Expand All @@ -71,7 +71,7 @@ function initTaxonTree(treeOptions) {
}
return u;
},
dataType: 'jsonp',
dataType: 'json',
success: function(data) {
var nodes = [];
var rank = data.rank;
Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/au/org/ala/dashboard/Constants.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ class Constants {

final static String PARTIAL_URL_VOLUNTEER_STATS = "/ws/stats.json"

final static String PARTIAL_URL_SPECIES_BY_DECADE = "/explore/groups.json?q=*:*&pageSize=10&fq=occurrence_year:"
final static String PARTIAL_URL_SPECIES_BY_DECADE = "/explore/groups?q=*:*&pageSize=10&fq=occurrence_year:"

final static String PARTIAL_URL_INSTITUTION_COUNT = "/ws/institution/count"

final static String PARTIAL_URL_COLLECTION_COUNT = "/ws/collection/count"

final static String PARTIAL_URL_COUNT_DATASETS_BY_TYPE = "/ws/dataResource/count/resourceType?public=true"

final static String PARTIAL_URL_SPECIES_BY_CONSERVATION_STATUS= "/explore/groups.json?pageSize=10&q=state_conservation:"
final static String PARTIAL_URL_SPECIES_BY_CONSERVATION_STATUS= "/explore/groups?pageSize=10&q=state_conservation:"

final static String PARTIAL_URL_LOGGER_TOTALS = "/service/totalsByType"

Expand Down

0 comments on commit 458ac38

Please sign in to comment.