diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fcb1a20..7f3b0890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed ### Fixed - Fixed adding matching granules feature +- Fixed missing extraction variables selection ## [4.17.2] diff --git a/src/jpl/dijit/DownloadsListing.js b/src/jpl/dijit/DownloadsListing.js index ec116cce..e504e174 100644 --- a/src/jpl/dijit/DownloadsListing.js +++ b/src/jpl/dijit/DownloadsListing.js @@ -69,6 +69,16 @@ define([ var variables = []; var all_variables = [] + for (var j = 0; j < message.variables.variables.length; ++j) { + var variable = message.variables.variables[j]; + // verify variable isn't a special case + if (message.variables.latVar != variable && + message.variables.lonVar != variable && + message.variables.timeVar != variable) { + all_variables.push(message.variables.variables[j]); + } + } + all_variables.sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); }); @@ -86,7 +96,8 @@ define([ startDate: startDate, endDate: endDate, variables: variables, - defaultVars: [message.latVar, message.lonVar, message.timeVar], + // defaultVars: [message.latVar, message.lonVar, message.timeVar], + defaultVars: [message.variables.latVar, message.variables.lonVar, message.variables.timeVar], granuleNames: granuleNames, granuleIds: granuleIds, granuleNamesFilter: granuleNamesFilter,