WYLDcat - create an Aspen search box for an external web page

Modified on Thu, 26 Jan 2023 at 08:20 AM

To create a WYLDcat (on Aspen) search box that can be placed on any website, embed either of the following code blocks to the html.  Change the {ASPENBASEURL} portion of the code to the url for your catalog website.  E.g. https://sheridan.wyldcatalog.org/Union/Search


Basic form

Basic: 
<form action="https://{ASPENBASEURL}/Union/Search" method="get" target="_blank"> <input name="searchSource" value="local" type="hidden"> <input name="basicType" value="Keyword" type="hidden"> <div> <input title="Enter one or more terms to search for. Surrounding a term with quotes will limit result to only those that exactly match the term." name="lookfor" value="" size="40" type="text"> <input type="submit" alt="Search WYLDcat" value="Search WYLDcat"> </div> </form>


Form with selections for type of search

<form action="https://{ASPENBASEURL}/Union/Search" method="get" target="blank"> <input name="searchSource" value="local" type="hidden"> <input name="basicType" value="Keyword" type="hidden"> <div> <input title="Enter one or more terms to search for. Surrounding a term with quotes will limit result to only those that exactly match the term." name="lookfor" value="" size="40" type="text"> <select name="searchIndex" id="searchIndex" title="The method of searching." aria-label="Search Index"><option data-searchsource="catalog" value="Keyword">by Keyword</option><option data-searchsource="catalog" value="Title">by Title</option><option data-searchsource="catalog" value="StartOfTitle">by Start of Title</option><option data-searchsource="catalog" value="Series">by Series</option><option data-searchsource="catalog" value="Author">by Author</option ><option data-search_source="catalog" value="Subject">by Subject</option></select> <input type="submit" alt="Search Catalog" value="Search the Catalog"> </div> </form>







Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article