Skip to content

Commit acba85c

Browse files
committed
#404 take 'mimeType' into account for digests
1 parent 08da027 commit acba85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/actions/geometa_create_iso_19115.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function(action, entity, config){
867867
or$setProtocol(protocol)
868868

869869
if(include_object_identification_ids) if(any(sapply(c("wms", "wfs", "wcs","download"), function(x){startsWith(http_relation$key, x)}))) {
870-
resource_id = paste(tolower(entity$identifiers[["id"]]), http_relation$key, tolower(http_relation$name),sep="_")
870+
resource_id = paste(tolower(entity$identifiers[["id"]]), http_relation$key, if(!is.null(mimeType)) mimeType else "", tolower(http_relation$name),sep="_")
871871
or$setAttr("id", create_object_identification_id("onlineresource", resource_id))
872872
}
873873

0 commit comments

Comments
 (0)