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


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">{"id":"s3c0e2fd36d722dba28bbabe05f48b36","logo":"//","endpoint":"//","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="">
<input type="text" name="q">
<input type="submit" value="Search">


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.