Jump to content

How to identify the search URL when creating a custom search

Recommended Posts

The easiest way to figure out a search URL is to do a search, then dissect the URL that displays the search result.

So if I search for Bourdieu , that library produces a URL with a lot of cruft:


So the next step is to try stripping out everything but the query.

unfortunately the simplest form


results in an Internal Server Error

and the other catalog link under the Catalogue Crésus produces URLs that don't have the query encoded.


I thought this was going to be an easy question, since I've done this with a dozen or so university libraries before....but the catalog servers you are dealing with here are not so amenable to the usual approach.

The next step is to start looking at the <form> tag within the underlying html and trying to reconstruct the URL that the page submits to the server to generate the search results.

Link to comment

After a bit of poking around in the source, I believe this should work:


or for author


or for title


I've been assuming that's the search you wanted, not the search box for the library site or the hidden tab search for just the library catalog.

Edited by dfay
Link to comment

What I did was to look for the block of html in the source that had the advanced search form, which was here:

<!-- CONTENT ELEMENT, uid:61050/text [begin] -->

<div id="c61050" class="csc-default">

<!-- Text: [begin] -->

<p class="bodytext"><a href="https://search.ebscohost.com/login.aspx?direct=true&authtype=ip,guest&custid=s8336272&setup=1&groupid=main&profile=eds"title="Ouvre un lien externe dans une nouvelle fenêtre" target="_blank">Recherche avancée</a></p>

<!-- Text: [end] -->


<!-- CONTENT ELEMENT, uid:61050/text [end] -->

and then add the &bquery element that we saw in the earlier cryptic URL to the URL in that <a> tag above.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...