Skip to content

Commit

Permalink
#337 add cSW metadata url
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 26, 2023
1 parent 9d12fc4 commit 0afb53f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inst/metadata/entity/entity_handler_csw.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ handle_entities_csw <- function(config, source, handle = TRUE){
entity$addRelation(parent_rel)
}

#add origin metadata URL (CSW GetRecordById)
csw_record_url = sprintf(
"%s?service=CSW&request=GetRecordById&Version=%s&elementSetName=full&outputSchema=http%3A//www.isotc211.org/2005/gmd&id=%s",
CSW_CONFIG$parameters$url, CSW_CONFIG$parameters$serviceVersion, rec$fileIdentifier
)
csw_record_rel = geoflow_relation$new()
csw_record_rel$setName("Source ISO 19115 metadata (CSW GetRecordById)")
csw_record_rel$setLink(csw_record_url)
entity$addRelation(csw_record_rel)

#creator
#metadata contacts
for(poc in rec$contact) if(length(poc)>1){
Expand Down

0 comments on commit 0afb53f

Please sign in to comment.