tomkr / embedr

Embedr frontend
Other
2 stars 2 forks source link

Add additional option to embed option #70

Closed mzeinstra closed 9 years ago

mzeinstra commented 9 years ago

We need a additional option at the normal embed pop-up:

screen shot 2015-09-23 at 13 59 15

Please add a checkbox that is by default off that says 'static image'

When checked the embed code should change to a direct image embed instead of an iframe, as we do with the crop embed: screen shot 2015-09-23 at 14 00 09 The additional option of selecting the size (with the same max size restrictions) should also appear.

The link in the img. tag should be a variation to: http://iiif.embedr.eu/moma_49328/full/1411,1928/0/native.jpg where '1411,1928' is replaced by the width/height of the image as set in the option described above. metadata should appear as well as if it a crop, however it should not state 'Detail of'

example of a proper embed in this option:

<div id='embedr_img'>
  <img src='http://iiif.embedr.eu/moma_49328/0,1,1411,1928/1411,1928/0/native.jpg'/>
  <p>
    Detail of 'Heron (1863)' | 
    Francis Edmund Currey (1814-1896) | 
    <a href='http://www.moma.org/collection/works/49328' target='_blank'>Museum of Modern Art, New York City</a>  | 
    <img src='http://media.embedr.eu/static/img/pd.png' /> <a href='https://creativecommons.org/publicdomain/mark/1.0/'>No rights reserved.</a>
  </p>
</div>

(indents added for readability purposes)