Skip to content

Commit

Permalink
Add image identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque committed Dec 2, 2023
1 parent adb7010 commit f5622a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ function Collection() {
<Viewer iiifContent={selectedImage.url} options={options} />
<Button
className="px-4 py-2 rounded-full mr-2"
onClick={() => liftSubjectFromBackground(selectedImage.url)}
onClick={() =>
liftSubjectFromBackground(selectedImage.identifier)
}
rounded
inline
outline
Expand Down
1 change: 1 addition & 0 deletions src/components/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function Selection() {
location: element?.locationLabel?.value,
creator: element.creatorLabel?.value,
url: element.iiifManifest?.value,
identifier: identifier,
image: `${identifier}/full/full/0/default.jpg`,
thumbnail: `${identifier}/full/100,100/0/default.jpg`,
};
Expand Down
1 change: 1 addition & 0 deletions src/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface Image {
creator: string;
country: string;
id: string;
identifier: string;
image: string;
location: string;
name: string;
Expand Down

0 comments on commit f5622a6

Please sign in to comment.