Skip to content

Commit

Permalink
Fix/hitide UI 38 - fix variables not loading (#39)
Browse files Browse the repository at this point in the history
* fix/hitide-ui-32

* fix/hitide-ui-38: removed shortName from variable grapqhl query

---------

Co-authored-by: jbyrne <[email protected]>
  • Loading branch information
jbyrne6 and jbyrne committed Dec 19, 2023
1 parent 252c449 commit 532153e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/jpl/dijit/ui/MetadataDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ define([
domAttr.set(this.metadataAlongAcrossRes, "innerHTML", resolutionString);
}
else
domAttr.set(this.metadataAlongAcrossRes, "innerHTML", "Not Available");
// domAttr.set(this.metadataAlongAcrossRes, "innerHTML", "Not Available");
domAttr.set(this.metadataAlongAcrossRes, "innerHTML", "Not Applicable");

/* Set date range */
var startDate = metadata["DatasetCoverage-StartTimeLong"];
Expand Down
2 changes: 1 addition & 1 deletion src/jpl/utils/SearchVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define([
// all the variable names for a collection in one request
var url = config.hitide.externalConfigurables.cmrVariableService;

var templateQuery = "{\n collection (conceptId:\"{COLLECTION_ID}\") {\n shortName\n variables {\n items {\n name\n }\n }\n }\n}"
var templateQuery = "{\n collection (conceptId:\"{COLLECTION_ID}\") {\n variables {\n items {\n name\n }\n }\n }\n}"

var query = templateQuery.replace("{COLLECTION_ID}", dataset['Dataset-PersistentId']);
if (customQuery) {
Expand Down

0 comments on commit 532153e

Please sign in to comment.