Add Trove to your website

Trove search is as easy to add to your webpage as a simple copy and paste. Just highlight the code below, right-click to copy it, then paste it into the HTML on your own site.

Placing the search box on your organisational or personal website will help your visitors find and get items from the collections of Australia's libraries and worldwide online sources.

You now have your own fully functional Trove search box that looks like this:



Customise Trove search on your own website

You can further customise Trove search when you add it to your own website 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:

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:

Tip: You can find the newspaper title number at the end of the title's "about" page URL. Here is the full list of "about" pages.

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

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; australian.

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

Add Trove to your browser

Look here for instructions on how to add Trove to the search box built in to your browser.


 

Back to the top