Skip to content

Commit

Permalink
#171 fix getISOClassByNode
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 28, 2020
1 parent e832129 commit 6159d77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: geometa
Type: Package
Title: Tools for Reading and Writing ISO/OGC Geographic Metadata
Version: 0.6-3
Date: 2020-06-03
Date: 2020-07-28
Authors@R: c(person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "emmanuel.blondel1@gmail.com", comment = c(ORCID = "0000-0002-5870-5762")))
Maintainer: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Description: Provides facilities to handle reading and writing of geographic metadata
Expand Down
3 changes: 1 addition & 2 deletions R/ISOAbstractObject.R
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ ISOAbstractObject <- R6Class("ISOAbstractObject",
xml_children <- xmlChildren(xml, encoding = private$encoding, addFinalizer = FALSE)
for(child in xml_children){
fieldName <- xmlName(child)

childElement <- child
nsPrefix <- ""
fNames <- unlist(strsplit(fieldName, ":"))
Expand Down Expand Up @@ -1437,7 +1436,7 @@ ISOAbstractObject$getISOClassByNode = function(node){
if(nodeElementName %in% clazz$private_fields$xmlElement){
geometa_inherits <- FALSE
superclazz <- clazz
while(!geometa_inherits){
while(!geometa_inherits && !is.null(superclazz)){
clazz_fields <- names(superclazz)
if(!is.null(clazz_fields)) if(length(clazz_fields)>0) if("parent_env" %in% clazz_fields){
if(environmentName(superclazz$parent_env)=="geometa"){
Expand Down
2 changes: 1 addition & 1 deletion R/geometa.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' Package: \tab geometa\cr
#' Type: \tab Package\cr
#' Version: \tab 0.6-3\cr
#' Date: \tab 2020-06-03\cr
#' Date: \tab 2020-07-28\cr
#' License: \tab MIT\cr
#' LazyLoad: \tab yes\cr
#' }
Expand Down
2 changes: 1 addition & 1 deletion man/geometa.Rd

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

0 comments on commit 6159d77

Please sign in to comment.