Skip to content

Commit f23d4c0

Browse files
authored
Merge pull request #165 from nulib/deploy/staging
Deploy to production
2 parents 612f228 + 019436b commit f23d4c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/api/response/iiif/presentation-api/items.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function buildImageService(representativeImageUrl) {
4242
];
4343
}
4444

45-
function isAudioVideo(workType) {
46-
return ["Audio", "Video"].includes(workType);
45+
function isAudioVideo(type) {
46+
return ["Audio", "Video", "Sound"].includes(type);
4747
}
4848

4949
function isImage(workType) {

test/unit/api/response/iiif/presentation-api/items.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ describe("IIIF response presentation API items helpers", () => {
9494
it("isAudioVideo(workType)", () => {
9595
expect(items.isAudioVideo("Audio")).to.be.true;
9696
expect(items.isAudioVideo("Image")).to.be.false;
97+
expect(items.isAudioVideo("Sound")).to.be.true;
9798
expect(items.isAudioVideo("Video")).to.be.true;
9899
});
99100

0 commit comments

Comments
 (0)