How do I embed the Knowledge and Library Hub search box in my local library website using iframes?
This technique will place a frame in your webpage displaying the Knowledge and Library Hub (KLH) website. Users will search the KLH while remaining on your website.
(An alternative approach is to insert a piece of code developed by EBSCO which puts a mini search box on your page. This technique is described in the article Embedding the Knowledge and Library Hub search box in your local library website.)
This is the iframe URL version of the KLH search box:
<iframe src="https://gssapps.ebscohost.com/hee/searchboxes/nhs.php?custid=XXXXX&authtype=guest" width="780" height="350"></iframe>
Before embedding this into your library website, you will need to update the iframe URL to point to your trust’s specific KLH instance by replacing the XXXXX after custid= (see highlighted above) with your trust’s EBSCO Customer ID. You can find your Customer ID in the article What's my local instance?.
This is an example of an iframe URL with an EBSCO Customer ID added for reference:
<iframe src="https://gssapps.ebscohost.com/hee/searchboxes/nhs.php?custid=ns221502&authtype=guest" width="780" height="350"></iframe>
To change the search box authentication method:
The iframe URL above is set up to authenticate users via guest access (more information on this can be found here: https://connect.ebsco.com/s/article/What-is-guest-access-and-how-do-I-configure-it-for-users )
If you would prefer your users to be prompted to login with OpenAthens before accessing the Knowledge and Library Hub, you can update the authentication method to “authtype=shib” instead of “authtype=guest” :
<iframe src="https://gssapps.ebscohost.com/hee/searchboxes/nhs.php?custid=XXXXX&authtype=shib" width="780" height="350"></iframe>