Skip to content

Commit

Permalink
DD-709: Give dataverse.other-id a prefix for PAN (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindareijnhoudt authored Nov 23, 2021
1 parent 1b27dba commit 1131c73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ case class DepositPropertiesFactory(configuration: Configuration, idType: IdType
addProperty("dataverse.sword-token", bagInfo.versionOf.getOrElse(bagInfo.uuid))
addProperty("dataverse.nbn", basePids.urn)
formatOfPanId.foreach(node =>
addProperty("dataverse.other-id", node.text)
addProperty("dataverse.other-id", node.text.replace("-",":"))
)
case FEDORA =>
addProperty("dataverse.nbn", basePids.urn)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class DepositPropertiesFactorySpec extends AnyFlatSpec with Matchers with AppCon
|bag-store.bag-id = $bagUUID
|dataverse.sword-token = $baseUUID
|dataverse.nbn = urn:nbn:nl:ui:13-z4-f8cm
|dataverse.other-id = PAN-00019180
|dataverse.other-id = PAN:00019180
|dataverse.bag-id = urn:uuid:$bagUUID
|dataverse.id-protocol = urn
|dataverse.id-identifier = z4-f8cm
Expand Down

0 comments on commit 1131c73

Please sign in to comment.