MyLibrary for webmasters
With the addition of some simple HTML code, you can include MyLibrary content into your HTML pages. For example, add the following snippet to any HTML file and an unordered hotlinked list of dictionaries from MyLibrary will appear on your page.
<script type = 'text/javascript'
src = 'http://infomotions.com/sandbox/mylibrary/js/?termid=37'>
</script>
Read on for details.
MyLibrary terms
The content of MyLibrary is organized using sets of "terms". These terms bring similar information resources together under a single heading. Example terms include dictionaries, newspapers, literature, etc.
Each term is associated with a number -- a termid. By substituting a different value for termid, in red above, you are able to insert different sets of information resources into your page(s). Here is a list of all the terms presently in the system, a brief description of each term, and its associated termid:
- Bacon, Francis (1561-1626) - (termid=206)
- Bibliographies - Lists of citations (termid=218)
- Biographies - Narratives about people (termid=202)
- Books - Traditionally, codexes, but can now-a-days mean electronic books of all kinds. (termid=48)
- Catalogs - Usually lists of items own by a specific institution, usually library "catalogs" (termid=40)
- Cooking - The process of preparing food (termid=90)
- Dictionaries - Useful for determing the definition of words (termid=37)
- Directories - Names, addresses, and telephone numbers (termid=116)
- Doyle, Arthur Conan (1859-1930) - The author of many short stories, most notably surrounding Sherlock Holmes (termid=203)
- Education - The processes of teaching people how to learn (termid=41)
- Encyclopedias - Short introductions to specific topics (termid=38)
- Exhibits - Usually things done by libraries, archives, and museums showing off works or themes of items from their collection (termid=239)
- Frankenstein - "a modern Prometheus" (termid=242)
- Generalities - No specific subject (termid=43)
- Holmes, Sherlock - The main character of many Sir Arthur Conan Doyle stories (termid=199)
- Images - Pictures (termid=49)
- Indexes, bibliographic - Lists of pointers to magazine and journal articles (termid=66)
- Indexes, Internet - Lists -- pointers -- to information resources found on the Web. Usually websites. (termid=39)
- Journals - Like magazines, contain articles but usually of a scholarly nature (termid=154)
- Libraries - Places where information needs are met (termid=102)
- Literature - Reading and writing (termid=52)
- Literature -- English, 17th century - (termid=209)
- London - The capital of England (termid=188)
- Machiavelli, Niccolo (1469-1527) - (termid=221)
- Maps - Pictures of geographic locations (termid=109)
- Medicine - A life science dealing with the healing of people (termid=42)
- Melville, Herman (1819-1891) - The author of Moby Dick (termid=245)
- Museums - An "archive" open to the public (termid=229)
- News - Curent events (termid=80)
- Newspapers - News stories distribted on a more or less daily basis (termid=73)
- Philosophy - Thinking and thinquing (termid=53)
- Poe, Edgar Allan (1809-1849) - (termid=224)
- Shelley, Mary Wollstonecraft (1797-1851) - The author of Frankenstein (termid=234)
- Thesauri - usually used to discover words with similar meanings (termid=127)
- Travel - Going places (termid=87)
- Weather - What is it doing outside (termid=99)
Therefore, the following HTML snippet will include a list of cooking resources (termid=90) into your page.
<script type = 'text/javascript'
src = 'http://infomotions.com/sandbox/mylibrary/js/?termid=90'>
</script>
Likewise, this snippet will include a list of Internet indexes (termid=39).
<script type = 'text/javascript'
src = 'http://infomotions.com/sandbox/mylibrary/js/?termid=39'>
</script>
To see this in action load http://infomotions.com/sandbox/mylibrary/js-example-01.html, and view the source code. Not too difficult.
Styling your lists
By adding div elements and style attributes to your HTML, you can style the lists and position them on the page. For example, this snippet will create a list of literature resources on the right-hand side of the page and enclose it in a box:
<div style='float: right;
padding-left: 1em;
padding-right: 1em;
width: 15%;
font-size: small;
border: 1px solid #778;
margin: 1em;'>
<script type = 'text/javascript'
src = 'http://infomotions.com/sandbox/mylibrary/js/?termid=52'>
</script>
</div>
<div style='float: right;
padding-left: 1em;
padding-right: 1em;
width: 15%;
font-size: small;
border: 1px solid #778;
margin: 1em;'>
<h3>Literature resources</h3>
<div style='margin-left: -2em'>
<script type = 'text/javascript'
src = 'http://infomotions.com/sandbox/mylibrary/js/?termid=52'>
</script>
</div>
</div>
To see how this is rendered, view the source of http://infomotions.com/sandbox/mylibrary/js-example-02.html.
Using something like the snippet above is the recommended practice since it seems to be pretty efficient and unobtrusive.
That's all. Have fun with it.
If you have any questions, just ask, and if you implement this technique, then don't hesitate to drop me a line. I would like to create a short list of examples found on the 'Net.