One of the possibilities offered by hypertext is the integration of glossaries into academic documents. In principle a user's browser could have a glossary function built in, so that the user would highlight something to have it looked up and explained. Or, academic documents on the Web might have unusual terms hyperlinked to their explanations. Fortunately we do not have to wait for other people to provide these features. A technology for user-defined hyperlinks is available in several browsers today.
In this article, we show how you can set up a browser to use this facility in conjunction with an on-line glossary of economic terms.
For the example we use a glossary at http://econterms.com/ intended to help readers interpret academic economics language. In that glossary, terms are hyperlinked to other terms, bibliography entries, graphs, other Web pages, and occasionally computer programs. It is designed for hit-and-run, one-at-a-time use rather than lengthy browsing, which makes it a good fit for this application. Other good glossaries of economics and related fields exist (see the listings at Economics LTSN and at Econterms).
To look up a term in Econterms or another web glossary, one could select the text, copy it, find the glossary, paste the term into the search box, then press "submit". Fortunately, there is a much simpler mechanism which, once set up, only requires the user to select the term and then press a button on their browser.
It depends on two features of the current generation of browsers. The first is Javascript, the language with user-interface and computational capabilities that can be included in web pages. Several on-line projects related to economics are written in Javascript, including Roger McCain's and Kim Sosin's interactive multiple choice tests and Ray Fair's econometric model. These and other Javascript examples are listed in a special section of the LTSN Economics site, under "Web Links".
The other browser feature is the ability to save URLs of up to 255 characters length as a bookmark. Since the browser treats Javascript programs as a kind of URL, it can bookmark them just as it can bookmark the location of a page.
Any Javascript program that can be written in 255 characters can be stored in the bookmark file. Once stored, it can be activated on any web page, taking input from the properties of that page or from the currently selected text. These programs are called "Bookmarklets". The guru of bookmarklets is Steve Kangas, who hosts many useful examples on his site, including:
Martin Poulter at CTI Economics has adapted bookmarklets of the latter kind to send the selected text to Econterms.
A bookmarklet can be installed as a button on a toolbar. If you have a recent Netscape or Microsoft browser, only two steps are needed.
Figure 1: Consult EconTerms bookmarklet being added to a browsers
toolbar.
When the bookmarklet is activated, it reads the currently selected text, inserts it into a URL as a query string and then takes the browser to that URL. If no text has been selected, the browser pops up a query box into which you can type a search term. Figure 2 shows the bookmarklet in action. Any text from a HTML or plain text file can be selected, but browsers cannot select text from other formats such as PDF.
Figure 2: Using the bookmarklet to look up an unfamiliar term.
If you have a large collection of economics texts, it may be useful to your readers if you make the bookmarklet available on the site (You can retrieve the bookmarklet code by looking at the source of the CTI Economics bookmarklet page mentioned above.) CTI Economics is happy for you to do this, so long as you credit us and make a link back to our site.
In principle, any on-line service that receives information via the GET method (where the query forms part of the URL) can be accessed with bookmarklets. On the page mentioned above, CTI Economics has bookmarklets to search Orley Amos' Amosworld economic glossary as well as bookmarklets for searching the Internet gateway SOSIG. The Amosworld glossary is a simple glossary for absolute beginners to economics, but includes more than a thousand entries. Making your own bookmarklets to search on-line services is easy. The bookmarklets site tells you how to do this, and provides a tool in the form - bizarrely enough - of a bookmarklet.
If you have your own searchable service, such as a glossary, repository of papers or other database, you can optimise it for use with bookmarklets with the following steps:
At CTI Economics, we are happy to help anyone create bookmarklets that might be useful to economists just send Martin an e-mail.