You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We got a question if a video from Library of Congress digital collections could be embedded in a CB site-->
Yes, the LOC collections offer a few options:
If the video is public domain, you could always download a copy and put it directly into your collection like any other file. Be sure to cite the original location in the "source" field.
Modify the "video" display_template to handle using the LOC video embed option. See below.
Tweak the video display_template
First, in your metadata, put the LOC item URL in the "object_location" field. It should look like https://www.loc.gov/item/00563605
Next, edit the file "_layouts/item/video.html". Look for the Liquid logic in the middle that looks like:
{% if page.object_location contains 'vimeo' or page.object_location contains 'youtu' %}
{% include item/video-embed.html %}
{% else %}
{% include item/video-player.html %}
{% endif %}
You will add a new conditional to the logic that handles LOC items based on the URL in "object_location", so it will look like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We got a question if a video from Library of Congress digital collections could be embedded in a CB site-->
Yes, the LOC collections offer a few options:
Tweak the video display_template
First, in your metadata, put the LOC item URL in the "object_location" field. It should look like
https://www.loc.gov/item/00563605Next, edit the file "_layouts/item/video.html". Look for the Liquid logic in the middle that looks like:
You will add a new conditional to the logic that handles LOC items based on the URL in "object_location", so it will look like:
Beta Was this translation helpful? Give feedback.
All reactions