Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DANS-KNAW/easy-convert-bag-to-dep…
Browse files Browse the repository at this point in the history
…osit
  • Loading branch information
lindareijnhoudt committed Nov 23, 2021
2 parents cc2d18d + 1131c73 commit 59a892d
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 59a892d

Please sign in to comment.