MILS OPAC Widget

You can add a MILS search box to your webpages. Just copy the code below  and paste it into your webpage where you want the search to appear.

MILS Search Widget Code:

<!-- MILS SEARCH WIDGET -->
<form name="searchwidget" style="display:inline" target="_blank" action="https://mils.maine.edu/search/" method="get">
Search the Catalog by:
      <select name="searchtype">
        <option value="X" selected="selected">Keyword</option>      
        <option value="t">Title</option>                                      <option value="a">Author</option>        
        <option value="d">Subject</option> 
      </select>
      <input type="text" name="searcharg" size="30" maxlength="75" value="" alt="Search MILS" />
      <input type="hidden" name="searchscope" value="1" />
      <input type="hidden" name="SORT" value="D" />
      <input type="hidden" name="extended" value="0" />
      <input type="submit" name="SUBMIT" value="Search MILS" />
      <input type="hidden" name="searchlimits" value="" />
</form>
<!-- END MILS SEARCH WIDGET --

Common Adjustments

  • Change the Scope by changing “value=1” to your scope in this line:
            <input type="hidden" name="searchscope" value="1" />

    Here is a list of library scopes as of March 2019:
    13: A B Ricker Memorial Library
    20: Berwick Public Library
    22: D. A. Hurd Library
    37: Franco-American Centre Franco-Americain
    30: Kennebec Valley Community College
    28: Lisbon Library
    35: Libby Memorial Library
    12: Maine Medical Center Library
    32: Maine Maritime Museum
    38: Millinocket Memorial Library
    10: Paris Public Library
    31: Penobscot Marine Museum
    24: South Berwick Public Library
    33: Springvale Public Library
    2: Vose Library
    15: Wells Reserve
    18: Winslow Public Library
    26: Wiscasset Public Library

  • Change the default search option by adjusting the <option> lines. For example, to default to Title, the <options> lines would be:
   <option value="X">Keyword</option>
   <option value="t" selected="selected">Title</option>
   <option value="a">Author</option>
   <option value="d">Subject</option>