-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from samvera-labs/no_items
Add safe navigation and fallback in case there aren't any canvases in manifest
- Loading branch information
Showing
3 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
export default { | ||
'@context': [ | ||
"http://www.w3.org/ns/anno.jsonld", | ||
"http://iiif.io/api/presentation/3/context.json" | ||
], | ||
type: "Manifest", | ||
id: "https://example.com/manifest/empty-playlist", | ||
label: { | ||
none: [ | ||
"Empty playlist [Playlist]" | ||
] | ||
}, | ||
behavior: [ | ||
"auto-advance" | ||
], | ||
metadata: [ | ||
{ | ||
label: { | ||
none: [ | ||
"Title" | ||
] | ||
}, | ||
value: { | ||
none: [ | ||
"Empty playlist [Playlist]" | ||
] | ||
} | ||
} | ||
], | ||
service: [ | ||
{ | ||
id: "https://example.com/avalon_marker", | ||
type: "AnnotationService0" | ||
} | ||
], | ||
homepage: [ | ||
{ | ||
id: "https://example.com/playlists/1", | ||
type: "Text", | ||
label: { | ||
none: [ | ||
"View in Repository" | ||
] | ||
}, | ||
format: "text/html" | ||
} | ||
], | ||
items: [], | ||
structures: [ | ||
{ | ||
type: "Range", | ||
id: "https://example.com/playlists/1/manifest/range/1", | ||
label: null, | ||
behavior: "top", | ||
items: [] | ||
} | ||
] | ||
}; |