Cool URLs

The front-end tries to keep the URLs looking sleek and easy to understand. They are described below.


Search queries are handled entirely by AJAX. The main URL for a search takes this form:


There can be an arbitrary number of filters.

For example, a search for noah webster, filtered by location might look like this:



Browsing works exactly like searching, except that the Solr request handler is configured to emulate 'browsing' behavior. Like with searching, browsing queries are handled exclusively by AJAX request. For example:


There can be an arbitrary number of filters.

For example, browsing the 'Art and Architecture' (PID=collection:vr) collection might involve a location like this:



Object viewing uses a very simple URI pattern:


TODO: carry over some state from the previous search/browse query in order to allow users to access the next search result item, such as:


Everything following the PID would be optional.

JSON Requests

Much of the functioning of the site will consist of JSON requests. This is particularly true of the search and browse interfaces. Those pages will use the backend API for requesting data. These requests will follow this general format:


Search Request

Here is an example of a search request for the first 21 items matching the query 'noah webster' and filtered by 'mods.geographic:amherst'


Browse Request

An example of a browse request for the second page of 21 items in the Art and Architecture collection, filtered by 'mods.genre:painting'


Or, do the same query across all collections:


Similar Items Request

An example of 'related items', based on PID: vr:9310, requesting the first page of two items. In this case, there are no filters.

url_formats.txt · Last modified: 2014/01/22 15:29 by acoburn
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International