Skip to content

Commit

Permalink
#203 support textGroup/LocalisedCharacterString uri handling in creat…
Browse files Browse the repository at this point in the history
…eLocalisedProperty
  • Loading branch information
eblondel committed Dec 20, 2022
1 parent 603b96f commit 0ff0674
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/ISOAbstractObject.R
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,9 @@ ISOAbstractObject <- R6Class("ISOAbstractObject",
stop("Each locale value should be of class 'character'")
}
localised <- ISOLocalisedCharacterString$new(locale = locale, value = localeValue)
if(!is.null(attr(localeValue, "uri"))){
localised$parentAttrs <- list("xlink:href" = attr(localeValue, "uri"))
}
ft$addTextGroup(localised)
}
seq <- ISOElementSequence$new(xml=NULL, text, ft)
Expand Down

0 comments on commit 0ff0674

Please sign in to comment.