Overview
This article describes how to add full-text search for web archive collections to any website. It provides template HTML code for the feature and examples used by Archive-It partners currently.
On this page:
- How to add a custom Archive-It search box to your website
- Custom access portals created by our partners
Prerequisites
You will need access to edit the HTML source code of your web page or site in order to add the Archive-It full-text search feature.
Instructions
Use the HTML code below to add a search box that queries one or more web archive collections hosted on archive-It.org.
Single collection
Add the following code to create a search box for a single collection, :
<form action="https://www.archive-it.org/collections/{COLLECTIONID}">
<input type="text" name="q"/>
<input type="hidden" name="show" value="ArchivedPages"/>
<input type="submit" name="go" value="Go" />
</form>
Replace {COLLECTIONID} with the relevant Archive-It collection number.
All Collections
Add the following code to create a search box for all of an organization's collections:
<form action="https://www.archive-it.org/organizations/{ORGANIZATIONID}">
<input type="text" name="q"/>
<input type="hidden" name="show" value="ArchivedPages"/>
<input type="submit" name="go" value="Go" />
</form>
Replace {ORGANIZATIONID} with the relevant Archive-It organization ID number. You may find each organization's ID number at the end of its URL on archive-it.org. For instance, the Internet Archive Global Events ID number at https://archive-it.org/organizations/89 is 89.
Advanced search options
Add any of the optional code below to the template HTML code above to include box on your page to also enable advanced search options available for web archive collections on archive-it.org.
Filter by file type
<select size="1" >
<option selected="selected" value="0">All formats</option>
<option value="text/html">HTML</option>
<option value="text/plain">Plain text</option>
<option value="application/pdf">PDF</option>
<option value="application/postscript">Postscript</option>
<option value="application/msword">Microsoft Word</option>
</select>
Modify number of results per host
<select name="hitsPerDupe">
<option value="1">1 (default)</option>
<option value="5">5</option>
<option value="10" selected="selected">10</option>
<option value="25">25</option>
<option value="0">Unlimited</option>
</select>
Search only a specific host
<input type="text" value="" size="44" name="host">
Outcome
Queries performed with the search bar above will direct end users to results from the relevant web archive collections on archive-it.org.
Follow the links below to browse pages that some Archive-It partners have created to enable full-text access their collections. If you would like your institution to be listed, please let us know!
- Austin Presbyterian Theological Seminary
- Bodleian Libraries
- Clark Art Institute Library
- Emory University
- Library of Virginia
- Maryland State Archives
- New York Art Resources Consortium
- North Carolina State Archives & State Library of North Carolina
- University of Texas at Austin, Human Rights Documentation Initiative
- University of Texas at Austin, Latin American Government Documents Archive
- University of Texas at San Antonio
Comments
0 comments
Please sign in to leave a comment.