Drag the following bookmarklet to your browser's bookmark bar to invoke this converter on any page you like. It will start by adding the URL of the current page to the form.
Note that the form incorporates a few classes that assume Bootstrap version 3, since that is what is currently (as of November 2023) used in LibGuides. The form also includes some inline style rules to facilitate easy use with minimal added styling.
Use the embed code below to show the search form as a widget on the page of your choice (such as a LibGuides content box). When the page you embeded it in loads, the JavaScript will insert the form into the page dynamically. If the widget on this page is updated in the future, these changes will roll out to your page.
Alternatively, you can copy the form's HTML and JavaScript shown below and include it in your page. This method will allow you to make changes to the HTML and JavaScript. If changes are made later to the version shown on this page, you will need to edit your code separately or come back to this page to copy the new version.
Other libraries can use this code as well. Just edit the value of newProxy in the JavaScript to match your most-current proxy prefix, and optionally oldProxy if applicable.