Navigation

Embedding HathiTrust Books

HathiTrust books can be embedded 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,

http://hdl.handle.net/2027/wu.89004292751

the URL to use in the iframe would be

http://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 width="450" height="700" src="http://hdl.handle.net/2027/wu.89004292751?urlappend=%3Bui=embed"></iframe>

Display

 

Flip view

To embed the flip book, simply make the iframe wider than it is tall, e.g.,

HTML Code

<iframe width="700" height="450" src="http://hdl.handle.net/2027/wu.89004292751?urlappend=%3Bui=embed"></iframe>

Display