Skip to content

Commit 499c27e

Browse files
committed
Add grd format, anyof attributions email or url
1 parent 5244ed4 commit 499c27e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_static/RDL_MDE.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4812,9 +4812,12 @@ <h5 class="modal-title" id="githubConfigModalLabel">GitHub Configuration</h5>
48124812
attributionError = `Attribution ${attrNum} is missing required entity name`;
48134813
break;
48144814
}
4815-
if (!attribution.entity.email || attribution.entity.email.trim() === '') {
4815+
// Check that at least one of email or url is provided
4816+
const hasEmail = attribution.entity.email && attribution.entity.email.trim() !== '';
4817+
const hasUrl = attribution.entity.url && attribution.entity.url.trim() !== '';
4818+
if (!hasEmail && !hasUrl) {
48164819
attributionsValid = false;
4817-
attributionError = `Attribution ${attrNum} is missing required entity email`;
4820+
attributionError = `Attribution ${attrNum} entity must have either an email or URL`;
48184821
break;
48194822
}
48204823
}

_static/rdls_schema_v0.3.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,7 @@
15341534
"enum": [
15351535
"GeoTIFF (tif)",
15361536
"Cloud Optimized GeoTIFF (cog)",
1537+
"GRID (grd)",
15371538
"NetCDF (nc)",
15381539
"HDF5 (hdf5)",
15391540
"Zarr (zarr)",

0 commit comments

Comments
 (0)