Skip to content

Commit

Permalink
Integrate support for the IIIF Content Search API. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
wykhuh authored May 10, 2024
1 parent 1acdb9e commit 69c6cf2
Show file tree
Hide file tree
Showing 41 changed files with 28,142 additions and 519 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ html/
.DS_Store

# VSCode
.vscode/
.vscode/
tmp
4 changes: 4 additions & 0 deletions docs/components/DynamicImports/Viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import dynamic from "next/dynamic";
import { isDark } from "docs/lib/theme";
import { useRouter } from "next/router";
import { ContentSearchQuery } from "src/types/annotations";

// todo: set this as a constant somewhere?
const defaultIiifContent =
Expand All @@ -18,10 +19,12 @@ const CloverViewer = ({
iiifContent = defaultIiifContent,
options,
customDisplays,
iiifContentSearchQuery,
}: {
iiifContent: string;
options?: ViewerConfigOptions;
customDisplays?: Array<CustomDisplay>;
iiifContentSearchQuery?: ContentSearchQuery;
}) => {
const router = useRouter();
const iiifResource = router.query["iiif-content"]
Expand All @@ -33,6 +36,7 @@ const CloverViewer = ({
return (
<Viewer
iiifContent={iiifResource}
iiifContentSearchQuery={iiifContentSearchQuery}
options={{ ...options, background }}
key={iiifResource}
{...(customDisplays && { customDisplays })}
Expand Down
Loading

0 comments on commit 69c6cf2

Please sign in to comment.