Skip to content

Commit 8d5d59f

Browse files
committed
1 parent 697b0d0 commit 8d5d59f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

R/geoflow_validator.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ geoflow_validator_entity_Rights <- R6Class("geoflow_validator_entity_Rights",
761761
#'@param j col index (internal index to be used for graphical \pkg{geoflow} validation handlers)
762762
#'@param str string to validate
763763
initialize = function(i, j, str){
764-
valid_keys <- list("license","use","useLimitation", "useConstraint", "accessConstraint", "otherConstraint", "accessRight", "accessConditions")
764+
valid_keys <- list("license","use","useLimitation", "termsOfUse", "disclaimer", "citation", "useConstraint", "accessConstraint", "otherConstraint", "accessRight", "accessConditions")
765765
super$initialize(TRUE,TRUE, TRUE, valid_keys, NULL,TRUE, FALSE, TRUE, i, j, str)
766766
}
767767
)

doc/metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Examples cover both:
178178
| **Definition** | Description of the access and/or use constraints. Restriction code are map ISO 19115, the 2 constraints are related to code list . Control to term , use limitation can be use for any term of use (license, prefered citation, disclaimer). other constraint free text can be used |
179179
| **Need** |Optional |
180180
| **Default key (if omitted)** |*Not applicable*|
181-
| **other keys available** |``license`` <br /> ``use`` <br /> ``useLimitation`` <br /> ``useConstraint`` <br /> ``accessConstraint`` <br /> ``otherConstraint``|
181+
| **other keys available** |``license`` <br /> ``use`` <br /> ``useLimitation`` <br /> ``termsOfuSe`` <br /> ``disclaimer`` <br /> ``citation`` <br /> ``useConstraint`` <br /> ``accessConstraint`` <br /> ``otherConstraint``|
182182
| **Examples** | |
183183
| Simple usage |key:rule |
184184
| Advanced usage |`useLimitation:Free usage_` <br/> `accessConstraint:otherRestrictions_` <br/> `useConstraint:intellectualPropertyRights_` <br/> `otherConstraint:The supplier is unable to guarantee the accuracy, updating, integrity, completeness of the data` |

inst/actions/geometa_create_iso_19115.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function(action, entity, config){
422422
}
423423
}
424424
#use limitation
425-
uses <- entity$rights[sapply(entity$rights, function(x){tolower(x$key) %in% c("use","uselimitation")})]
425+
uses <- entity$rights[sapply(entity$rights, function(x){tolower(x$key) %in% c("use","uselimitation","termsofuse", "disclaimer", "citation")})]
426426
if(length(uses)>0){
427427
for(use in uses){
428428
for(value in use$values){

0 commit comments

Comments
 (0)