Skip to content

Commit

Permalink
fix labelling archive-digital (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir authored Nov 12, 2024
1 parent c2e4e1a commit 8f72b5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import weco.pipeline.transformer.calm.models.CalmRecordOps
object CalmFormat extends CalmRecordOps {
def apply(record: CalmRecord): Format = {
record.get("Material") match {
case Some("Born-digital archives") => Format.ArchivesDigital
case _ => Format.ArchivesAndManuscripts
case Some("Archives - Digital") => Format.ArchivesDigital
case _ => Format.ArchivesAndManuscripts
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CalmFormatTest
"Correctly extracts the ArchivesDigital Format when the appropriate Material string is present"
) {
val digitalRecord = createCalmRecordWith(
("Material", "Born-digital archives")
("Material", "Archives - Digital")
)

val digitalFormat = CalmFormat(digitalRecord)
Expand Down

0 comments on commit 8f72b5b

Please sign in to comment.