AnsweredAssumed Answered

Has anyone been able to add a Summon search box in Canvas?

Question asked by Nick Brown on Oct 26, 2018
Latest reply on Oct 29, 2018 by Nick Brown

Hi, 

I'm trying to add a search box to some Canvas pages which would allow users to search our library e-resources via Summon, our Resource Discovery Tool. Unfortunately the two ways I can find to do this either user Javascript or non-whitelisted HTML tags. 

 

For example (javascript)

 <script type="text/javascript" ></script><script type="text/javascript">summonWidget.search({"id":"s3c0e2fd36d722dba28bbabe05f48b36","logo":"//assets-cdn.summon.serialssolutions.com/59af2f94b3fb5d1b3a000033","endpoint":"//christies.summon.serialssolutions.com","lang":"en-US","style":{"title_color":"#4d4d4d","link_color":"#214e95","header_color":"#fff","results_color":"#fff","width":"fluid"},"params":{"pn":1,"ho":true,"myinst":"","jt":"","l":"en"},"title":"Summon Widget","searchbutton_text":"Search"})</script>

 

or (HTML)

<form method="GET" action="http://christies.summon.serialssolutions.com/search">
<input type="text" name="q">
<input type="submit" value="Search">
</form>

 

We had previously managed to get this working using an iFrame but that has recently stopped working as an X-FRAME option on the target page (Summon) being set to ‘deny’

<p style="text-align: center;"><iframe style="width: 90%; height: 650px;"  width="300" height="150"></iframe></p>

 

Any ideas or suggestions much appreciated.

 

Thanks,

Nick

Outcomes