Trove on your site

Adding a Trove search widget to your website

Trove search is easy to add to your own website. Just copy and paste the code below into the HTML of your web page.

<!--Start Trove Search -->
  <iframe src="http://trove.nla.gov.au/static/searchbox/search_s.html" name="trovesearchframe" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="width: 11em; height: 7em;">
    <a href="http://trove.nla.gov.au">Search Trove</a>
  </iframe>
<!--End Trove Search -->

You will then have your own fully functional Trove search box that looks like this (try it, it works!):

Customising your Trove search widget

You can customise Trove search widget by adding extra parameters and limits to the 'src=' URL in the code.

For example, to search in a particular Trove zone – say, Pictures, photos and objects – add a question mark, then the zone tab name, like this:

 src="http://trove.nla.gov.au/static/searchbox/search_s.html?tab=picture"

The zone tab names are: book, picture, article (for the Journals, articles and datasets zone), newspaper, music, map, collection (for the Diaries, letters, archives zone), website, people, list.

You can also add limits to focus the search even more.

For example, to search within a single newspaper title – say, The Sydney Morning Herald (http://nla.gov.au/nla.news-title35) – add a further title number limit ('&l-title=') to the end of the 'src=' URL, plus the title number of the newspaper:

You can find the newspaper title number at the end of the title's URL on the Newspaper Titles page.

Here is what the customised URL for searching The Sydney Morning Herald would look like in the code:

<!--Start Trove Search -->
  <iframe src="http://trove.nla.gov.au/static/searchbox/search_s.html?tab=newspaper&l-title=35"
name="trovesearchframe" scrolling="no" marginwidth="0" marginheight="0"
frameborder="0" style="width: 15em; height: 7em;">
    <a href="http://trove.nla.gov.au">Search Trove</a>
  </iframe>
<!--End Trove Search -->

You can also use other available limits using the pattern '&l-<limit name>=<limit value>'. The general limit names are: format, availability, decade, year, language, and australian.

For other supported limits for particular zones, refer to the List of supported facets in the Trove API guide.