You can embed HathiTrust books in a Web page by attaching
?urlappend=%3Bui=embed
to the Handle URL and including the URL in an iframe
. For example, given a Handle URL,
https://hdl.handle.net/2027/wu.89004292751
the URL to use in the iframe
would be
https://hdl.handle.net/2027/wu.89004292751?urlappend=%3Bui=embed
The iframe
should ideally have a minimum width of 450 pixels.
Embedding will automatically open in scroll view ("1up" mode) as below when the frame is taller than it is wide. It will open in flip view ("2up" mode - see further below) when the iframe is wider than it is tall.
You can override either default by specifying either view=1up
or view=2up
in the URL, e.g., by attaching
?urlappend=%3Bui=embed%3Bview=1up
or
?urlappend=%3Bui=embed%3Bview=2up
to the volume URL.
Scroll view
HTML Code
<iframe src="https://hdl.handle.net/2027/wu.89004292751?urlappend=%3Bui=embed" height="700" width="450"></iframe>
Display
Flip view
To embed the flip book, simply make the iframe
wider than it is tall, e.g.,
HTML Code
<iframe src="https://hdl.handle.net/2027/wu.89004292751?urlappend=%3Bui=embed" height="450" width="700"></iframe>