OregonDigital / OD2

Next generation of Oregon Digital ( https://oregondigital.org ) digital collections platform, built on Samvera Hyrax ( https://github.com/samvera/hyrax/ )
18 stars 1 forks source link

Universal Viewer - share/embed not working as expected for WordPress #1119

Open raybrarian opened 4 years ago

raybrarian commented 4 years ago

Descriptive summary

Embed code not working as expected on WP - only get UV functionality when largets dimensions available (800x600) image is embedded. image

Example: <div class="uv" data-locale="en-GB:English (GB),cy-GB:Cymraeg" data-config="" data-uri="https://staging.oregondigital.org/concern/images/df719p38s/manifest" data-collectionindex="0" data-manifestindex="0" data-sequenceindex="0" data-canvasindex="0" data-xywh="-5991,-651,19288,6636" data-rotation="0" style="width:800px; height:600px; background-color: #000"></div><script type="text/javascript" id="embedUV" src="https://staging.oregondigital.org/universalviewer/dist/uv-2.0.1/lib/embed.js"></script><script type="text/javascript">/* wordpress fix */</script>

Expected behavior

Embed code works with typical web platforms.

Accessibility Concerns

None beyond embed expectations

CGillen commented 4 years ago

Reviewed By: @petersec ready to be worked on.