Skip to content

Commit

Permalink
support ISOCitation i18n edition
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jan 3, 2023
1 parent 28355ad commit fa2b8bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions R/ISOCitation.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,14 @@ ISOCitation<- R6Class("ISOCitation",

#'@description Set edition
#'@param edition edition
setEdition = function(edition){
self$edition = as.character(edition)
#'@param locales list of localized editions. Default is \code{NULL}
setEdition = function(edition, locales = NULL){
if(!is.null(locales)){
edition = self$createLocalisedProperty(edition, locales)
}else{
edition = as.character(edition)
}
self$edition = edition
},

#'@description Sets the edition date, either an ISODate object containing date and dateType or
Expand Down
4 changes: 3 additions & 1 deletion man/ISOCitation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa2b8bb

Please sign in to comment.