Skip to content

Commit

Permalink
Fix harvest validation for accessLevel values (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
janette authored and dafeder committed Dec 1, 2017
1 parent ee7db2b commit 49d9de7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
7.x-1.14.1
----------
- #2263 Fix harvest validation for accessLevel values
- #2249 Change timezone handling to 'none' on temporal coverage field
- #2103 Fixed field mapping defaults for open data schema APIs
- #2237 Migration of CircleCI from V1 to V2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ class DatajsonHarvestMigration extends HarvestMigration {
}
}

if ($row->accessLevel == 'restricted public') {
$row->accessLevel = 'restricted';
}
if ($row->accessLevel == 'non-public') {
$row->accessLevel = 'private';
}

// Process Temporal Coverage. The mapping are defined in the base main
// class, we just need to set the properties.
if (isset($row->temporal)) {
Expand Down

0 comments on commit 49d9de7

Please sign in to comment.