bplmaps / lane-mead-portal

Lane-Mead portal for collections and research on Boston's maritime industrial history
GNU General Public License v3.0
2 stars 0 forks source link

Support for Consuming Other Repositories #23

Closed ericrobskyhuntley closed 1 month ago

ericrobskyhuntley commented 6 months ago

can only consume digitalcommonwealth repository - need support for e.g., Internet Archive

garrettdashnelson commented 2 months ago

You'll see that I have rather clumsily included the ability to include images and titles card items from Internet Archive (ie. line 37 in clientLoadingItemCard), but the main item page does not do anything with IA yet. My suggestion would be for IA items, rather than executing an IIIF and metadata fetch, as we do with DC objects, to instead just use IA's own iframe embedding functionality.

For example, https://lane-mead-portal-dev.netlify.app/item/ia--lanemeadbostonma1957lane/ would show the IA book viewer embed, which is:

<iframe src="https://archive.org/embed/lanemeadbostonma1957lane" width="560" height="384" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen></iframe>
ericrobskyhuntley commented 1 month ago

Consolidated item-dc.astro and item-ia.astro into one, implemented embedding and Internet Archive Metadata call. de9b4ee