Skip to content

Commit

Permalink
IIIF #63 - Updating Resource page to use manifest URL instead of mani…
Browse files Browse the repository at this point in the history
…fest content
  • Loading branch information
dleadbetter committed Jan 14, 2025
1 parent 71c79af commit df0f24b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions client/src/pages/Resource.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @flow

import { LazyIIIF } from '@performant-software/semantic-components';
import { IIIF as IIIFUtils } from '@performant-software/shared-components';
import { UserDefinedFieldsForm, UserDefinedFields } from '@performant-software/user-defined-fields';
import React, {
useEffect,
Expand Down Expand Up @@ -44,13 +43,6 @@ const ResourceForm = withTranslation()((props) => {
return value;
}, [props.item.exif]);

/**
* Creates the manifest ID based on the blob content.
*
* @type {string}
*/
const manifest = useMemo(() => IIIFUtils.createManifestURL(props.item.manifest), [props.item.manifest]);

/**
* Loads the related project record.
*/
Expand Down Expand Up @@ -83,7 +75,7 @@ const ResourceForm = withTranslation()((props) => {
<LazyIIIF
contentType={props.item.content_type}
downloadUrl={props.item.content_download_url}
manifest={manifest}
manifest={props.item.manifest_url}
onUpload={(file) => props.onSetState({
name: file.name,
content: file
Expand Down

0 comments on commit df0f24b

Please sign in to comment.