Remove demos that have moved to the demos repo.
authorJason Skomorowski <jason@indexdata.com>
Wed, 14 Jan 2015 04:30:54 +0000 (23:30 -0500)
committerJason Skomorowski <jason@indexdata.com>
Wed, 14 Jan 2015 04:30:54 +0000 (23:30 -0500)
73 files changed:
examples/htdocs/async.html [deleted file]
examples/htdocs/auto-paratext-minimal.html [deleted file]
examples/htdocs/auto-paratext.html [deleted file]
examples/htdocs/auto.html [deleted file]
examples/htdocs/auto2.html [deleted file]
examples/htdocs/auto3.html [deleted file]
examples/htdocs/choose-target.html [deleted file]
examples/htdocs/demo-for-ag.html [deleted file]
examples/htdocs/dict.html [deleted file]
examples/htdocs/favicon.ico [deleted file]
examples/htdocs/images.html [deleted file]
examples/htdocs/index.html [deleted file]
examples/htdocs/intro.html [deleted file]
examples/htdocs/language.html [deleted file]
examples/htdocs/lolcat.html [deleted file]
examples/htdocs/lowlevel.html [deleted file]
examples/htdocs/mkws-widget-credo.css [deleted file]
examples/htdocs/mkws-widget-credo.js [deleted file]
examples/htdocs/mkws-widget-ru-requirejs.html [deleted file]
examples/htdocs/mkws-widget-ru.css [deleted file]
examples/htdocs/mkws-widget-ru.html [deleted file]
examples/htdocs/mkws-widget-ru.js [deleted file]
examples/htdocs/mkws-widget-ru.readme [deleted file]
examples/htdocs/mkws-widget-sru.js [deleted file]
examples/htdocs/mkws-widget-wikicat.js [deleted file]
examples/htdocs/mkws-widget-wikipedia.css [deleted file]
examples/htdocs/mkws-widget-wimp.css [deleted file]
examples/htdocs/mkws-widget-wimp.html [deleted file]
examples/htdocs/mkws-widget-wimp.js [deleted file]
examples/htdocs/mobile.html [deleted file]
examples/htdocs/prettysimple.css [deleted file]
examples/htdocs/prettysimple.html [deleted file]
examples/htdocs/ref.html [deleted file]
examples/htdocs/reference.html [deleted file]
examples/htdocs/robots.txt [deleted file]
examples/htdocs/simple.html [deleted file]
examples/htdocs/stateful.html [deleted file]
examples/htdocs/surlyauto.html [deleted file]
examples/htdocs/table.html [deleted file]
examples/htdocs/tester-wiki.html [deleted file]
examples/htdocs/tester.html [deleted file]
examples/htdocs/topic.css [deleted file]
examples/htdocs/topic.html [deleted file]
examples/htdocs/tpl.html [deleted file]
examples/htdocs/tpl_files/300lo.json [deleted file]
examples/htdocs/tpl_files/addthis_widget.js [deleted file]
examples/htdocs/tpl_files/ask-librarian-chat.gif [deleted file]
examples/htdocs/tpl_files/ask-librarian-email.gif [deleted file]
examples/htdocs/tpl_files/ask-librarian-phone.gif [deleted file]
examples/htdocs/tpl_files/auth016.js [deleted file]
examples/htdocs/tpl_files/core122.js [deleted file]
examples/htdocs/tpl_files/digital-collections.css [deleted file]
examples/htdocs/tpl_files/ga.js [deleted file]
examples/htdocs/tpl_files/gtranslate_icon.gif [deleted file]
examples/htdocs/tpl_files/index(1).aspx [deleted file]
examples/htdocs/tpl_files/index(2).aspx [deleted file]
examples/htdocs/tpl_files/index(3).aspx [deleted file]
examples/htdocs/tpl_files/index(4).aspx [deleted file]
examples/htdocs/tpl_files/index(5).aspx [deleted file]
examples/htdocs/tpl_files/index.aspx [deleted file]
examples/htdocs/tpl_files/jquery-1.8.3.min.js [deleted file]
examples/htdocs/tpl_files/jsapi [deleted file]
examples/htdocs/tpl_files/megamenu-close-button.gif [deleted file]
examples/htdocs/tpl_files/no-image-book.png [deleted file]
examples/htdocs/tpl_files/no-image-dvd.png [deleted file]
examples/htdocs/tpl_files/pictures-r-4812.jpg [deleted file]
examples/htdocs/tpl_files/print.css [deleted file]
examples/htdocs/tpl_files/sh149.html [deleted file]
examples/htdocs/tpl_files/tpl-logo.png [deleted file]
examples/htdocs/tpl_files/tpl.css [deleted file]
examples/htdocs/tpl_files/tpl.js [deleted file]
examples/htdocs/tpl_files/widget119.css [deleted file]
examples/htdocs/two-teams.html [deleted file]

diff --git a/examples/htdocs/async.html b/examples/htdocs/async.html
deleted file mode 100644 (file)
index 25241d4..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: Async feeling.</title>
-    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/jquery.json-2.4.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/jsnlog.min.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/handlebars-v2.0.0.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/pazpar2/js/pz2.js"></script>
-    <script type="text/javascript" src="http://mkws.local/mkws.js"></script>
-    <link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />
-  </head>
-  <body>
-    <div id="first"></div>
-    <script type="text/javascript">
-      $("#first").html("<div class='mkws-reference' autosearch='one' sentences='1'>result will appear here</div>");
-      mkws.init("First div", "#first");
-    </script>
-    <div id="second"></div>
-    <script type="text/javascript">
-      $("#second").html("<div class='mkws-reference' autosearch='two' sentences='1'>result will appear here</div>");
-      mkws.init("Second div", document.getElementById("second"));
-    </script>
-    <div id="third"></div>
-    <script type="text/javascript">
-      $("#third").html("<div class='mkws-reference' autosearch='three' sentences='1'>result will appear here</div>");
-      mkws.init("Third div", "#third");
-    </script>
-    <div class='mkws-reference' autosearch='four' sentences='1'>This would have been four but we're not searching it.</div>
-  </body>
-</html>
diff --git a/examples/htdocs/auto-paratext-minimal.html b/examples/htdocs/auto-paratext-minimal.html
deleted file mode 100644 (file)
index 0a7dbe5..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<html>
-  <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-  <script type="text/javascript">
-    mkws_config = {
-      service_proxy_auth: "http://sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc",
-      perpage_default: 5,
-   };
-  </script>
-  <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-  <div style="width: 30em; background: #f0f0f0">
-    <h2>Reference results from Paratext</h2>
-    <div class='mkws-records' autosearch='!param!q' sort='position'></div>
-  </div>
-</html>
diff --git a/examples/htdocs/auto-paratext.html b/examples/htdocs/auto-paratext.html
deleted file mode 100644 (file)
index 51970a1..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
-    <title>MKWS demo: Automatic search</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript">
-      mkws_config = {
-        service_proxy_auth: "http://sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc",
-       perpage_default: 5,
-     };
-    </script>
-    <script type="text/javascript" src="//code.jquery.com/jquery-1.10.0.min.js"></script>
-    <script type="text/javascript" src="//mkws.indexdata.com/jquery.json-2.4.js"></script>
-    <script type="text/javascript" src="//mkws.indexdata.com/jsnlog.min.js"></script>
-    <script type="text/javascript" src="//mkws.indexdata.com/handlebars-v2.0.0.js"></script>
-    <script type="text/javascript" src="//mkws.indexdata.com/pazpar2/js/pz2.js"></script>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws.js"></script>
-    <style type="text/css">
-      .panel {
-       font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Verdana, Sans-Serif;
-       width: 25em;
-       float: right;
-        background: #f0f0f0;
-       border: 1px solid #b0b0b0;
-       border-radius: 1em;
-        margin-left: 1em;
-      }
-      .panel h2 {
-       color: #606060;
-       padding-left: 5px;
-      }
-      .entrybody {
-        max-width: 40em;
-      }
-      .wp-caption-text {
-        font-size: small;
-        background: #f0f0f0;
-        padding: 0.5em 1em;
-      }
-    </style>
-  </head>
-  <body>
-    <h1>How big was <i>Amphicoelias fragillimus</i>?  I mean, really?</h1>
-    <p>
-      <i>February 19, 2010</i>
-    </p>
-
-    <div class="panel">
-      <h2>Reference results from Paratext</h2>
-      <div class='mkws-records' autosearch='!param!q' sort='position'></div>
-    </div>
-
-    <div class="entrybody">
-      <p>Lovers of fine sauropods will be well aware that, along with the inadequately described Indian titanosaur <em>Bruhathkayosarus</em>, the other of the truly super-giant sauropods is <em>Amphicoelias fragillimus</em>.  Known only from a single neural arch of a dorsal vertebra, which was figured and briefly described by Cope (1878) and almost immediately either lost or destroyed, it's the classic "one that got away", the animal that sauropod aficionados cry into their beer about late at night.</p>
-      <div id="attachment_2526" style="width: 471px" class="wp-caption alignnone"><a href="http://svpow.files.wordpress.com/2010/02/osbornmook1921-fig17-amphicoelias-fragillimus.png"><img class="size-full wp-image-2526" title="OsbornMook1921-fig17-amphicoelias-fragillimus" alt="" src="http://svpow.files.wordpress.com/2010/02/osbornmook1921-fig17-amphicoelias-fragillimus.png?w=360"   /></a><p class="wp-caption-text">Amphicoelias fragillimus, holotype dorsal vertebral neural arch in posterior view. From Osborn and Mook (1921:fig. 21), which in turn was gently tweaked from Cope (1878:unnumbered and only figure).</p></div>
-      <p>I'm not going to write about <em>A</em>. <em>fragillimus</em> in detail here, because Darren's so recently covered it in detail over at Tetrapod Zoology -- read <a href="http://scienceblogs.com/tetrapodzoology/2009/12/biggest_sauropod_ever_part_i.php">Part 1</a> and <a href="http://scienceblogs.com/tetrapodzoology/2010/01/biggest_sauropod_ever_part_ii.php">Part 2</a> right now if you've not already done so.  The bottom line is that it was a diplodocoid roughly twice as big as <em>Diplodocus</em> in linear dimension (so about eight times as heavy).  That makes it very very roughly 50 m long and 100 tonnes in mass.</p>
-      <p><em>But Mike!</em>, you say, <em>Isn't it terribly naive to go calculating masses and all from a single figure of part of a single bone?</em></p>
-      <p>Why, yes!  Yes, it is!  And that is what this post is about.</p>
-      <p>As I write, the go-to paper on <em>A</em>. <em>fragillimus</em> is Ken Carpenter's (2006) re-evaluation, which carefully and tentatively estimated a length of 58 m, and a mass of around 122,400 kg.</p>
-      <p>As it happens, Matt and a colleague submitted a conference abstract a few days ago, and he ran it past me for comments before finalising.  In passing, he'd written "there is no evidence for sauropods larger than 150 metric tons and it is possible that the largest sauropods did not exceed 100 tons".  I replied:</p>
-      <p style="padding-left:30px;">I think that is VERY unlikely. [...] the evidence for <em>Amphicoelias fragillimus</em> looks very convincing, Carpenter's (2006) mass estimate of 122.4 tonnes is conservative, being extrapolated from Greg Paul's ultra-light 11.5 tonne <em>Diplodocus</em>.</p>
-      <p>Carpenter's estimate is based on a reconstruction of the illustrated vertebra, which when complete he calculated would have been 2.7 m tall.  That is 2.2 times the height of the corresponding vertebra in <em>Diplodocus</em>, and the whole animal was considered as it might be if it were like Diplo scaled up by that factor.  Here is his reconstruction of the vertebra, based on Cope's figure of the smaller but better represented species <em>Amphicoelias altus</em>:</p>
-      <div id="attachment_2527" style="width: 490px" class="wp-caption alignnone"><a href="http://svpow.files.wordpress.com/2010/02/carpenter2006-fig1.png"><img class="size-full wp-image-2527" title="Carpenter2006-fig1" alt="" src="http://svpow.files.wordpress.com/2010/02/carpenter2006-fig1.png?w=480&#038;h=562" width="480" height="562" /></a><p class="wp-caption-text">One possible reconstruction of the Alphicoelias fragillimus vertebra, from Carpenter (2006:fig. 1).  Part A is Cope's original figure annotated with lamina designations; part C is Cope's illustration of an Amphocoelias altus dorsal; part B is Carpenter's reconstruction of the former after the latter.</p></div>
-      <p>Matt's answer to me was:</p>
-      <p style="padding-left:30px;">First, Paul's ultra-light 11.5 tonne Dippy is not far off from my 12 tonne version that you frequently cite, and mine should be lighter because it doesn't include large air sacs (density of 0.8 instead of a more likely 0.7). If my Dippy had an SG of 0.7, it would have massed only 10.25 tonnes. Second, Carpenter skewed [...] in the direction of large size for <em>Amphicoelias</em>. I don't <em>necessarily</em> think he's wrong, but his favoured estimate is at the extreme of what the data will support. Let's say that <em>Amphicoelias</em> was evenly twice as large as Dippy in linear terms; that could still give it a mass as low as 90 tonnes. And that's not including the near-certainty that <em>Amphicoelias</em> had a much higher ASP than <em>Diplodocus</em>. If <em>Amphicoelias</em> was to <em>Diplodocus</em> as <em>Sauroposeidon</em> was to <em>Brachiosaurus</em> -- pneumatic bones about half as dense -- then 1/10 of its volume weighed Â½ as much as it would if it were vanilla scaled up Dippy, and we might be able to knock off another 5 tonnes.</p>
-      <p>There's lots of good stuff here, and there was more back and forth following, which I won't trouble you with.  But what I came away with was the idea that maybe the scale factor was wrong.  And the thing to do, I thought, was to make my own sealed-room reconstruction and see how it compared.</p>
-      <p>So I extracted the A.f. figure from Osborn and Mook, and deleted their dotted reconstruction lines.  Then I went and did something else for a while, so that any memory of where those lines might have been had a chance to fade.  I was careful not look at Carpenter's reconstruction, so I could be confident mine would be indepedent.  Then I photoshopped the cleaned <em>A</em>. <em>fragillimus</em> figure into a copy the <em>A</em>. <em>altus</em> figure, scaled it to fit the best as I saw it, and measured the results.  Here it is:</p>
-      <div id="attachment_2532" style="width: 490px" class="wp-caption alignnone"><a href="http://svpow.files.wordpress.com/2010/02/scaled-composite-re-exported1.png"><img class="size-full wp-image-2532" title="scaled-composite-RE-EXPORTED" alt="" src="http://svpow.files.wordpress.com/2010/02/scaled-composite-re-exported1.png?w=480&#038;h=511" width="480" height="511" /></a><p class="wp-caption-text">My scaling of a complete Amphicoelias fragillimus vertebra: on the left, Cope's figure of the only known vertebra; on the right, Cope's figure of an A. altus dorsal vertebra, scaled to match the preserved parts of the former.  Height of the latter scaled according to the measured height of the former.</p></div>
-      <p>As you can see, when I measured my scaled-to-the-size-of-A.f. <em>Amphicoelias</em> vertebra, it was "only" 2293 mm tall, compared with 2700 mm in Ken's reconstruction.  In other words, mine is only 85% as tall, which translates to 0.85^3 = 61% as massive.  So if this reconstruction is right, the big boy is "only" 1.87 times as long as Diplodocus in linear dimension -- maybe 49 meters long -- and would likely come in well below the 100-tonne threshhold.  Using Matt's (2005) 12-tonne estimate for <em>Diplodocus</em>, we'd get a mere 78.5 tonnes for <em>Amphicoelias fragillimus</em>.  So maybe Matt called that right.</p>
-      <div id="attachment_2529" style="width: 490px" class="wp-caption alignnone"><a href="http://svpow.files.wordpress.com/2010/02/2006-09-28-amnh-dinos-124.jpg"><img class="size-full wp-image-2529" title="2006-09-28 AMNH dinos 124" alt="" src="http://svpow.files.wordpress.com/2010/02/2006-09-28-amnh-dinos-124.jpg?w=480&#038;h=360" width="480" height="360" /></a><p class="wp-caption-text">Amphicoelias altus dorsal vertebra, almost certainly the holotype, in left lateral view, lying on its back.  Photograph by Matt Wedel, from the collections of the AMNH.  I can't believe -- can't BELIEVE -- that I didn't take ten minutes to look at this vertebra when I was in that basement last February.  What a doofus.</p></div>
-      <h2>The Punchline</h2>
-      <p>Folks -- please remember, the punchline is not "<em>Amphicoelias fragillimus</em> only weighed 78.5 tonnes rather than 122.4 tonnes".  The punchline is "when you extrapolate the mass of an extinct animal of uncertain affinities from a 132-year-old figure of a partial bone which has not been seen in more than a century, you need to recognise that the error-bars are massive and anything resembling certainty is way misplaced."</p>
-      <p>Caveat estimator!</p>
-      <h2>References</h2>
-      <div id="_mcePaste">
-       <ul>
-         <li>Carpenter, Kenneth.  2006.  Biggest of the big: A critical re-evalustion of the mega-sauropod <em>Amphicoelias fragillimus</em> Cope, 1878.  pp. 131-137 in J. Foster and S. G. Lucas (eds.), Paleontology and Geology of the Upper Jurassic Morrison Formation.  New Mexico Museum of Natural History and Science Bulletin 36.</li>
-         <li>Cope, Edward Drinker.  1878.  Geology and Palaeontology: a new species of <em>Amphicoelias</em>.  The American Naturalist 12 (8): 563-566.</li>
-         <li>Osborn, Henry Fairfield, and Charles C. Mook.  1921.  <em>Camarasaurus</em>, <em>Amphicoelias</em> and other sauropods of Cope.  Memoirs of the American Museum of Natural History, n.s. 3:247-387, and plates LX-LXXXV.</li>
-       </ul>
-      </div>
-    </div>
-
-    <p style="color:grey">
-      <a href="http://mkws.indexdata.com/">About MKWS</p>
-    </p>
-  </body>
-</html>
diff --git a/examples/htdocs/auto.html b/examples/htdocs/auto.html
deleted file mode 100644 (file)
index e133454..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
-    <title>MKWS demo: Automatic search</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <style type="text/css">
-      td { vertical-align: top; overflow: word-break }
-    </style>
-  </head>
-  <body>
-    <h1>A site about stuff</h1>
-    <table border="1" width="100%" style="table-layout:fixed">
-      <col width="50%"/>
-      <col width="50%"/>
-      <tr>
-       <td>
-         <h2>Welcome</h2>
-         Main site content goes here.
-       </td>
-       <td>
-         <h2>News</h2>
-
-
-<div class='mkws-records'
-       autosearch='sushi'
-       sort='relevance'
-       targets='pz:id~josiah.brown.edu:210/innopac|connect.indexdata.com:9000/mit_opencourseware|lui.indexdata.com:8080/solr4/select?fq=database:3602'
->results will appear here</div>
-
-       </td>
-      </tr>
-    </table>
-    <p style="color:grey">
-      <a href="http://mkws.indexdata.com/">About MKWS</p>
-    </p>
-    <script type="text/javascript">
-      var mkws_config = {
-        sp_auth_credentials: "mkwstest/mkwstest"
-      };
-    </script>
-  </body>
-</html>
diff --git a/examples/htdocs/auto2.html b/examples/htdocs/auto2.html
deleted file mode 100644 (file)
index 6d83894..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
-    <title>MKWS demo: Multiple automatic searches</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <style type="text/css">
-      td { vertical-align: top; overflow: word-break }
-    </style>
-  </head>
-  <body>
-    <h1>Dinosaurs and Museums</h1>
-    <table border="1" width="100%" style="table-layout:fixed">
-      <col width="40%"/>
-      <col width="30%"/>
-      <col width="30%"/>
-      <tr>
-       <td>
-         <h2>Welcome</h2>
-         Main site content goes here.
-       </td>
-       <td>
-         <h2>News</h2>
-<div class='mkws-records mkws-team-news'
-       autosearch='museum'
-       sort='relevance'
-       targets='pz:id~josiah.brown.edu:210/innopac|connect.indexdata.com:9000/mit_opencourseware'
->News will appear here</div>
-       </td>
-       <td>
-         <h2>Blog</h2>
-<div class='mkws-records mkws-team-blog'
-       autosearch='dinosaur'
-       sort='relevance'
-       targets='pz:id~josiah.brown.edu:210/innopac|connect.indexdata.com:9000/mit_opencourseware'
->Blog entries will appear here</div>
-       </td>
-      </tr>
-    </table>
-    <p style="color:grey">
-      <a href="http://mkws.indexdata.com/">About MKWS</p>
-    </p>
-  </body>
-</html>
diff --git a/examples/htdocs/auto3.html b/examples/htdocs/auto3.html
deleted file mode 100644 (file)
index 6df7364..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
-    <title>MKWS demo: Multiple automatic searches</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <style type="text/css">
-      h1 { text-align: center; }
-      h1, h2 {
-       font-family: Impact, Hevetica, Arial, Sans Serif;
-      }
-      td {
-        font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Verdana, Sans-Serif;
-       vertical-align: top;
-       overflow: word-break;
-       background: #f0f0f0;
-        padding: 0.5em 1em;
-       border-radius: 1em;
-      }
-      a {
-        color: #000060;
-       text-decoration: none;
-      }
-    </style>
-  </head>
-  <body>
-    <h1>Dinosaurs</h1>
-    <table border="0" width="100%" style="table-layout:fixed">
-      <col width="33%"/>
-      <col width="33%"/>
-      <col width="33%"/>
-      <tr>
-       <td style="background: #f8f8e0">
-         <h2>PLOS ONE</h2>
-<div class='mkws-records mkws-team-plos'
-       autosearch='dinosaur'
-       sort='relevance'
-       targets='pz:id=lui.indexdata.com:8080/solr4/select?fq=database:6265/'
->PLOS ONE articles will appear here</div>
-       </td>
-       <td style="background: #e0f8f0">
-         <h2>Project Gutenberg</h2>
-<div class='mkws-records mkws-team-gutenberg'
-       autosearch='dinosaur'
-       sort='relevance'
-       targets='pz:id=lui.indexdata.com:8080/solr4/select?fq=database:3552/'
->Free e-books will appear here</div>
-       </td>
-       <td style="background: #e0f0f8">
-         <h2>Library of Congress</h2>
-<div class='mkws-records mkws-team-blog'
-       autosearch='dinosaur'
-       sort='relevance'
-       targets='pz:id=lui.indexdata.com:8080/solr4/select?fq=database:5802/'
->Library catalog entries will appear here</div>
-       </td>
-      </tr>
-    </table>
-    <p style="color:grey; text-align: right">
-      <a href="http://mkws.indexdata.com/">About MKWS</p>
-    </p>
-  </body>
-</html>
diff --git a/examples/htdocs/choose-target.html b/examples/htdocs/choose-target.html
deleted file mode 100644 (file)
index 0a36825..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo client</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div class="mkws-switch"></div>
-    <div class="mkws-lang"></div>
-    <div class="mkws-progress"></div>
-    <div class="mkws-search"></div>
-    <div class="mkws-results" autosearch="!param!q" target="!param!t"></div>
-    <div class="mkws-targets"></div>
-    <div class="mkws-stat"></div>
-    <div class="mkws-builder"></div>
-  </body>
-</html>
diff --git a/examples/htdocs/demo-for-ag.html b/examples/htdocs/demo-for-ag.html
deleted file mode 100644 (file)
index 86e6d04..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<html>
-  <script src="//mkws.indexdata.com/mkws-complete.js"></script>
-  <script>var mkws_config = { sp_auth_credentials: "autographics/agprod973" }</script>
-  <div style="width: 18em; margin: 1.5em 1.5em; float: left">
-    <link rel="stylesheet" type="text/css" href="mkws-widget-ru.css" />
-    <div class="mkws-reference-universe" mkws-team="r" autosearch="!param!q" ></div>
-  </div>
-  <div style="width: 18em; margin: 1.5em 1.5em; float: left">
-    <link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />
-    <div class="mkws-wikipedia" mkws-team="w" autosearch="!param!q" sentences="3"></div>
-  </div>
-</html>
diff --git a/examples/htdocs/dict.html b/examples/htdocs/dict.html
deleted file mode 100644 (file)
index 7f0dfd8..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<html>\r
-  <head>\r
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-    <title>Dictionary lookup demo</title>\r
-    <script type="text/javascript">\r
-      var mkws_config = {\r
-       sp_auth_credentials: "mkwsdict/mkwsdict"\r
-      };\r
-    </script>\r
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />\r
-    <link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />\r
-    <script src="//mkws.indexdata.com/mkws-complete.js"></script>\r
-    <script>$ = jQuery = mkws.$; </script>\r
-  </head>\r
-  <body>\r
-\r
-  <table height="100%" width="100%">\r
-    <tr valign="top" height="100%">\r
-      <td width="60%" valign="top">\r
-       <div id="intro" style="background:yellow; padding:0.1em 1em"\r
-          onclick="this.style.display = 'none'">\r
-         <p>\r
-           What follows is seed content for the dictionary-lookup\r
-           demo (taken from <a href="http://en.wikipedia.org/wiki/Computer"\r
-                               >the Wikipedia page for "computer"</a>).\r
-           Select any region of text on this page (for example, by\r
-           double-clicking a word) and that word will be looked up,\r
-           with the results displayed in the sidebar on the right.\r
-         </p>\r
-         <p>\r
-           Click this introduction to dismiss it.\r
-         </p>\r
-       </div>\r
-       <p>A <b>computer</b> is a general purpose device that can be <a href="http://en.wikipedia.org/wiki/Computer_program" title="Computer program">programmed</a> to carry out a set of arithmetic or logical operations. Since a sequence of operations can be readily changed, the computer can solve more than one kind of problem.</p>\r
-       <p>Conventionally, a computer consists of at least one processing element, typically a <a href="http://en.wikipedia.org/wiki/Central_processing_unit" title="Central processing unit">central processing unit</a> (CPU) and some form of <a href="http://en.wikipedia.org/wiki/Memory_(computers)" title="Memory (computers)" class="mw-redirect">memory</a>. The processing element carries out arithmetic and logic operations, and a sequencing and control unit that can change the order of operations based on stored information. Peripheral devices allow information to be retrieved from an external source, and the result of operations saved and retrieved.</p>\r
-       <p>In <a href="http://en.wikipedia.org/wiki/World_War_II" title="World War II">World War II</a>, <a href="http://en.wikipedia.org/wiki/Mechanical_computer" title="Mechanical computer">mechanical</a> <a href="http://en.wikipedia.org/wiki/Analog_computers" title="Analog computers" class="mw-redirect">analog computers</a> were used for specialized military applications. During this time the first electronic <a href="http://en.wikipedia.org/wiki/Digital_data" title="Digital data">digital</a> computers were developed. Originally they were the size of a large room, consuming as much power as several hundred modern <a href="http://en.wikipedia.org/wiki/Personal_computer" title="Personal computer">personal computers</a> (PCs).<sup id="cite_ref-1" class="reference"><a href="http://en.wikipedia.org/wiki/Computer#cite_note-1"><span>[</span>1<span>]</span></a></sup></p>\r
-       <p>Modern computers based on <a href="http://en.wikipedia.org/wiki/Integrated_circuit" title="Integrated circuit">integrated circuits</a> are millions to billions of times more capable than the early machines, and occupy a fraction of the space.<sup id="cite_ref-2" class="reference"><a href="http://en.wikipedia.org/wiki/Computer#cite_note-2"><span>[</span>2<span>]</span></a></sup> Simple computers are small enough to fit into <a href="http://en.wikipedia.org/wiki/Mobile_device" title="Mobile device">mobile devices</a>, and <a href="http://en.wikipedia.org/wiki/Mobile_computing" title="Mobile computing">mobile computers</a> can be powered by small <a href="http://en.wikipedia.org/wiki/Battery_(electricity)" title="Battery (electricity)">batteries</a>. Personal computers in their various forms are <a href="http://en.wikipedia.org/wiki/Icon" title="Icon">icons</a> of the <a href="http://en.wikipedia.org/wiki/Information_Age" title="Information Age">Information Age</a> and are what most people think of as “computers.” However, the <a href="http://en.wikipedia.org/wiki/Embedded_system" title="Embedded system">embedded computers</a> found in many devices from <a href="http://en.wikipedia.org/wiki/Digital_audio_player" title="Digital audio player" class="mw-redirect">MP3 players</a> to <a href="http://en.wikipedia.org/wiki/Fighter_aircraft" title="Fighter aircraft">fighter aircraft</a> and from toys to <a href="http://en.wikipedia.org/wiki/Industrial_robot" title="Industrial robot">industrial robots</a> are the most numerous.</p>\r
-       </div>\r
-      </td>\r
-      <td width="40%" align="top">\r
-       <div class="mkws-search"></div>\r
-       <div class="mkws-reference"></div>\r
-       <div class="search-query"></div>\r
-      </td>\r
-    </tr>\r
-  </table>\r
-\r
-  <script>\r
-    $(".mkws-search").hide();\r
-    $(".mkws-reference").hide();\r
-\r
-    if(!window.indexdata){\r
-      indexdata = {};\r
-    }\r
-\r
-    indexdata.Selector = { 'debug': false, 'clicking': false };\r
-\r
-    indexdata.Selector.getSelected = function(){\r
-      var t = '';\r
-      if(window.getSelection){\r
-       t = window.getSelection();\r
-      }else if(document.getSelection){\r
-       t = document.getSelection();\r
-      }else if(document.selection){\r
-       t = document.selection.createRange().text;\r
-      }\r
-      return t;\r
-    };\r
-\r
-    indexdata.Selector.mouseup = function(){\r
-      var text = indexdata.Selector.getSelected();\r
-      if(text != ''){\r
-       if (indexdata.Selector.debug) {\r
-         alert("You selected:\n" + text);\r
-       }\r
-       indexdata.Selector.mkws(text);\r
-      }\r
-    };\r
-\r
-    indexdata.Selector.mkws = function(query) {\r
-      if ( query != "" && ! indexdata.Selector.clicking ) {\r
-       // no recursive calls\r
-       indexdata.Selector.clicking  = true;\r
-\r
-       $(".mkws-reference").show();\r
-       $("input.mkws-query").val(query);\r
-       $(".search-query").text(query);\r
-       $("input.mkws-button").trigger("click");\r
-       indexdata.Selector.clicking = false;\r
-      }\r
-    };\r
-\r
-    $(document).ready(function(){\r
-      $(document).bind("mouseup", indexdata.Selector.mouseup);\r
-    });\r
-\r
-  </script>\r
-  </body>\r
-</html>\r
diff --git a/examples/htdocs/favicon.ico b/examples/htdocs/favicon.ico
deleted file mode 100644 (file)
index 7a42ce2..0000000
Binary files a/examples/htdocs/favicon.ico and /dev/null differ
diff --git a/examples/htdocs/images.html b/examples/htdocs/images.html
deleted file mode 100644 (file)
index 6d4f8c8..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: Images</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//x.mkws.indexdata.com/mkws-complete.js"></script>
-    <script class="mkws-template-records" type="text/x-handlebars-template">
-      {{#each hits}}
-        <div class="{{containerClass}}">
-          <a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
-            {{#each md-thumburl}}
-              <img src="{{this}}" alt="{{../md-title}}"/>
-            {{/each}}
-            <br/>
-            {{md-title}}
-          {{#if md-title-remainder}}
-            <span>{{md-title-remainder}}</span>
-          {{/if}}
-          {{#if md-title-responsibility}}
-            <span><i>{{md-title-responsibility}}</i></span>
-          {{/if}}
-          </a>
-        </div>
-      {{/each}}
-    </script>
-    <script type="text/javascript">
-      var mkws_config = {
-        sp_auth_credentials: "mkwsimages/mkwsimages"
-      };
-    </script>
-  </head>
-  <body>
-    <div class='mkws-records' autosearch='!param!q'
-        >results will appear here</div>
-  </body>
-</html>
diff --git a/examples/htdocs/index.html b/examples/htdocs/index.html
deleted file mode 100644 (file)
index ed61a49..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1>MKWS examples</h1>
-<p>
-  List to follow ...
-</p>
-<p>
-  In the mean time see
-  <a href="http://mkws.indexdata.com/index.html#examples-using-the-widget-set"
-       >the examples from the widget-set documentation</a>
-</p>
diff --git a/examples/htdocs/intro.html b/examples/htdocs/intro.html
deleted file mode 100644 (file)
index b45c8e1..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: heading changes when search results appear</title>
-    <script type="text/javascript">
-      var mkws_config = { sp_auth_credentials: "credo/emu" };
-    </script>
-    <link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
-    <script type="text/javascript" src="tools/htdocs/jquery-1.10.0.min.js"></script>
-    <script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
-    <script type="text/javascript" src="tools/htdocs/jsnlog.min.js"></script>
-    <script type="text/javascript" src="tools/htdocs/handlebars-v2.0.0.js"></script>
-    <script type="text/javascript" src="tools/htdocs/pz2.js"></script>
-    <script type="text/javascript" src="src/mkws-handlebars.js"></script>
-    <script type="text/javascript" src="src/mkws-core.js"></script>
-    <script type="text/javascript" src="src/mkws-team.js"></script>
-    <script type="text/javascript" src="src/mkws-filter.js"></script>
-    <script type="text/javascript" src="src/mkws-widget.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-main.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-facets.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-authname.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-categories.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-log.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-record.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-wikipedia.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-builder.js"></script>
-    <script type="text/javascript" src="src/mkws-templates.js"></script>
-  </head>
-  <body>
-    <script type="text/javascript">
-     mkws.registerWidgetType('Intro', function() {
-      var that = this;
-      this.team.queue("firstrecords").subscribe(function(count) {
-       that.node.html("Results from the MKWS metasearch widget");
-      });
-     });
-    </script>
-    <div class="mkws-intro">Starting the MKWS metasearch widget</div>
-    <div class="mkws-switch"></div>
-    <div class="mkws-lang"></div>
-    <div class="mkws-search"></div>
-    <div class="mkws-results"></div>
-    <div class="mkws-targets"></div>
-    <div class="mkws-stat"></div>
-    <div class="mkws-builder"></div>
-  </body>
-</html>
diff --git a/examples/htdocs/language.html b/examples/htdocs/language.html
deleted file mode 100644 (file)
index ebe555c..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2014 Index Data ApS, http://indexdata.com" />
-    <title>MKWS demo: full configuration</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript">
-       var mkws_config = {
-               lang: "da",
-               use_service_proxy: true,
-               show_lang: true,
-               sort_default: "relevance",
-               perpage_default: 20,
-               language_Arabic: {
-                       // Navigation
-                       "Search": "بحث",
-                       "Displaying": "عرض",
-                       "to": "إلى",
-                       "of": "من",
-                       "found": "أسس",
-                       "Prev": "السابق",
-                       "Next": "التالي",
-                       // Sorting and sort-criteria
-                       "Sort by": "الترتيب حسب",
-                       "and show": "وعرض",
-                       "per page": "في كل صفحة",
-                       "relevance": "أهميتها",
-                       "title": "لقب",
-                       "newest": "أحدث",
-                       "oldest": "أقدم",
-                       // Field names
-                       "Title": "لقب",
-                       "Date": "تاريخ",
-                       "Author": "الكاتب",
-                       "URL": "URL", // Is this a universal?
-                       "Subject": "موضوع",
-                       "Location": "موقع",
-                       // Facet heading and individual facet names
-                       "Facets": "العضو الأجل",
-                       "Sources": "مصادر",
-                       "Subjects": "المواضيع",
-                       "Authors": "الكتاب",
-                       // Display switching
-                       "Records": "أهداف",
-                       "Targets": "السجلات",
-                       // Status info captions
-                       "Status info": "معلومات الحالة",
-                       "Active clients": "عميل نشط",
-                       "Retrieved records": "السجلات التي تم استردادها",
-                       // Target info table headings
-                       "Target ID": "معرف الهدف",
-                       "Hits": "الفعالية",
-                       "Diags": "التشخيص",
-                       "Records": "تسجيل",
-                       "State": "دولة",
-               }
-       };
-    </script>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div class="mkws-switch"></div>
-    <div class="mkws-lang"></div>
-    <div class="mkws-search"></div>
-    <div class="mkws-results"></div>
-    <div class="mkws-targets"></div>
-    <div class="mkws-motd">
-      <p>
-       <b>Welcome to the MasterKey Widget Set demo.</b>
-      </p>
-      <p>
-       Enter a search above to begin, or
-       <a href="http://mkws.indexdata.com/"
-          >Visit the MKWS home page to find out more</a>.
-      </p>
-    </div>
-    <div id="footer">
-      <div class="mkws-stat"></div>
-      <span>Powered by MKWS &copy; 2013-2014 <a target="_new" href="http://www.indexdata.com">Index Data</a></span>
-    </div>
-  </body>
-</html>
diff --git a/examples/htdocs/lolcat.html b/examples/htdocs/lolcat.html
deleted file mode 100644 (file)
index 727fdd7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: LOLcat demo</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript">mkws_config = { perpage_default: 1 }</script>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <script class="mkws-template-summary" type="text/x-handlebars-template">
-      <a href="#" id="{{_id}}" onclick="{{_onclick}}">
-        {{#mkws-first md-thumburl}}
-         <img src="{{this}}" alt="{{../md-title}}"/>
-        {{/mkws-first}}
-       <br/>
-      </a>
-    </script>
-  </head>
-  <body>
-    <div class='mkws-records' autosearch='cat' sort='date:0'
-       targets='pz:id=localhost:9003/flickr_api'
-       >kitteh will appear here</div>
-  </body>
-</html>
diff --git a/examples/htdocs/lowlevel.html b/examples/htdocs/lowlevel.html
deleted file mode 100644 (file)
index 74b55d2..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: low-level subcomponents</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <style type="text/css">
-      .mkws-facets div.facet {
-      float:left;
-      width: 30%;
-      margin: 0.3em;
-      }
-      .mkws-stat {
-      text-align: right;
-      }
-    </style>
-  </head>
-  <body>
-    <table width="100%" border="0">
-      <tr>
-        <td>
-          <div class="mkws-switch"></div>
-          <div class="mkws-lang"></div>
-          <div class="mkws-search"></div>
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <div style="height:500px; overflow: auto">
-            <div class="mkws-pager"></div>
-            <div class="mkws-navi"></div>
-            <div class="mkws-records"></div>
-            <div class="mkws-targets"></div>
-            <div class="mkws-ranking"></div>
-          </div>
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <div style="height:300px; overflow: hidden">
-            <div class="mkws-facets"></div>
-          </div>
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <div class="mkws-stat"></div>
-        </td>
-      </tr>
-    </table>
-  </body>
-</html>
diff --git a/examples/htdocs/mkws-widget-credo.css b/examples/htdocs/mkws-widget-credo.css
deleted file mode 100644 (file)
index eff934a..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-.mkws-credo {
-    font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Verdana, Sans-Serif;
-}
-
-.mkws-credo table {
-    width: 100%;
-    border-collapse: collapse;
-}
-
-.mkws-credo table tr.front {
-    background: #ddf3c3;
-}
-
-.mkws-credo table tr:first-child td:first-child {
-    width: 70%;
-}
-
-.mkws-credo table tr:first-child .section {
-    margin: 10px;
-    border: 1px solid #c0c0c0;
-}
-
-.mkws-credo table tr {
-    vertical-align: top;
-}
-
-.mkws-credo .front div.title {
-    font-size: 150%;
-    font-weight: bold;
-    color: white;
-    background: #666699;
-    padding: 0.25em 0.5em;
-}
-
-.mkws-credo div.title {
-    font-size: 150%;
-    font-weight: bold;
-    color: #666699;
-    background: #ddf3c3;
-    padding: 0.25em 0.5em;
-}
-
-.mkws-credo div.content {
-    background: white;
-    padding: 0.5em 1em;
-
-    // Next is needed to make this area grow to contain floated images.
-    // See http://www.quirksmode.org/css/clearing.html
-    overflow: auto;
-}
-
-.mkws-reference h1 {
-    display:none;
-}
-
-.mkws-reference img {
-    float: left;
-    margin: 0 1.5em 1em 0;
-    border: 2px solid #c0c0c0;
-    padding: 0.5em;
-}
-
-.mkws-credo .image .mkws-summary {
-    float: left;
-}
-
-.mkws-credo .image a {
-    text-decoration: none;
-}
-
-.mkws-credo hr.divider {
-    margin: 20px 1%;
-    border-top: 3px dotted #c0c0c0;
-    color: #fff;
-    background-color: #fff;
-    height: 0;
-    width: 98%;
-}
-
-.mkws-credit {
-    font-size: small;
-    text-align: right;
-}
-
-.mkws-credit::before {
-    content: "Source: ";
-    font-weight: bold;
-}
-
-.mkws-facet a {
-    text-decoration: none;
-}
-
-.mkws-facet a:hover {
-    text-decoration: underline;
-}
-
-.mkws-term {
-    clear: both;
-}
-
-.mkws-term span {
-    float: right;
-}
-
diff --git a/examples/htdocs/mkws-widget-credo.js b/examples/htdocs/mkws-widget-credo.js
deleted file mode 100644 (file)
index 0d8c3e6..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-// The Google Images database returns links like:
-//      http://images.google.com/url?q=http://eofdreams.com/fish.html&sa=U&ei=RAB-U9XNDo2Dqga1o4L4Bw&ved=0CC4Q9QEwAA&usg=AFQjCNFhRtn6GMevHbpITZ6kfx6rsHV2ow
-// This Handlebars helper avoids a pointless redirect by transforming
-// this to the URL of the underling page, in this case
-//      http://eofdreams.com/fish.html
-//
-Handlebars.registerHelper('mkws-googleurl', function(obj) {
-  if (!obj) {
-    return "obj undefined";
-  } else if (!obj[0]) {
-    return "obj[0] undefined, JSON=" + $.toJSON(obj);
-  } else {
-    return mkws.getParameterByName('q', obj[0]);
-  }
-});
-
-
-// ### This works inefficiently by having multiple teams all run the
-// same search against different sets of targets. A much better
-// approach would be run a single search, with all these panels
-// members of the same team, but picking out only the results relevant
-// to them. That will be more work.
-
-mkws.registerWidgetType('Credo', function() {
-  var that = this;
-
-  this.team.registerTemplate('CredoImage', '\
-      <div>\
-       <a href="{{mkws-googleurl md-electronic-url}}" target="_blank">\
-        {{#mkws-first md-thumburl}}\
-         <img src="{{this}}" alt="{{../md-title}}"/>\
-        {{/mkws-first}}\
-       <br/>\
-       </a>\
-       <p>{{{md-title}}}</p>\
-      </div>\
-');
-
-  // Inhibit the display of the sole facet's title.
-  this.team.registerTemplate('facetTitle-Subject', 'doo');
-
-  var s = []
-  s.push('<table>');
-
-  // Main panel: encylopaedia and images on the left, topics on the right
-  s.push('<tr class="front">');
-
-  s.push('<td class="main">');
-  s.push(section('encyclopaedia', 'Topic Page: <span class="x-mkws-title"/>',
-                 this.subwidget('Reference', { _team: 'ref', paragraphs: 1 })));
-  // The Images widget needs to be in our team so we can set its template
-  s.push(section('image', 'Images',
-                 this.subwidget('GoogleImage', { maxrecs: 3, template: 'CredoImage', target: 'google_images_js' })));
-  s.push('</td>');
-
-  s.push('<td class="side">');
-  s.push(section('topics', 'Related Topics',
-                 this.subwidget('Facet', { _team: 'main', facet: 'subject', template: 'CredoFacet' })));
-  s.push('</td>');
-
-  s.push('</tr>');
-
-  s.push('<tr><td colspan="2"><hr class="divider"/></td></tr>');
-
-  s.push(sectionRow('entries', 'News',
-                    this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news', perpage: 10 })));
-  s.push(sectionRow('articles', 'Articles',
-                    this.subwidget('Records', { _team: 'articles', targetfilter: 'categories=articles', perpage: 10 })));
-  s.push(sectionRow('books', 'Books',
-                    this.subwidget('Records', { _team: 'books', targetfilter: 'categories=books', perpage: 10 })));
-  s.push(sectionRow('news', 'Results from all targets',
-                    this.subwidget('Records', { _team: 'main' })));
-
-  s.push('</table>');
-
-  this.node.html(s.join(''));
-
-  // Fill in the titles from the query once widgets have all been prepared
-  var that = this;
-  this.team.queue("ready").subscribe(function() {
-    var query = toTitleCase(that.config.query);
-    that.log("got query '" + query + "' from team config");
-    mkws.$('.x-mkws-title').html(query);
-    mkws.$('title').html("MKWS: " + query);
-
-    // Derived from http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript
-    function toTitleCase(str) {
-      return str.replace(/\w\S*/g, function(txt) {
-        return txt.charAt(0).toUpperCase() + txt.substr(1);
-      });
-    }
-  });
-
-
-  function section(xclass, title, content) {
-    var s = [];
-    s.push('<div class="' + xclass + ' section">');
-    s.push('<div class="title">' + title + '</div>');
-    s.push('<div class="content">' + content + '</div>');
-    s.push('</div>');
-    return s.join('');
-  }
-
-  function sectionRow(xclass, title, content) {
-    var s = [];
-    s.push('<tr>');
-    s.push('<td colspan="2">');
-    s.push(section(xclass, title, content));
-    s.push('</td>');
-    s.push('</tr>');
-    return s.join('');
-  }
-});
diff --git a/examples/htdocs/mkws-widget-ru-requirejs.html b/examples/htdocs/mkws-widget-ru-requirejs.html
deleted file mode 100644 (file)
index 81fc380..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<html>
-<head>
-  <title>MKWS Reference Universe</title>
-  <link rel="stylesheet" type="text/css" href="mkws-widget-ru.css" />
-</head>
-
-<body>
-  <script src="http://requirejs.org/docs/release/2.1.14/minified/require.js" type="text/javascript"></script>
-  <script type="text/javascript">
-  require.config({
-    paths: {
-        mkws           : "//mkws.indexdata.com/mkws-complete",
-        mkws_widget_ru : "mkws-widget-ru"
-    },
-    shim : {
-        mkws : {
-          exports : "mkws"
-        },
-        mkws_widget_ru : {
-          deps    : [ "mkws" ]
-        }
-    }
-  });
-
-  require(['mkws_widget_ru'], function() { mkws.init("requirejs is done"); } );
-  </script>
-
-  <div style="max-width: 18em; margin: 1.5em 1.5em">
-    <div class="mkws-reference-universe" autosearch="sushi"></div>
-  </div>
-</body>
-</html>
diff --git a/examples/htdocs/mkws-widget-ru.css b/examples/htdocs/mkws-widget-ru.css
deleted file mode 100644 (file)
index 1f00e33..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-.mkws-reference-universe {
-  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-  background: #FCFBFA;
-  padding: 0.5em 1em 0.25em;
-  box-shadow: 0 0 2px 0 #7F8F93;
-  border-radius: 0 0 1.5em;
-  -moz-border-radius: 0 0 1.5em;
-  -webkit-border-radius: 0 0 1.5em;
-  line-height: 1.4;
-  color: #86979B;
-  background: radial-gradient(ellipse at center,  #ffffff 0%,#f8f8f8 100%);
-}
-
-h2 {
-  font-size: 100%;
-  color: #4A5456;
-  padding-bottom: .5em;
-}
-
-ul {
-  margin: 0;
-  padding: 0;
-}
-
-li {
-  margin: .95em .25em;
-  padding-top: .75em;
-  border-top: 1px dotted #BEC8CC;
-  font-size: 90%;
-  list-style: none;
-}
-
-a {
-  text-decoration: none;
-  font-weight:bold;
-  color: #2B77AF;
-}
diff --git a/examples/htdocs/mkws-widget-ru.html b/examples/htdocs/mkws-widget-ru.html
deleted file mode 100644 (file)
index 17d87c9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<html>
-  <div style="max-width: 18em; margin: 1.5em 1.5em">
-    <script src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
-    <link rel="stylesheet" type="text/css" href="mkws-widget-ru.css" />
-    <div class="mkws-reference-universe" autosearch="!param!q"></div>
-  </div>
-</html>
diff --git a/examples/htdocs/mkws-widget-ru.js b/examples/htdocs/mkws-widget-ru.js
deleted file mode 100644 (file)
index 05a5c14..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-// It is no longer necessary to include this file.
-// The Reference Universe widget is included in mkws-complete.js
diff --git a/examples/htdocs/mkws-widget-ru.readme b/examples/htdocs/mkws-widget-ru.readme
deleted file mode 100644 (file)
index 4dc8c4b..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# Embedding Reference Universe with MKWS
-
-## Quick start
-Simply paste this inline with the markup on any page: 
-
-    <script src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
-    <div class="mkws-reference-universe" autosearch="!param!q"></div>
-    
-## A bit more detail 
-
-The MasterKey Widget Set ([MKWS](http://mkws.indexdata.com/)) lets you easily embed search-enabled widgets which run in the client browser and display results from a web service. In this case, it searches Reference Universe.
-
-You need to include the main MKWS scripts. This can be inline as above or you can include it in the header or aggregate it with your application's scripts.
-
-    <script src="//mkws.indexdata.com/mkws-complete.js"></script>
-    
-You also need to tell the widget how to authenticate onto the searching service:
-
-    <script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
-
-The provided stylesheet is generic and you're encouraged to replace it entirely by styling the new elements to fit seamlessly with your content. 
-
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
-    
-Any element you give the class `mkws-reference-universe` will have is contents replaced by the top results from a search against the Reference Universe service for the current query.
-    
-    <div class="mkws-reference-universe" autosearch="!param!q"></div>
-
-### Finding the query 
-
-The `autosearch` attribute of the widget container lets it know where to find the query. There are three places it might look to find that you're searching for *water*: 
-
-* `!param!foo` indicates a GET parameter and would match `http://site.tld/search?foo=water`
-* `!path!2` will take the 2nd path component from the end of the url and would find the query in `http://site.tld/apps/search/water/mobile`
-* `!var!foo` will look for the query in a JavaScript variable named `foo` in the `window` context (ie. a top level variable)
diff --git a/examples/htdocs/mkws-widget-sru.js b/examples/htdocs/mkws-widget-sru.js
deleted file mode 100644 (file)
index b288029..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-mkws.registerWidgetType('SRU', function() {
-});
diff --git a/examples/htdocs/mkws-widget-wikicat.js b/examples/htdocs/mkws-widget-wikicat.js
deleted file mode 100644 (file)
index 8bb3901..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-mkws.registerWidgetType('wikicategories', function() {
-  $.ajax({
-    url: mkws.pazpar2_url() + "?command=wiki&query=" + this.config.autosearch,
-    context: this
-  })
-  .done(function(data) {
-    outstr = new XMLSerializer().serializeToString(data.getElementsByTagName("targetcategories").item(0));
-    this.node.html(outstr.replace("targetcategories", "ul").replace(/targetcategory/g, "li"));
-  });
-});
-
-
diff --git a/examples/htdocs/mkws-widget-wikipedia.css b/examples/htdocs/mkws-widget-wikipedia.css
deleted file mode 100644 (file)
index 3590899..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-.mkws-wikipedia,
-.mkws-reference {
-    max-width: 40em;
-    font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Verdana, Sans-Serif;
-    background: #f0f0e0;
-    padding: 0.5em 1em;
-    border: 1px solid #c0c0a0;
-    border-radius: 1em;
-    -moz-border-radius: 1em;
-    -webkit-border-radius: 1em;
-}
-
-.mkws-wikipedia h1 a,
-.mkws-reference h1 a {
-    color: #806020;
-}
-
-.mkws-wikipedia a,
-.mkws-reference a {
-    text-decoration: none;
-}
-
-.mkws-wikipedia img,
-.mkws-reference img {
-    float: right;
-    margin: 0 0 1em 2em;
-    border: 0.5em solid white;
-}
-
-.mkws-credit {
-    font-size: small;
-    text-align: right;
-}
-
-.mkws-credit::before {
-    content: "Source: ";
-    font-weight: bold;
-}
diff --git a/examples/htdocs/mkws-widget-wimp.css b/examples/htdocs/mkws-widget-wimp.css
deleted file mode 100644 (file)
index a567a9f..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-.mkws-wimp {
-  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-  background: #FCFBFA;
-  padding: 0.5em 1em 0.25em;
-  box-shadow: 0 0 2px 0 #7F8F93;
-  border-radius: 0 0 1.5em;
-  -moz-border-radius: 0 0 1.5em;
-  -webkit-border-radius: 0 0 1.5em;
-  line-height: 1.4;
-  color: #86979B;
-  background: radial-gradient(ellipse at center,  #ffffff 0%,#f8f8f8 100%);
-}
-
-h2 {
-  font-size: 100%;
-  color: #4A5456;
-  padding-bottom: .5em;
-}
-
-ul {
-  margin: 0;
-  padding: 0;
-}
-
-li {
-  margin: .95em .25em;
-  padding-top: .75em;
-  border-top: 1px dotted #BEC8CC;
-  font-size: 90%;
-  list-style: none;
-}
-
-a {
-  text-decoration: none;
-  font-weight:bold;
-  color: #2B77AF;
-}
diff --git a/examples/htdocs/mkws-widget-wimp.html b/examples/htdocs/mkws-widget-wimp.html
deleted file mode 100644 (file)
index f014cca..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<html>
-  <div style="max-width: 18em; margin: 1.5em 1.5em">
-    <script src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <script src="mkws-widget-wimp.js"></script>
-    <link rel="stylesheet" type="text/css" href="mkws-widget-wimp.css" />
-    <div class="mkws-wimp" autosearch="!param!q"></div>
-  </div>
-</html>
diff --git a/examples/htdocs/mkws-widget-wimp.js b/examples/htdocs/mkws-widget-wimp.js
deleted file mode 100644 (file)
index 89faa3d..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-var mkws_config = {
-   service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=wimp&password=wimp6363"
-};
-
-mkws.registerWidgetType('wimp', function() {
-  if (!this.config.perpage) this.config.perpage = 5;
-  if (!this.config.sort) this.config.sort = "position";
-  this.team.registerTemplate('wimp', '\
-<h2>Results from Wimp</h2>\
-<ul>\
-{{#each hits}}\
-  <li>\
-    {{#mkws-first md-electronic-url}}\
-    <a href="{{this}}">\
-    {{/mkws-first}}\
-      {{md-title}}\
-    </a>\
-  {{#if md-title-remainder}}\
-    <span>{{md-title-remainder}}</span>\
-  {{/if}}\
-  {{#if md-title-responsibility}}\
-    <span><i>{{md-title-responsibility}}</i></span>\
-  {{/if}}\
-  </li>\
-{{/each}}\
-</ul>\
-');
-
-  var that = this;
-  var template = that.team.loadTemplate(that.config.template || "wimp");
-  this.team.queue("records").subscribe(function(data) {
-    that.node.html(template(data));
-  }); 
-  that.autosearch();
-});
-
diff --git a/examples/htdocs/mobile.html b/examples/htdocs/mobile.html
deleted file mode 100644 (file)
index b2a9c4c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
-    <title>MKWS demo: mobile-screen resizing</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript">
-      var mkws_config = { responsive_design_width: 990 };
-    </script>
-    <script src="//mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div class="mkws-lang"></div>
-    <div class="mkws-search"></div>
-    <div class="mkws-results"></div>
-    <div class="mkws-targets"></div>
-    <div class="mkws-stat"></div>
-  </body>
-</html>
diff --git a/examples/htdocs/prettysimple.css b/examples/htdocs/prettysimple.css
deleted file mode 100644 (file)
index 2984f7c..0000000
+++ /dev/null
@@ -1,386 +0,0 @@
-/* General styling */
-html {
-  height: 100%;
-  margin: 0;
-}
-body {
-  display: flex;
-  align-content: space-between;
-  align-items: center;
-  flex-wrap: wrap;
-  height: 100%;
-  width: 100%;
-  max-width: 1100px;
-  margin: auto;
-  font-family: "Open Sans", sans-serif;
-}
-a {
- text-decoration: none;
- color: black;
-}
-
-/* Top level layout */
-.header {
-  width: 100%;
-  display: flex;
-  margin: .5em;
-  margin-bottom: 1em;
-}
-.mkws-switch {
-  margin-left: auto;
-}
-.main {
-  width: 100%;
-  display: flex;
-  align-items: flex-start;
-  margin: 1em;
-  margin-bottom: auto;
-}
-.forms {
-  width: 100%;
-  margin: 1em;
-}
-.mkws-facets {
-  margin-right: 66px;
-  flex: 1;
-}
-.results {
-  flex: 3;
-}
-
-/* Search form */
-/* heavily inspired by: */
-/* https://github.com/philipwalton/solved-by-flexbox/blob/master/_sass/components/_input-add-on.scss */
-.mkws-search {
-  margin-left: auto;
-  margin-bottom: 0;
-}
-.mkws-search-form {
-  display: flex;
-  margin-left: auto;
-  max-width: 30em;
-}
-.mkws-search-form .mkws-query {
-  flex: 1;
-  border-right: 0 !important;
-  border-radius: 2px 0 0 2px;
-  font-size: 1.1em;
-}
-.mkws-search-form .mkws-button {
-  border-radius: 0 2px 2px 0;
-  background-color: hsla(31, 15%, 50%, 0.1);
-  font: inherit;
-  font-weight: normal;
-}
-.mkws-search-form .mkws-query, .mkws-search-form .mkws-button {
-  border: 1px solid hsla(31, 15%, 50%, 0.25);
-  padding: 0.5em 0.75em;
-  margin: 0;
-}
-.mkws-ranking {
-  font-family: "Open Sans Light", sans-serif;
-  border-top: none;
-  border-bottom-left-radius: 5em 100%;
-  margin-top: 0;
-  margin-left: auto;
-  font-size: .9em;
-  text-align: right;
-  max-width: 25em;
-}
-.mkws-ranking select {
- font-size: 1.0em;
- font-family: "Open Sans", sans-serif;
- border: none;
- background: none;
-}
-
-/* Misc. elements */
-.mkws-lang {
-  color: gray;
-  font-family: "Open Sans Light", sans-serif;
-}
-.mkws-lang > span {
-  color: black;
-  font-family: "Open Sans", sans-serif;
-}
-.mkws-switch {
-  color: gray;
-  font-family: "Open Sans Light", sans-serif;
-}
-.mkws-switch > a {
-  color: black;
-}
-.mkws-pager {
-  width: 100%;
-}
-.mkws-current-page {
-  background: gray;
-  border-radius: 3em;
-  padding: 0 .5em;
-  color: white;
-}
-.mkws-navi {
-  margin-top: 10px;
-  width: 100%;
-  
-}
-.mkws-removable:after {
-  content: " X";
-  color: DarkRed; 
-}
-.mkws-removable:hover {
-  text-decoration: line-through;
-}
-.mkws-records {
-  width: 100%;
-}
-
-
-/* Facets */
-.mkws-facet {
-  padding-bottom: 1em;
-}
-.mkws-facet-title {
-  border-left: 5px solid #7d8187;
-  padding: .5em 10px;
-  text-transform: uppercase;
-}
-.mkws-facet:nth-child(1)>.mkws-facet-title {
-  border-color: #2980b9;
-}
-.mkws-facet:nth-child(2)>.mkws-facet-title {
-  border-color: #68a863;
-}
-.mkws-facet:nth-child(3)>.mkws-facet-title {
-  border-color: #b45b47;
-}
-
-.mkws-facet:last-child {
-  padding-bottom: initial;
-}
-.mkws-term {
-  display: flex;
-  padding-left: 15px;
-  font-size: .9em;
-}
-.mkws-term a {
-  flex: 1;
-  overflow: hidden; 
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
-.mkws-term span {
-  flex: 0 0 min-content;
-  float: right;
-  margin-left: .7em;
-}
-.mkws-stat {
-  font-family: "Open Sans Light", sans-serif;
-  text-align: right;
-  font-size: .9em;
-}
-
-
-/* Result containers */
-.mkws-summary {
-  padding: 40px 20px;
-  min-height: 120px;
-  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
-}
-.mkws-summary:last-child {
-  border: none;
-}
-.mkws-field-data {
-  min-height: 120px;
-  display: flex;
-  flex-direction: column;
-  flex-wrap: wrap;
-  align-items: flex-start;
-  align-content: flex-start;
-  justify-content: space-around;
-}
-
-/* Result fields */
-.mkws-field-data > * {
-  flex 1;
-}
-.mkws-field-date {
-  order: 1;
-  font-size: 14px;
-  color: rgba(0, 0, 0, 0.3);
-}
-.mkws-field-title {
-  order: 2;
-  font-family: "Open Sans Light", sans-serif;
-  font-size: 24px;
-  line-height: 1.2;
-  letter-spacing: -0.02em;
-  margin-bottom: 4px;
-}
-.mkws-field-title-remainder {
-  order: 3;
-  font-family: "Open Sans Light", sans-serif;
-  font-size: 12px;
-  margin-top: -4px;
-  margin-bottom: 4px;
-  overflow: hidden; 
-  text-overflow: ellipsis;
-}
-.mkws-field-description {
-  order: 4;
-  font-family: "Open Sans Light", sans-serif;
-  font-size: 18px;
-  line-height: 1.2;
-  max-height: 44px;
-  overflow: hidden;
-}
-.mkws-field-author {
-  order: 5;
-  font-weight: bold;
-  font-size: 12px;
-  letter-spacing: 0.1em;
-  text-transform: uppercase;
-}
-.mkws-field-thumb {
-  float: left;
-  margin-right: 25px;
-}
-.mkws-field-thumb > img {
-  width: 140px;
-  height: 120px;
-  object-fit: contain;
-}
-.mkws-details {
-  margin-top: 25px;
-}
-.mkws-prev, .mkws-next {
-  text-transform: uppercase;
-  font-size: .75em;
-} 
-
-
-/* Responsive */
-@media screen and (max-width: 1020px) {
-  .mkws-facets {
-    margin-right: 30px;
-  }
-}
-@media screen and (max-width: 900px) {
-  .mkws-pager {
-    margin: 0;
-  }
-  .mkws-pager > div {
-    margin-top: 10px;
-  }
-  .main {
-    flex-wrap: wrap;
-  }
-  .mkws-facets {
-    order: 99;
-    width: 100%;
-    margin-top: 40px;
-    margin-right: 0;
-    flex: none;
-  }
-  .results {
-    width: 100%;
-    order 1;
-    flex: none;
-  }
-  .mkws-ranking {
-    width: 100%;
-  }
-  .mkws-search {
-    width: 100%;
-  }
-  .mkws-summary {
-    min-height: 60px;
-    padding: 20px 10px;
-  }
-  .mkws-field-data {
-    min-height: 60px;
-  }
-  .mkws-field-date {
-    font-size: 12px;
-  }
-  .mkws-field-title {
-    font-size: 18px;
-  }
-  .mkws-field-description {
-    font-size: 14px;
-    max-height: 34px;
-  }
-  .mkws-field-author {
-    font-size: 11px;
-  }
-  .mkws-field-thumb {
-    order: -1;
-    margin-right: 10px;
-  }
-  .mkws-field-thumb > img {
-    width: 70px;
-    height: 60px;
-    object-fit: contain;
-  }
-  .mkws-pager > div {
-    float: none !important;
-  }
-}
-
-/* Font (from mozilla.org) */
-@font-face{
-  font-family:'Open Sans Light';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.svg#OpenSansLight) format('svg');
-  font-weight:400;
-  font-style:normal
-}
-
-@font-face{
-  font-family:'Open Sans Light';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.svg#OpenSansRegular) format('svg');
-  font-weight:700;
-  font-style:normal
-}
-
-@font-face{
-  font-family:'Open Sans Light';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.svg#OpenSansRegular) format('svg');
-  font-weight:400;
-  font-style:italic
-}
-
-@font-face{
-  font-family:'Open Sans';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.svg#OpenSansRegular) format('svg');
-  font-weight:400;
-  font-style:normal
-}
-
-@font-face{
-  font-family:'Open Sans';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.svg#OpenSansSemibold) format('svg');
-  font-weight:700;
-  font-style:normal
-}
-
-@font-face{
-  font-family:'Open Sans';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.svg#OpenSansItalic) format('svg');
-  font-weight:400;
-  font-style:italic
-}
-
-@font-face{
-  font-family:'Open Sans Extra Bold';
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.eot);
-  src:url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.eot?#iefix) format('embedded-opentype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.woff) format('woff'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.ttf) format('truetype'),url(//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.svg#OpenSansSemibold) format('svg');
-  font-weight:700;
-  font-style:normal
-}
-
diff --git a/examples/htdocs/prettysimple.html b/examples/htdocs/prettysimple.html
deleted file mode 100644 (file)
index 3891f6d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <title>MKWS demo</title>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <link rel="stylesheet" href="prettysimple.css" />
-  </head>
-  <body>
-    <div class="header">
-      <div class="mkws-lang"></div>
-      <div class="mkws-switch"></div>
-    </div>
-    <div class="forms">
-      <div class="mkws-search"></div>
-      <div class="mkws-ranking"></div>
-    </div>
-    <div class="main">
-      <div class="mkws-facets"></div>
-      <div class="results">
-        <div class="mkws-pager"></div>
-        <div class="mkws-navi"></div>
-        <div class="mkws-records"></div>
-        <div class="mkws-targets"></div>
-        <div class="mkws-stat"></div>
-      </div>
-    </div>
-  </body>
-</html>
-
-
diff --git a/examples/htdocs/ref.html b/examples/htdocs/ref.html
deleted file mode 100644 (file)
index f74556c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: Compound reference widget</title>
-    <link rel="stylesheet" type="text/css" href="mkws-widget-credo.css" />
-    <script type="text/javascript">
-      var mkws_config = { sp_auth_credentials: "credo/emu" };
-    </script>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <script type="text/javascript" src="mkws-widget-credo.js"></script>
-  </head>
-  <body>
-    <div class='mkws-credo' autosearch='!param!q'></div>
-  </body>
-</html>
diff --git a/examples/htdocs/reference.html b/examples/htdocs/reference.html
deleted file mode 100644 (file)
index 3cf09a1..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: Reference Universe widget</title>
-    <link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />
-    <script type="text/javascript">
-      var mkws_config = { service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest" };
-    </script>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div class='mkws-reference' autosearch='!param!q' sentences='1'>result will appear here</div>
-  </body>
-</html>
diff --git a/examples/htdocs/robots.txt b/examples/htdocs/robots.txt
deleted file mode 100644 (file)
index ed81295..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# Copyright (c) 2014 Index Data ApS. http://indexdata.com
-
-User-agent: *
-Disallow: /service-proxy
-
diff --git a/examples/htdocs/simple.html b/examples/htdocs/simple.html
deleted file mode 100644 (file)
index 99d8e3a..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo client</title>
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <link rel="stylesheet" href="//mkws.indexdata.com/mkws.css" />
-    <link rel="stylesheet" href="custom.css" />
-  </head>
-  <body>
-    <div class="mkws-switch"></div>
-    <div class="mkws-lang"></div>
-    <div class="mkws-progress"></div>
-    <div class="mkws-search"></div>
-    <div class="mkws-results"></div>
-    <div class="mkws-targets"></div>
-    <div class="mkws-stat"></div>
-  </body>
-</html>
diff --git a/examples/htdocs/stateful.html b/examples/htdocs/stateful.html
deleted file mode 100644 (file)
index 29eba86..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo client</title>
-    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-    <style>.searchbox { float: right; }</style>
-  </head>
-  <body>
-    <div class="mkws-switch"></div>
-    <div class="mkws-lang"></div>
-    <form>
-      <input type="text" name="q" class="searchbox"/>
-    </form>
-    <div class="mkws-results" autosearch="!param!q"></div>
-    <div class="mkws-targets"></div>
-    <div class="mkws-stat"></div>
-    <div class="mkws-builder"></div>
-  </body>
-</html>
diff --git a/examples/htdocs/surlyauto.html b/examples/htdocs/surlyauto.html
deleted file mode 100644 (file)
index a2711cb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: Multiple autosearching widgets get their own teams</title>
-    <link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />
-    <script type="text/javascript">
-      var mkws_config = { service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy-testauth" };
-    </script>
-    <!-- <script type="text/javascript" src="//mkws.local/mkws&#45;complete.js"></script> -->
-    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div class='mkws-reference' autosearch='one' sentences='1'>result will appear here</div>
-    <div class='mkws-reference' autosearch='two' sentences='1'>result will appear here</div>
-    <div class='mkws-reference' autosearch='three' sentences='1'>result will appear here</div>
-    <div class='mkws-reference' sentences='1'>result will appear here</div>
-  </body>
-</html>
diff --git a/examples/htdocs/table.html b/examples/htdocs/table.html
deleted file mode 100644 (file)
index 2f1c31c..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<html>
-  <head>
-    <style type="text/css">
-      body  { background: white }
-      table { background: pink;   margin: 20px;  border: 5px solid red; padding: 10px; }
-      tr    { background: green;  margin: 200px; border: 5px solid red; padding: 100px; }
-      td    { background: yellow; margin: 200px; border: 5px solid red; padding: 10px; }
-      p     { background: cyan;   margin: 20px;  border: 5px solid red; padding: 10px; }
-    </style>
-  </head>
-  <body>
-    <table>
-      <tr>
-       <td><div>Top left</div></td>
-       <td><div>Top right</div></td>
-      </tr>
-      <tr>
-       <td><div>Bottom left</div></td>
-       <td><div>Bottom right</div></td>
-      </tr>
-    </table>
-    <p>This is a paragraph</p>
-  </body>
-</html>
diff --git a/examples/htdocs/tester-wiki.html b/examples/htdocs/tester-wiki.html
deleted file mode 100644 (file)
index 40b5364..0000000
+++ /dev/null
@@ -1,391 +0,0 @@
-<!doctype html>
-<html>
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>MKWS demo: Reference & Credo, and popup widget, development</title>
-<link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
-<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css" />
-<link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />
-<link rel="stylesheet" type="text/css" href="mkws-widget-credo.css" />
-
-<script type="text/javascript">
-  var mkws_config = {
-    sp_auth_url: "http://mkwsex.local/service-proxy/?command=auth&action=login&username=mkctest&password=mkctestallcon",
-    pazpar2_url: "http://mkwsex.local/service-proxy/"
-  };
-</script>
-
-<script type="text/javascript" src="tools/htdocs/jquery-1.10.0.min.js"></script>
-<script type="text/javascript" src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
-
-<script type="text/javascript" src="tools/htdocs/pz2.js"></script>
-<script type="text/javascript" src="tools/htdocs/handlebars-v2.0.0.js"></script>
-<script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
-<script type="text/javascript" src="tools/htdocs/jsnlog.min.js"></script>
-
-<script type="text/javascript" src="src/mkws-handlebars.js"></script>
-<script type="text/javascript" src="src/mkws-core.js"></script>
-<script type="text/javascript" src="src/mkws-team.js"></script>
-<script type="text/javascript" src="src/mkws-filter.js"></script>
-<script type="text/javascript" src="src/mkws-widget.js"></script>
-<script type="text/javascript" src="src/mkws-widget-main.js"></script>
-<script type="text/javascript" src="src/mkws-widget-facets.js"></script>
-<script type="text/javascript" src="src/mkws-widget-authname.js"></script>
-<script type="text/javascript" src="src/mkws-widget-categories.js"></script>
-<script type="text/javascript" src="src/mkws-widget-log.js"></script>
-<script type="text/javascript" src="src/mkws-widget-record.js"></script>
-<script type="text/javascript" src="src/mkws-widget-wikipedia.js"></script>
-<script type="text/javascript" src="src/mkws-widget-builder.js"></script>
-<script type="text/javascript" src="src/mkws-templates.js"></script>
-<script type="text/javascript" src="src/mkws-popup.js"></script>
-
-<script type="text/javascript" src="mkws-widget-wikicat.js"></script>
-
-<style>
-.dialog > textarea {
-  height: 100%;
-  width: 100%;
-}
-html {
-  margin: 0;
-  height: 100%;
-}
-body {
-  background-color: #bbbbbb;
-  margin: 0;
-  padding: 0;
-  display: flex;
-  flex-direction: column;
-  height: 100%;
-}
-header {
-  font-size: 1.3em;
-}
-header button, #note > input {
-  margin-left: 1em;
-  border-radius: 4px;
-  background-color: #4368a1;
-  color: #dbe9ff;
-  font: inherit;
-  font-weight: normal;
-  border: 1px solid #7492c3;
-  padding: 0.15em 0.25em;
-}
-header button:hover, header button:active, header button:focus {
-  background-color: #2f5591;
-}
-#top-bar, #current-bar, #note {
-  display: flex;
-  flex-wrap: wrap;
-  align-items: center;
-  justify-content: space-between;
-}
-#top-bar {
-  background-color: #002868;
-  color: white;
-}
-#current-bar {
-  background-color: #54d8a8;
-  color: #002868;
-}
-#note {
-  width: 100%;
-  padding: .5em;
-}
-#note > input {
-  flex: 1;
-  background-color: #7de3be;
-  border-color: #7ed6b6;
-  color: #002868;
-}
-#maybe {
-  background-color: #F0AD4E;
-  border-color: #EEA236;
-  color: #664009;
-  color: white;
-}
-#maybe:hover, #maybe:active, #maybe:focus {
-  background-color: #EC971F;
-  border-color: #D58512;
-}
-#yes {
-  background-color: #5CB85C;
-  border-color: #4CAE4C;
-  color: #214d21;
-  color: white;
-}
-#yes:hover, #yes:focus, #yes:active {
-  background-color: #449D44;
-  border-color: #398439;
-}
-#no {
-  background-color: #D9534F;
-  border-color: #D43F3A;
-  color: #4f1311;
-  color: white;
-}
-#no:hover, #no:focus, #no:active {
-  background-color: #C9302C;
-  border-color: #AC2925;
-}
-#query {
-  font-weight: bold;
-  font-size: 110%;
-}
-#settings, #judiciary {
-  padding: .5em;
-  display: flex;
-  align-items: center;
-}
-#results, #query-info {
-  padding: .5em;
-  display: flex;
-  text-align: right;
-  align-items: center;
-  justify-content: flex-end;
-}
-#count {
-  font-size: 120%;
-}
-#test-area {
-  flex: 1;
-  padding: 2em;
-  display: flex;
-  justify-content: center;
-  overflow: auto;
-}
-#test-subject {
-  margin: auto;
-}
-#results-table {
-  flex: 1;
-  padding: 1em;
-  display: flex;
-  justify-content: center;
-}
-#results-table table {
-  border-collapse: collapse;
-  border-spacing: 0;
-}
-#results-table td, #results-table th {
-  padding: .25em 1.25em;
-  font-size: .9em;
-}
-#results-table tr:first-child {
-  border-bottom: 1px solid black;
-}
-#results-table tr {
-  border-bottom: 1px dotted black;
-}
-#results-table tr:last-child {
-  border-bottom: none;
-}
-  
-</style>
-
-</head>
-
-<body>
-<header>
-  <div id="top-bar">
-    <span id="settings">
-      Settings:
-      <button id="widget-markup-button">Widget</button>
-      <button id="mkws-config-button">MKWS config</button>
-      <button id="queries-button">Queries</button>
-    </span>
-    <span id="results">
-      Results:
-      <button id="results-table-button">Table</button>
-      <button id="results-csv-button">| delimited</button>
-    </span>
-  </div>
-</header>
-
-<header id="current-bar">
-  <span id="judiciary">
-    Relevant to query <span id="query"></span>?
-    <button id="yes" class="judgement">Yes</button>
-    <button id="no" class="judgement">No</button>
-    <button id="maybe" class="judgement">Maybe</button>
-  </span>
-  <span id="query-info">
-    <span id="count"></span>
-  </span>
-  <span id="note">
-    Note: <input type="text"></input>
-  </span>
-</header>
-
-<div id="widget-markup" class="dialog" title="Widget markup">
-  <textarea></textarea>
-</div>
-<div id="mkws-config" class="dialog" title="MKWS configuration">
-  <textarea></textarea>
-</div>
-<div id="queries" class="dialog" title="Queries">
-  <textarea></textarea>
-</div>
-<div id="results-csv" class="dialog" title="| delimited results">
-  <textarea readonly></textarea>
-</div>
-<div id="results-table" class="dialog" title="Results as table">
-  <table></table>
-</div>
-
-<div id="test-area">
-  <div id="test-subject"></div>
-</div>
-
-<script>
-(function () { // wrapper
-// Initial data
-this.queries = ["sushi", "wurst", "berlin", "hammer", "bristol", "copenhagen", "tea", "latte"];
-this.widgetMarkup = '<div class="mkws-reference" autosearch="{{query}}">Loading..</div>';
-if (localStorage.getItem('mkwstest-queries')) {
-  this.queries = JSON.parse(localStorage.getItem('mkwstest-queries'));
-}
-if (localStorage.getItem('mkwstest-widget-markup')) {
-  this.widgetMarkup = localStorage.getItem('mkwstest-widget-markup');
-}
-if (localStorage.getItem('mkwstest-mkws-config')) {
-  mkws_config = JSON.parse(localStorage.getItem('mkwstest-mkws-config'));
-}
-$("#queries > textarea").html(this.queries.join("\n"));
-$("#widget-markup > textarea").html(this.widgetMarkup);
-$("#mkws-config > textarea").html(JSON.stringify(mkws_config));
-mkws.setMkwsConfig(mkws_config);
-mkws.authenticated = false;
-mkws.authenticating = false;
-
-this.results = {};
-var next = 0;
-if (localStorage.getItem('mkwstest-results')) {
-  this.results = JSON.parse(localStorage.getItem('mkwstest-results'));
-}
-if (localStorage.getItem('mkwstest-next') !== null) {
-  next = parseInt(localStorage.getItem('mkwstest-next'));
-}
-
-var context = this;
-
-var showNext = function () {
-  if (next <  this.queries.length) {
-    $('#note > input').val("");
-    $('#test-subject').html(this.widgetMarkup.replace("{{query}}", this.queries[next]));
-    $('#query').html('"' + this.queries[next] + '"');
-    localStorage.setItem("mkwstest-next", next);
-    next++;
-    $('#count').html(next + " / " + this.queries.length);
-    mkws.init('#test-subject');
-  } else {
-    $("#results-table").dialog("open");
-  }
-} 
-var startEval = function () {
-  $(".dialog").dialog("close");
-  next = 0;
-  context.results = {};
-  showNext();
-}
-var judge = function (e) {
-  var query = $('#test-subject > div').attr('autosearch');
-  context.results[query] = {judgement: $(this).html(), note: $("#note > input").val() || ""};
-  localStorage.setItem("mkwstest-results", JSON.stringify(context.results));
-  showNext();
-}
-
-// Set up dialogs
-$(".dialog").dialog({
-  autoOpen: false,
-  height: 600,
-  width: 600,
-  modal: true,
-  open: function(event, ui) {
-    $(this).parent().css('position', 'fixed');
-  }
-});
-
-// Markup dialog
-var updateMarkup = function () {
-  context.widgetMarkup = $("#widget-markup > textarea").val();
-  localStorage.setItem("mkwstest-widget-markup", context.widgetMarkup);
-  startEval();
-}
-$("#widget-markup-button").click(function () {
-  $("#widget-markup").dialog("open");
-});
-$("#widget-markup").dialog("option", "buttons", [
-  {text: "Start new evaluation", click: updateMarkup},
-  {text: "Cancel", click: function() { $(this).dialog("close"); }}   
-]);
-
-// MKWS config dialog
-var updateConfig = function () {
-  mkws.setMkwsConfig(JSON.parse($("#mkws-config > textarea").val()));
-  mkws.authenticated = false;
-  mkws.authenticating = false;
-  localStorage.setItem("mkwstest-mkws-config", $("#mkws-config > textarea").val());
-  startEval();
-}
-$("#mkws-config-button").click(function () {
-  $("#mkws-config").dialog("open");
-});
-$("#mkws-config").dialog("option", "buttons", [
-  {text: "Start new evaluation", click: updateConfig},
-  {text: "Cancel", click: function() { $(this).dialog("close"); }}   
-]);
-
-// Queries dialog
-var updateQueries = function () {
-  context.queries = $("#queries > textarea").val().split("\n");
-  localStorage.setItem("mkwstest-queries", JSON.stringify(context.queries));
-  startEval();
-}
-$("#queries-button").click(function () {
-  $("#queries").dialog("open");
-});
-$("#queries").dialog("option", "buttons", [
-  {text: "Start new evaluation", click: updateQueries},
-  {text: "Cancel", click: function() { $(this).dialog("close"); }}   
-]);
-
-// Results dialogs
-$("#results-table-button").click(function () {
-  $("#results-table").dialog("open");
-});
-$("#results-csv-button").click(function () {
-  $("#results-csv").dialog("open");
-});
-$("#results-table").dialog("option", "open", function () {
-  var html = "<tr><th>Query</th><th>Relevant?</th><th>Note</th><tr>";
-  for (var i = 0; i < context.queries.length; i++) {
-    var q = context.queries[i];
-    var r = context.results;
-    if (r[q]) {
-      html += "<tr><td>" + q + "</td><td>" + r[q].judgement + "</td><td>" + r[q].note + "</td></tr>\n";
-    }
-  } 
-  $("#results-table > table").html(html);
-});
-$("#results-csv").dialog("option", "open", function () {
-  var csv = "Query|Relevant?|Note\n";
-  for (var i = 0; i < context.queries.length; i++) {
-    var q = context.queries[i];
-    var r = context.results;
-    if (r[q]) {
-      csv += [q, r[q].judgement, r[q].note].join("|") + "\n";
-    }
-  } 
-  $("#results-csv > textarea").html(csv);
-});
-
-$('button.judgement').click(judge);
-showNext();
-})();// wrapper
-</script>
-
-</body>
-</html>
-
diff --git a/examples/htdocs/tester.html b/examples/htdocs/tester.html
deleted file mode 100644 (file)
index d94988c..0000000
+++ /dev/null
@@ -1,393 +0,0 @@
-<!doctype html>
-<html>
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>MKWS demo: Reference & Credo, and popup widget, development</title>
-<link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
-<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css" />
-<link rel="stylesheet" type="text/css" href="mkws-widget-wikipedia.css" />
-<link rel="stylesheet" type="text/css" href="mkws-widget-credo.css" />
-
-<script type="text/javascript">
-  var mkws_config = {
-    // target: 'wikimedia_wikipedia_single_result',
-    sp_auth_credentials: "mkwstest/mkwstest"
-  };
-</script>
-
-<script type="text/javascript" src="tools/htdocs/jquery-1.10.0.min.js"></script>
-<script type="text/javascript" src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
-
-<script type="text/javascript" src="tools/htdocs/pz2.js"></script>
-<script type="text/javascript" src="tools/htdocs/handlebars-v2.0.0.js"></script>
-<script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
-<script type="text/javascript" src="tools/htdocs/jsnlog.min.js"></script>
-
-<script type="text/javascript" src="src/mkws-handlebars.js"></script>
-<script type="text/javascript" src="src/mkws-core.js"></script>
-<script type="text/javascript" src="src/mkws-team.js"></script>
-<script type="text/javascript" src="src/mkws-filter.js"></script>
-<script type="text/javascript" src="src/mkws-widget.js"></script>
-<script type="text/javascript" src="src/mkws-widget-main.js"></script>
-<script type="text/javascript" src="src/mkws-widget-facets.js"></script>
-<script type="text/javascript" src="src/mkws-widget-authname.js"></script>
-<script type="text/javascript" src="src/mkws-widget-categories.js"></script>
-<script type="text/javascript" src="src/mkws-widget-log.js"></script>
-<script type="text/javascript" src="src/mkws-widget-record.js"></script>
-<script type="text/javascript" src="src/mkws-widget-wikipedia.js"></script>
-<script type="text/javascript" src="src/mkws-widget-builder.js"></script>
-<script type="text/javascript" src="src/mkws-templates.js"></script>
-<script type="text/javascript" src="src/mkws-popup.js"></script>
-
-<script type="text/javascript" src="mkws-widget-credo.js"></script>
-
-<style>
-.dialog > textarea {
-  height: 100%;
-  width: 100%;
-}
-html {
-  margin: 0;
-  height: 100%;
-}
-body {
-  background-color: #bbbbbb;
-  margin: 0;
-  padding: 0;
-  display: flex;
-  flex-direction: column;
-  height: 100%;
-}
-header {
-  font-size: 1.3em;
-}
-header button, #note > input {
-  margin-left: 1em;
-  border-radius: 4px;
-  background-color: #4368a1;
-  color: #dbe9ff;
-  font: inherit;
-  font-weight: normal;
-  border: 1px solid #7492c3;
-  padding: 0.15em 0.25em;
-}
-header button:hover, header button:active, header button:focus {
-  background-color: #2f5591;
-}
-#top-bar, #current-bar, #note {
-  display: flex;
-  flex-wrap: wrap;
-  align-items: center;
-  justify-content: space-between;
-}
-#top-bar {
-  background-color: #002868;
-  color: white;
-}
-#current-bar {
-  background-color: #54d8a8;
-  color: #002868;
-}
-#note {
-  width: 100%;
-  padding: .5em;
-}
-#note > input {
-  flex: 1;
-  background-color: #7de3be;
-  border-color: #7ed6b6;
-  color: #002868;
-}
-#maybe {
-  background-color: #F0AD4E;
-  border-color: #EEA236;
-  color: #664009;
-  color: white;
-}
-#maybe:hover, #maybe:active, #maybe:focus {
-  background-color: #EC971F;
-  border-color: #D58512;
-}
-#yes {
-  background-color: #5CB85C;
-  border-color: #4CAE4C;
-  color: #214d21;
-  color: white;
-}
-#yes:hover, #yes:focus, #yes:active {
-  background-color: #449D44;
-  border-color: #398439;
-}
-#no {
-  background-color: #D9534F;
-  border-color: #D43F3A;
-  color: #4f1311;
-  color: white;
-}
-#no:hover, #no:focus, #no:active {
-  background-color: #C9302C;
-  border-color: #AC2925;
-}
-#query {
-  font-weight: bold;
-  font-size: 110%;
-}
-#settings, #judiciary {
-  padding: .5em;
-  display: flex;
-  align-items: center;
-}
-#results, #query-info {
-  padding: .5em;
-  display: flex;
-  text-align: right;
-  align-items: center;
-  justify-content: flex-end;
-}
-#count {
-  font-size: 120%;
-}
-#test-area {
-  flex: 1;
-  padding: 2em;
-  display: flex;
-  justify-content: center;
-  overflow: auto;
-}
-#test-subject {
-  margin: auto;
-}
-#results-table {
-  flex: 1;
-  padding: 1em;
-  display: flex;
-  justify-content: center;
-}
-#results-table table {
-  border-collapse: collapse;
-  border-spacing: 0;
-}
-#results-table td, #results-table th {
-  padding: .25em 1.25em;
-  font-size: .9em;
-}
-#results-table tr:first-child {
-  border-bottom: 1px solid black;
-}
-#results-table tr {
-  border-bottom: 1px dotted black;
-}
-#results-table tr:last-child {
-  border-bottom: none;
-}
-  
-</style>
-
-</head>
-
-<body>
-<header>
-  <div id="top-bar">
-    <span id="settings">
-      Settings:
-      <button id="widget-markup-button">Widget</button>
-      <button id="mkws-config-button">MKWS config</button>
-      <button id="queries-button">Queries</button>
-    </span>
-    <span id="results">
-      Results:
-      <button id="results-table-button">Table</button>
-      <button id="results-csv-button">| delimited</button>
-    </span>
-  </div>
-</header>
-
-<header id="current-bar">
-  <span id="judiciary">
-    Relevant to query <span id="query"></span>?
-    <button id="yes" class="judgement">Yes</button>
-    <button id="no" class="judgement">No</button>
-    <button id="maybe" class="judgement">Maybe</button>
-  </span>
-  <span id="query-info">
-    <span id="count"></span>
-  </span>
-  <span id="note">
-    Note: <input type="text"></input>
-  </span>
-</header>
-
-<div id="widget-markup" class="dialog" title="Widget markup">
-  <textarea></textarea>
-</div>
-<div id="mkws-config" class="dialog" title="MKWS configuration">
-  <textarea></textarea>
-</div>
-<div id="queries" class="dialog" title="Queries">
-  <textarea></textarea>
-</div>
-<div id="results-csv" class="dialog" title="| delimited results">
-  <textarea readonly></textarea>
-</div>
-<div id="results-table" class="dialog" title="Results as table">
-  <table></table>
-</div>
-
-<div id="test-area">
-  <div id="test-subject"></div>
-</div>
-
-<script>
-(function () { // wrapper
-// Initial data
-this.queries = ["sushi", "wurst", "tea", "latte"];
-this.widgetMarkup = '<div class="mkws-reference" autosearch="{{query}}">Loading..</div>';
-if (localStorage.getItem('mkwstest-queries')) {
-  this.queries = JSON.parse(localStorage.getItem('mkwstest-queries'));
-}
-if (localStorage.getItem('mkwstest-widget-markup')) {
-  this.widgetMarkup = localStorage.getItem('mkwstest-widget-markup');
-}
-if (localStorage.getItem('mkwstest-mkws-config')) {
-  mkws_config = JSON.parse(localStorage.getItem('mkwstest-mkws-config'));
-}
-$("#queries > textarea").html(this.queries.join("\n"));
-$("#widget-markup > textarea").html(this.widgetMarkup);
-$("#mkws-config > textarea").html(JSON.stringify(mkws_config));
-mkws.setMkwsConfig(mkws_config);
-mkws.authenticated = false;
-mkws.authenticating = false;
-
-this.results = {};
-var next = 0;
-if (localStorage.getItem('mkwstest-results')) {
-  this.results = JSON.parse(localStorage.getItem('mkwstest-results'));
-}
-if (localStorage.getItem('mkwstest-next') !== null) {
-  next = parseInt(localStorage.getItem('mkwstest-next'));
-}
-
-var context = this;
-
-var showNext = function () {
-  if (next <  this.queries.length) {
-    $('#note > input').val("");
-    $('#test-subject').html(this.widgetMarkup.replace("{{query}}", this.queries[next]));
-    $('#query').html('"' + this.queries[next] + '"');
-    localStorage.setItem("mkwstest-next", next);
-    next++;
-    $('#count').html(next + " / " + this.queries.length);
-    mkws.init('#test-subject');
-  } else {
-    $("#results-table").dialog("open");
-  }
-} 
-var startEval = function () {
-  $(".dialog").dialog("close");
-  next = 0;
-  context.results = {};
-  showNext();
-}
-var judge = function (e) {
-  var query = $('#test-subject > div').attr('autosearch');
-  context.results[query] = {judgement: $(this).html(), note: $("#note > input").val() || ""};
-  localStorage.setItem("mkwstest-results", JSON.stringify(context.results));
-  showNext();
-}
-
-// Set up dialogs
-$(".dialog").dialog({
-  autoOpen: false,
-  height: 600,
-  width: 600,
-  modal: true,
-  open: function(event, ui) {
-    $(this).parent().css('position', 'fixed');
-  }
-});
-
-// Markup dialog
-var updateMarkup = function () {
-  context.widgetMarkup = $("#widget-markup > textarea").val();
-  localStorage.setItem("mkwstest-widget-markup", context.widgetMarkup);
-  startEval();
-}
-$("#widget-markup-button").click(function () {
-  $("#widget-markup").dialog("open");
-});
-$("#widget-markup").dialog("option", "buttons", [
-  {text: "Start new evaluation", click: updateMarkup},
-  {text: "Cancel", click: function() { $(this).dialog("close"); }}   
-]);
-
-// MKWS config dialog
-var updateConfig = function () {
-  mkws.setMkwsConfig(JSON.parse($("#mkws-config > textarea").val()));
-  mkws.authenticated = false;
-  mkws.authenticating = false;
-  localStorage.setItem("mkwstest-mkws-config", $("#mkws-config > textarea").val());
-  startEval();
-}
-$("#mkws-config-button").click(function () {
-  $("#mkws-config").dialog("open");
-});
-$("#mkws-config").dialog("option", "buttons", [
-  {text: "Start new evaluation", click: updateConfig},
-  {text: "Cancel", click: function() { $(this).dialog("close"); }}   
-]);
-
-// Queries dialog
-var updateQueries = function () {
-  context.queries = $("#queries > textarea").val().split("\n");
-  // ignore empty query values
-  context.queries = $.grep(context.queries, function (query, index) { return query.match(/^\s*\S+/) } );
-  localStorage.setItem("mkwstest-queries", JSON.stringify(context.queries));
-  startEval();
-}
-$("#queries-button").click(function () {
-  $("#queries").dialog("open");
-});
-$("#queries").dialog("option", "buttons", [
-  {text: "Start new evaluation", click: updateQueries},
-  {text: "Cancel", click: function() { $(this).dialog("close"); }}   
-]);
-
-// Results dialogs
-$("#results-table-button").click(function () {
-  $("#results-table").dialog("open");
-});
-$("#results-csv-button").click(function () {
-  $("#results-csv").dialog("open");
-});
-$("#results-table").dialog("option", "open", function () {
-  var html = "<tr><th>Query</th><th>Relevant?</th><th>Note</th><tr>";
-  for (var i = 0; i < context.queries.length; i++) {
-    var q = context.queries[i];
-    var r = context.results;
-    if (r[q]) {
-      html += "<tr><td>" + q + "</td><td>" + r[q].judgement + "</td><td>" + r[q].note + "</td></tr>\n";
-    }
-  } 
-  $("#results-table > table").html(html);
-});
-$("#results-csv").dialog("option", "open", function () {
-  var csv = "Query|Relevant?|Note\n";
-  for (var i = 0; i < context.queries.length; i++) {
-    var q = context.queries[i];
-    var r = context.results;
-    if (r[q]) {
-      csv += [q, r[q].judgement, r[q].note].join("|") + "\n";
-    }
-  } 
-  $("#results-csv > textarea").html(csv);
-});
-
-$('button.judgement').click(judge);
-showNext();
-})();// wrapper
-</script>
-
-</body>
-</html>
-
diff --git a/examples/htdocs/topic.css b/examples/htdocs/topic.css
deleted file mode 100644 (file)
index 9e0e181..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-body {
-  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 
-  background: radial-gradient(ellipse at center,  #ffffff 0%,#f8f8f8 100%);
-  font-weight: 300;
-}
-b, strong {
-  font-weight: 400; 
-}
-.panel {
-  border: none;
-  background: white;
-  padding: 1em .75em;
-  border-radius: 3px;
-  -moz-border-radius: 3px;
-  -webkit-border-radius: 3px;
-  color: #76868A;
-  box-shadow: 0 0 2px rgba(0, 0, 0, 0.09);
-  margin-bottom: 2em;
-}
-
-.panel-default > .panel-heading {
-  background-image: none; 
-  border: none;
-  background-color: white;
-}
-
-.panel-heading {
-  padding: 0.5em 15px 0;
-}
-
-.panel-title {
-  font-size: 130%;
-  color: #4A5456;
-}
-
-.panel-body {
-  padding: 10px 15px; 
-}
-
-.mkws-facet-title {
-  font-style: italic;
-  font-weight: 400;
-}
-  .mkws-term {
-    padding: .1em 0;
-  }
-  .mkws-term a {
-    padding-right: .5em; 
-    font-weight: 400;
-  }
-
-.mkws-summary {
-  margin: .5em 0;
-  line-height: 1.35;
-  min-height: 60px;
-}
-.articles .mkws-summary, .alltargets .mkws-summary {
-  min-height: 0;
-}
-.articles .mkws-field-thumb, .alltargets .mkws-field-thumb {
-  display: none;
-}
-.mkws-summary:last-child {
-  padding-bottom: 0;
-}
-  
-.container .jumbotron {
-  background: none;
-  padding: 0 2em 0 0;
-  box-shadow: none;
-  color: black;
-}  
-  .jumbotron .mkws-summary {
-    line-height: 1.5;  
-  }
-  .jumbotron p{
-    font-size: 150%; 
-  }
-  .mkws-credit {
-    font-size: 125% !important;
-    font-style: italic;
-  }
-  
-.mkws-google-image .mkws-summary {
-  padding: 0;
-  font-weight: 400;
-}
-  .mkws-google-image img {
-    max-width: 100%;
-    max-height: 180px;
-    padding: 1em 0 .5em;
-  }
-.list-group-item {
-  padding: 10px 15px !important;
-}
-.list-group {
-  box-shadow: none;
-  -webkit-box-shadow: none;
-}
-
-/* Fields */
-.mkws-field-thumb {
-  height: 60px;
-  width: 80px;
-  overflow: hidden;
-  margin-right: 1em;
-  float: left;
-}
-.mkws-field-thumb > img {
-  height: 60px;
-  max-width: 80px;
-} 
-.mkws-field-description {
-  overflow: hidden; 
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
-
-@media screen and (min-width:700px) {
-  .multicol {
-    column-count: 2;
-    column-gap: 20px;
-    -moz-column-count: 2;
-    -moz-column-gap: 20px;
-    -webkit-column-count: 2;
-    -webkit-column-gap: 20px;
-  }
-}
-@media screen and (min-width:900px) {
-  .multicol {
-    column-count: 3;
-    column-gap: 20px;
-    -moz-column-count: 3;
-    -moz-column-gap: 20px;
-    -webkit-column-count: 3;
-    -webkit-column-gap: 20px;
-  }
-}
diff --git a/examples/htdocs/topic.html b/examples/htdocs/topic.html
deleted file mode 100644 (file)
index 0c727e1..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-<!DOCTYPE html>
-<html lang="en"><head>
-  <meta charset="utf-8">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <meta name="viewport" content="width=device-width, initial-scale=1">
-  <title>MKWS demo</title>
-
-  <!-- Include Bootstrap. It needs jQuery. -->
-  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
-  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
-  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
-  <!-- http://www.bootstrapcdn.com/#bootswatch_tab has some themes that look mediumly okay -->
-  <!-- <link href="//maxcdn.bootstrapcdn.com/bootswatch/3.1.1/cyborg/bootstrap.min.css" rel="stylesheet"> -->
-  <!-- <link href="//maxcdn.bootstrapcdn.com/bootswatch/3.1.1/amelia/bootstrap.min.css" rel="stylesheet"> -->
-  <!-- <link href="//maxcdn.bootstrapcdn.com/bootswatch/3.1.1/united/bootstrap.min.css" rel="stylesheet"> -->
-  <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
-
-  <!-- Before including MKWS we can define a configuration object. -->
-  <script type="text/javascript">
-    var mkws_config = { sp_auth_credentials: "credo/emu" };
-  </script>
-
-  <!-- mkws-complete.js includes jQuery and Handlebars. It will co-exist with
-       another copy of jQuery as we have here but you can also use mkws.js
-       if you have included both separately -->
-  <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-  <link rel="stylesheet" type="text/css" href="topic.css">
-
-  <!-- Handlebars templates can make calls to Javascript functions you
-       define this way. -->
-  <script>
-    Handlebars.registerHelper('mkws-topicurl', function(topic) {
-      /* Creates a link back to this page with the topic as a parameter */
-      return window.location.pathname + "?q=" + encodeURIComponent(topic);
-    });
-  </script>
-
-  <!-- Here we create replacement templates that incorporate bootstrap. 
-       The prefix "mkws-template-" makes them available to MKWS -->
-  <script class="mkws-template-topic-image" type="text/x-handlebars-template">
-    {{#each hits}}
-      <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
-       <a href="{{md-electronic-url}}" target="_blank">
-        {{#mkws-first md-thumburl}}
-          <img src="{{this}}" alt="{{../md-title}}"/>
-        {{/mkws-first}}
-        <br/>
-       </a>
-       <p>{{{md-title}}}</p>
-      </div>
-    {{/each}}
-  </script>
-  <script class="mkws-template-topic-facet" type="text/x-handlebars-template">
-    {{#each terms}}
-      <li class="list-group-item mkws-term">
-        <span class="badge">{{count}}</span>
-        <a href="{{mkws-topicurl term}}">{{term}}</a>
-      </li>
-    {{/each}}
-  </script>
-</head>
-
-<body>
-  <div class='page-header container'>
-    <div class="row">
-      <!-- mkws-reference - A widget that fetches a Wikipedia entry -->
-      <div class="jumbotron panel col-md-8 col-sm-7">
-        <!-- Note the "autosearch" attribute. It indicates where to get
-             the search term from, in this case a URL parameter.  A URL
-             path component or Javascript variable are also possible. --> 
-        <div class="panel-body mkws-reference mkws-team-ref" autosearch="!param!q"
-             data-mkws-config='{"paragraphs":1}'></div>
-      </div>
-      <!-- Related topics -->
-      <div class="col-md-offset-1 col-md-3 col-sm-5"><div class="panel panel-default">
-        <div class="panel-heading title">
-          <h3 class="panel-title">Related Topics</h3>
-        </div>
-        <!-- This mkws-facet widget is particularly illustrative: 
-             * the data-mkws-facet attribute specifies a particular facet
-             * data-mkws-config allows configuration override; in this case
-               we employ one of the templates we defined above.
-             * having the class mkws-team-main groups this widget with others
-               on the same team. The mkws-records widget at the bottom of
-               the page shares the same team and is thus working from the same
-               result set. -->
-        <ul class="panel-body list-group mkws-facet mkws-team-main"
-            autosearch="!param!q"
-            data-mkws-facet="subject"
-            data-mkws-config='{ "template": "topic-facet" }'></ul>
-      </div></div>
-    </div>
-    <!-- images -->
-    <div class="row">
-      <div class="col-md-12"><div class="panel panel-default">
-        <div class="panel-heading title">
-          <h3 class="panel-title">Images</h3>
-        </div>
-        <!-- The "target" config key narrows the search to a list of targets -->
-        <div class="panel-body mkws-google-image" autosearch="!param!q"
-             data-mkws-config='{ "maxrecs": 4, "template": "topic-image", "target": "google_images_js" }'></div>
-      </div></div>
-    </div>
-
-    <!-- sources -->
-    <div class="row">
-        <div class="news col-md-4 col-sm-6"><div class="panel panel-default">
-          <div class="panel-heading title">
-            <h3 class="panel-title">News</h3>
-          </div>
-          <!-- The "targetfilter" narrows the search to targets matching some criteria -->
-          <div class="panel-body mkws-records mkws-team-news" autosearch="!param!q"
-               data-mkws-config='{"targetfilter":"categories=news",
-                                  "perpage":7}'></div>
-        </div></div>
-        <div class="articles col-md-4 col-sm-6"><div class="panel panel-default">
-          <div class="panel-heading title">
-            <h3 class="panel-title">Articles</h3>
-          </div>
-          <div class="panel-body mkws-records mkws-team-articles" autosearch="!param!q"
-               data-mkws-config='{"targetfilter":"categories=articles",
-                                  "perpage":7}'></div>
-        </div></div>
-        <div class="books col-md-4 col-sm-6"><div class="panel panel-default">
-          <div class="panel-heading title">
-            <h3 class="panel-title">Books</h3>
-          </div>
-          <div class="panel-body mkws-records mkws-team-books" autosearch="!param!q"
-               data-mkws-config='{"targetfilter":"categories=books",
-                                  "perpage":7}'></div>
-        </div></div>
-    </div>
-    <div class="row">
-        <div class="alltargets col-md-12"><div class="panel panel-default">
-          <div class="panel-heading title">
-            <h3 class="panel-title">Results from all targets</h3>
-          </div>
-          <div class="panel-body multicol mkws-records mkws-team-main"></div>
-        </div></div>
-    </div>
-  </div>
-</body>
-</html>
diff --git a/examples/htdocs/tpl.html b/examples/htdocs/tpl.html
deleted file mode 100644 (file)
index 93c1d88..0000000
+++ /dev/null
@@ -1,11251 +0,0 @@
-<!DOCTYPE html>
-<!-- saved from url=(0055)http://www.torontopubliclibrary.ca/search.jsp?Ntt=water -->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="./tpl_files/widget119.css" media="all">
-
-
-
-
-
-<!-- MKWS demo! A template to fit the Toronto Public Library -->
-<script class="mkws-template-reference-universe" type="text/x-handlebars-template">
-  <h3>Results from Reference Universe</h3>
-  {{#each hits}}
-    <div class="refinement">
-      {{#mkws-first md-electronic-url}}
-      <a href="{{this}}">
-      {{/mkws-first}}
-        {{md-title}}
-      </a>
-    {{#if md-title-remainder}}
-      <span>{{md-title-remainder}}</span>
-    {{/if}}
-    {{#if md-title-responsibility}}
-      <span><i>{{md-title-responsibility}}</i></span>
-    {{/if}}
-    </div>
-  {{/each}}
-</script>
-<script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
-<script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
-
-
-
-
-       
-
-
-
-<title>
-water
- : Toronto Public Library
-
-</title>
-
-<meta http-equiv="X-UA-Compatible" content="IE=7,9,10">
-
-<meta name="description" content=""> 
-<meta name="keywords" content="water">
-<meta name="thumbnail" content="">
-<meta name="identifier" content="http://www.torontopubliclibrary.ca/search.jsp">
-
-
-
-
-
-<meta name="jsEnabled" content="true">
-
-
-<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
-<meta name="DC.creator" content="">
-<meta name="DC.date.created" content="">
-<meta name="DC.date.modified" content="">
-<meta name="DC.language" content="en">
-<meta name="DC.type" content="">
-<meta name="DC.audience" content="">
-
-
-
-
-<meta property="og:site_name" content="Toronto Public Library">
-<meta name="p:domain_verify" content="7d9e14c156f8c4d39d2990ce64d144c7">
-<link rel="stylesheet" href="./tpl_files/tpl.css" type="text/css">
-<link rel="stylesheet" href="./tpl_files/print.css" media="print" type="text/css">
-       
-                               
-               
-                       
-                               <link rel="stylesheet" href="./tpl_files/digital-collections.css" type="text/css">
-                       
-               
-               
-
-               <script src="./tpl_files/jquery-1.8.3.min.js" type="text/javascript"></script>
-
-               
-               <script type="text/javascript">jQuery.noConflict();</script>
-        <script src="./tpl_files/tpl.js" type="text/javascript"></script>        
-
-
-               
-                       
-                       
-                               
-                                
-                                          
-                        
-                        
-                       
-                        
-                       
-                       
-               
-               
-               
-               
-               
-
-               <script type="text/javascript">
-                       SERVER_NAME = 'www.torontopubliclibrary.ca';
-                       SITE_ROOT = '';
-                       SITE_PAGES = '';
-                       IS_SSL = 'false'
-               </script>
-               
-
-               
-
-       
-
-
-<link rel="apple-touch-icon" href="http://www.torontopubliclibrary.ca/apple-touch-icon.png">
-
-<link rel="apple-touch-icon" sizes="72x72" href="http://www.torontopubliclibrary.ca/apple-touch-icon-72x72.png">
-
-<link rel="apple-touch-icon" sizes="114x114" href="http://www.torontopubliclibrary.ca/apple-touch-icon-114x114.png">
-
-<link rel="apple-touch-icon" sizes="144x144" href="http://www.torontopubliclibrary.ca/apple-touch-icon-144x144.png">
-
-<meta name="google-translate-customization" content="ac5a9931b4aeb2a1-842f979b42e52049-gcf9b2081eedececc-1b">
-       </head>
-
-
-               
-               
-                       <body>
-               
-       
-
-       
-               
-                                       
-
-               <div id="message-area">
-               </div>                                          
-
-
-       
-       
-               
-               
-               
-       
-
-               
-                               <div id="header-container" class="header">
-                                                       
-                                                               
-                                                       
-                                                       
-                                                       
-               
-       <div class="masthead-container">
-       <div class="header-menu-container">
-               <div class="skip-navigation"><a href="http://www.torontopubliclibrary.ca/search.jsp?Ntt=water#Content">Skip Navigation</a></div>
-               <div id="logo-item"><a href="http://www.torontopubliclibrary.ca/"><img class="_alwaysShow" alt="Toronto Public Library Homepage" src="./tpl_files/tpl-logo.png"></a></div>
-               
-               <ul class="header-top-menu">
-                               
-                       
-                               
-                       
-                                       
-                                       <li id="signin-item"><a id="sign-in-link" onclick="Common.deleteCookie(&#39;sessionExpirationWarning&#39;)" href="https://www.torontopubliclibrary.ca/signin?returnTo=http%3A//www.torontopubliclibrary.ca/search.jsp%3FNtt%3Dwater">You are <b>not signed in</b></a></li>
-                                       
-                                       <script type="text/javascript">
-                                               Common.processSignInURL("https://www.torontopubliclibrary.ca:443/signin?returnTo=");
-                                       </script>
-                                       
-                                       <li id="account-item"><a href="http://www.torontopubliclibrary.ca/youraccount">Your Account</a></li>
-                       
-                       
-                       
-                       
-                       <li id="contact-item"><a href="http://www.torontopubliclibrary.ca/contact">Contact Us</a></li>
-                       
-                       <li class="homepage-only" id="donate-item"><a class="no-border" href="https://www.gifttool.com/donations/Donate?ID=2090&AID=2610" onclick="tracking(&#39;Masthead&#39;,&#39;Donate Now&#39;);">Donate Now</a></li>
-                                                               
-               </ul>
-       </div>
-       
-       </div>
-               
-               
-       
-<div class="header-search-container">
-<div class="header-search homepage-only" id="header-search" role="search">
-               
-</div>
-
-
-                                                       
-                                                       
-                                               </div>
-
-                                                       <div id="header-bottom-container">
-                                                               <nav role="navigation">
-                                                               <ul class="header-bottom" id="header-bottom" role="menubar">
-                                                                       
-                                                                       
-                                                                       
-                                                                       
-                                                                       
-       
-                                                                       <li id="books-link" role="menuitem" aria-haspopup="true" aria-labelledby="bookLabel"><a class="top-nav" href="http://www.torontopubliclibrary.ca/books-video-music/"><span id="bookLabel">Books, Video, Research &amp; More</span></a>
-                                                                               
-
-
-       
-       <div class="megamenu" style="top: 127.5px; display: none;"> 
-<div class="megamenu-column first" style="height: 253px;"> 
-       <ul role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/books" onclick="tracking(&#39;Books&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Books</a> 
-                       <ul role="menu"> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/new-items.jsp?category=Adult%20Fiction" onclick="tracking(&#39;New Adult Fiction&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Adult Fiction</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/new-items.jsp?category=Children%20Fiction" onclick="tracking(&#39;New Children\&#39;s Fiction&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Children's Fiction</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/new-items.jsp?category=Teen%20Fiction" onclick="tracking(&#39;New Teen Fiction&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Teen Fiction</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/books/award-winners/" onclick="tracking(&#39;Award Winners&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Award Winners</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/books/best-sellers" onclick="tracking(&#39;Best Sellers&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Best Sellers</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/books/booklists" onclick="tracking(&#39;We Recommend&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">We Recommend</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/books/book-clubs" onclick="tracking(&#39;Book Clubs&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Book Clubs</a> 
-                               </li> 
-                       </ul> 
-               </li> 
-       </ul> 
-</div> 
-<div class="megamenu-column" style="height: 253px;"> 
-       <ul role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/video" onclick="tracking(&#39;Movies &amp; Video&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Movies &amp; Video</a> 
-                       <ul role="menu"> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/new-items.jsp?category=Adult%20DVDs" onclick="tracking(&#39;New Adult DVDs&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Adult DVDs</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/video/new-holdable-adult.jsp" onclick="tracking(&#39;New Holdable Adult DVDs&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Holdable Adult DVDs</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/new-items.jsp?category=Children%20DVDs" onclick="tracking(&#39;New Children\&#39;s DVDs&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Children's DVDs</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/video/new-holdable-children.jsp" onclick="tracking(&#39;New Holdable Children\&#39; DVDs&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Holdable Children's DVDs</a> 
-                               </li> 
-                       </ul> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/music" onclick="tracking(&#39;Music&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Music</a> 
-                       <ul role="menu"> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/books-video-music/new-items.jsp?category=Adult%20Music" onclick="tracking(&#39;New Adult Music&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">New Adult Music</a> 
-                               </li> 
-                       </ul> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/downloads-ebooks" onclick="tracking(&#39;Downloads &amp; eBooks&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Downloads &amp; eBooks</a> 
-               </li> 
-       </ul> 
-</div> 
-<div class="megamenu-column last" style="height: 253px;"> 
-       <ul class="clear-left" role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/articles-online-research/" onclick="tracking(&#39;Articles &amp; Online Research&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Articles &amp; Online Research</a> 
-                       <ul role="menu"> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/databases" onclick="tracking(&#39;A - Z List of All Databases&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">A - Z List of All Databases</a> 
-                               </li> 
-                       </ul> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/recommended-websites/" onclick="tracking(&#39;Recommended Websites&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Recommended Websites</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/your-language" onclick="tracking(&#39;Material in Your Language&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Material in Your Language</a> 
-                       <ul role="menu">
-                               <li class="megamenu-level-1" role="menuitem">
-                               <a href="http://www.torontopubliclibrary.ca/french/">Français</a>
-                               </li>
-                       </ul>
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/books-video-music/specialized-collections/" onclick="tracking(&#39;Special Collections &amp; Rare Books&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Special Collections &amp; Rare Books</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/digital-archive/" onclick="tracking(&#39;Digital Archive&#39;,&#39;megamenu - Books, Video &amp; Research&#39;);">Digital Archive</a> 
-               </li> 
-       </ul> 
-       <a href="http://www.torontopubliclibrary.ca/search.jsp?Ntt=water#" class="megamenu-close-link"><img alt="Close Menu" src="./tpl_files/megamenu-close-button.gif"></a> 
-</div> 
-</div> 
-
-
-                                                                       </li>
-                                                                       <li id="programs-link" role="menuitem" aria-haspopup="true" aria-labelledby="programLabel"><a class="top-nav" href="http://www.torontopubliclibrary.ca/programs-and-classes/"><span id="programLabel">Programs, Classes &amp; Exhibits</span></a> 
-                                                                               
-
-
-       
-       <div class="megamenu" style="top: 127.5px; left: 475px; display: none;"> 
-<div class="megamenu-column first" style="height: 199px;"> 
-       <ul role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/kids-and-families/" onclick="tracking(&#39;Kids &amp; Families&#39;,&#39;megamenu - Programs&#39;);">Kids &amp; Families</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/teens/" onclick="tracking(&#39;Teens&#39;,&#39;megamenu - Programs&#39;);">Teens</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/authors.jsp" onclick="tracking(&#39;Author Talks &amp; Lectures&#39;,&#39;megamenu - Programs&#39;);">Author Talks &amp; Lectures</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/book-clubs-writers-groups.jsp" onclick="tracking(&#39;Book Clubs &amp; Writer\&#39;s Groups&#39;,&#39;megamenu - Programs&#39;);">Book Clubs &amp; Writers' Groups</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/business-legal-finance.jsp" onclick="tracking(&#39;Business, Legal &amp; Personal Finance&#39;,&#39;megamenu - Programs&#39;);">Business, Legal &amp; Personal Finance</a> 
-               </li> 
-       </ul> 
-</div> 
-<div class="megamenu-column" style="height: 199px;"> 
-       <ul role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/career-job-search.jsp" onclick="tracking(&#39;Career &amp; Job Search&#39;,&#39;megamenu - Programs&#39;);">Career &amp; Job Search</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/computers-library-training.jsp" onclick="tracking(&#39;Computer &amp; Library Training&#39;,&#39;megamenu - Programs&#39;);">Computer &amp; Library Training</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/newcomer-esl-programs.jsp" onclick="tracking(&#39;Newcomer &amp; ESL Programs&#39;,&#39;megamenu - Programs&#39;);">Newcomer &amp; ESL Programs</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/health-wellness.jsp" onclick="tracking(&#39;Health &amp; Wellness&#39;,&#39;megamenu - Programs&#39;);">Health &amp; Wellness</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/categories/hobbies-crafts-games.jsp" onclick="tracking(&#39;Hobbies, Crafts &amp; Games&#39;,&#39;megamenu - Programs&#39;);">Hobbies, Crafts &amp; Games</a> 
-               </li> 
-       </ul> 
-</div> 
-<div class="megamenu-column last" style="height: 199px;"> 
-       <ul class="clear-left" role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/appelsalon/" onclick="tracking(&#39;Appel Salon Programs&#39;,&#39;megamenu - Programs&#39;);">Appel Salon Programs</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/exhibits/" onclick="tracking(&#39;Exhibits &amp; Displays&#39;,&#39;megamenu - Programs&#39;);">Exhibits &amp; Displays</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/featured/eh-list.jsp" onclick="tracking(&#39;The eh List Author Series&#39;,&#39;megamenu - Programs&#39;);">The eh List Author Series</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/programs-and-classes/featured/thought-exchange.jsp" onclick="tracking(&#39;Thought Exchange&#39;,&#39;megamenu - Programs&#39;);">Thought Exchange</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/writer-in-residence/" onclick="tracking(&#39;Writers-in-Residence&#39;,&#39;megamenu - Programs&#39;);">Writer-in-Residence</a> 
-               </li> 
-       </ul> 
-       <a href="http://www.torontopubliclibrary.ca/search.jsp?Ntt=water#" class="megamenu-close-link"><img alt="Close Menu" src="./tpl_files/megamenu-close-button.gif"></a> 
-</div> 
-</div> 
-
-
-
-
-                                                                       </li>
-                                                                       <li id="branches-link" role="menuitem" aria-haspopup="true" aria-labelledby="branchLabel"><a class="top-nav" href="http://www.torontopubliclibrary.ca/hours-locations/index.jsp"><span id="branchLabel">Hours &amp; Locations</span></a> 
-                                                                               
-
-
-       
-       <div class="megamenu" style="top: 127.5px; display: none;"> 
-<div class="megamenu-column last" style="height: 165px;"> 
-       <ul class="clear-left" role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/branches/" onclick="tracking(&#39;A-Z List of Branches&#39;,&#39;megamenu - Branches&#39;);">A-Z List of Branches</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/sunday-hours/" onclick="tracking(&#39;Sunday Hours&#39;,&#39;megamenu - Branches&#39;);">Sunday Hours</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/renovations/" onclick="tracking(&#39;Branch Renovations&#39;,&#39;megamenu - Branches&#39;);">Branch Renovations</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/bookmobiles/" onclick="tracking(&#39;Bookmobiles&#39;,&#39;megamenu - Branches&#39;);">Bookmobiles</a> 
-               </li> 
-       </ul> 
-       <a href="http://www.torontopubliclibrary.ca/search.jsp?Ntt=water#" class="megamenu-close-link"><img alt="Close Menu" src="./tpl_files/megamenu-close-button.gif"></a> 
-</div> 
-</div> 
-
-
-                                                                       </li>
-                                                                       <li id="using-link" role="menuitem" aria-haspopup="true" aria-labelledby="usingLabel"><a class="top-nav" href="http://www.torontopubliclibrary.ca/using-the-library/"><span id="usingLabel">Using the Library</span></a> 
-                                                                               
-
-
-       
-       <div class="megamenu" style="top: 127.5px; display: none;"> 
-<div class="megamenu-column first" style="height: 180px;"> 
-       <ul role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/services/" onclick="tracking(&#39;Services&#39;,&#39;megamenu - Using the Library&#39;);">Services</a> 
-                       <ul role="menu"> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/museum-arts-passes/" onclick="tracking(&#39;Museum &amp; Arts Pass&#39;,&#39;megamenu - Using the Library&#39;);">Museum + Arts Pass</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/using-the-library/computer-services/" onclick="tracking(&#39;Computers, Internet Access &amp; Digital Services&#39;,&#39;megamenu - Using the Library&#39;);">Computers, Internet Access &amp; Digital Services</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem">
-                               <a href="http://computerbooking.torontopubliclibrary.ca/">Reserve a Computer</a>
-                               </li>
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/using-the-library/room-theatre-rentals/meeting-rooms.jsp" onclick="tracking(&#39;Meeting Room Rentals&#39;,&#39;megamenu - Using the Library&#39;);">Meeting Room Rentals</a> 
-                               </li>
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/adult-literacy/index.jsp" onclick="tracking(&#39;Adult Literacy&#39;,&#39;megamenu - Using the Library&#39;);">Adult Literacy</a> 
-                               </li>
-                       </ul> 
-               </li> 
-       </ul> 
-</div> 
-<div class="megamenu-column" style="height: 180px;"> 
-       <ul role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/using-the-library/help/" onclick="tracking(&#39;Help&#39;,&#39;megamenu - Using the Library&#39;);">Help</a> 
-                       <ul role="menu"> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/using-the-library/help/your-account.jsp" onclick="tracking(&#39;Account Help&#39;,&#39;megamenu - Using the Library&#39;);">Account Help</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/using-the-library/help/searching.jsp" onclick="tracking(&#39;Help with Searching&#39;,&#39;megamenu - Using the Library&#39;);">Help with Searching</a> 
-                               </li> 
-                               <li class="megamenu-level-1" role="menuitem"> 
-                               <a href="http://www.torontopubliclibrary.ca/using-the-library/help/troubleshooting-technical.jsp" onclick="tracking(&#39;Troubleshooting Technical Problems&#39;,&#39;megamenu - Using the Library&#39;);">Troubleshooting Technical Problems</a> 
-                               </li> 
-                       </ul> 
-               </li> 
-       </ul> 
-</div> 
-<div class="megamenu-column last" style="height: 180px;"> 
-       <ul class="clear-left" role="menu"> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/using-the-library/your-library-card/" onclick="tracking(&#39;Your Library Card&#39;,&#39;megamenu - Using the Library&#39;);">Your Library Card</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/using-the-library/borrowing-materials/" onclick="tracking(&#39;Borrowing Materials&#39;,&#39;megamenu - Using the Library&#39;);">Borrowing Materials</a> 
-               </li> 
-               <li class="megamenu-level-0" role="menuitem"> 
-               <a href="http://www.torontopubliclibrary.ca/using-the-library/placing-holds/" onclick="tracking(&#39;Placing Holds&#39;,&#39;megamenu - Using the Library&#39;);">Placing Holds</a> 
-               </li>
-       </ul> 
-       <a href="http://www.torontopubliclibrary.ca/search.jsp?Ntt=water#" class="megamenu-close-link"><img alt="Close Menu" src="./tpl_files/megamenu-close-button.gif"></a> 
-</div> 
-</div> 
-
-
-
-
-                                                                       </li>
-                                                               </ul>
-                                                               </nav>
-
-<script type="text/javascript">
-jQuery(document).ready(function() {
-       setMegaMenu('#books-link',-0);  setMegaMenu('#programs-link', -0);      setMegaMenu('#branches-link',-0);       setMegaMenu('#using-link',-494);
-        });
-</script>
-<script type="text/javascript">
-function tracking(category, action){
-pageTracker._trackEvent(category,action,document.title);
-}
-</script>
-
-                                                       </div>  
-                               </div>
-                                               
-               
-       
-                       
-
-
-       
-       
-
-
-
-
-       
-
-
-
-
-
-
-
-
-
-<!-- view=list/grid - default value is grid when VRL plus Digital Archive -->
-       
-       
-       
-               
-                                       
-       
-
-
-       
-       
-       
-               <div class="main" id="search">
-                       
-                       
-
-                       
-
-                       
-
-                       
-                               
-                               
-                                       
-
-
-
-
-
-
-
-<div class="grid_13 alpha">
-       <form name="searchForm" id="searchForm-searchBar" method="get" action="tpl.html" onsubmit="return Search.validateNotBlank(&#39;search-terms&#39;)">
-               <div class="search-box" id="search-box">
-                       
-       
-                       
-       
-                       
-                       
-       
-       
-                               <div class="search-terms-container float-left">
-                                       <label for="search-terms" class="header-hide-offscreen">Search</label>
-                                       <input name="q" style="margin-right: 0px; color: rgb(0, 0, 0);" id="search-terms" type="text">
-                                       <input id="submit-button" onclick="Search.submitSearch(this.form,&#39;search-terms&#39;);" value="Search" type="submit">
-                               </div>
-                               
-                               
-                                       
-                                                                       
-                                       
-
-
-       
-               
-       
-
-
-       
-                                       
-                               
-       
-                               
-
-
-
-
-<div id="advanced-search-options">
-       
-       
-</div>
-                                       
-                       </div>
-               
-</form>
-
-       
-               <div class="search-box-links">
-                        <a href="http://www.torontopubliclibrary.ca/advanced/">Advanced Search</a>
-               </div>
-       
-</div>
-       
-       <div class="search-share search-share-left-margin sprite grid_3">
-               
-
-
-
-    
-        
-    
-    
-    <div class="sprite">
-    <a id="rss" href="http://www.torontopubliclibrary.ca/rss.jsp?Ntt=water">
-    Subscribe to results</a></div>
-       
-
-    
-    
-               <div class="sprite">    
-       <a id="print" target="_blank" href="http://www.torontopubliclibrary.ca/search.jsp?Ntt=water&print=true">Print-friendly version</a>
-</div> 
-       </div>
-
-       <div class="clear"></div> 
-
-
-
-       
-
-                               
-                       
-
-                       
-
-
-
-
-       
-
-
-
-
-
-
-
-
-
-       <div class="search-suggestions">
-                  
-                 
-             
-             
-           
-           
-           
-       </div>
-
-  
-       <div class="search-title">
-               
-                       
-                       
-                               <h1 class="item-count">16,231 results
-                        for <span id="search-term-label">water</span></h1>
-                       
-                                               
-       </div>  
-
-
-
-
-       
-                       <div class="grid_4 alpha">
-                                       
-                               
-
-                       
-                               
-                               
-
-
-
-
-               
-       
-       
-       
-       
-
-
-
-               
-       
-       
-       
-       
-
-
-<a name="refinements"></a>
-<div class="widget" id="refinements">
-       
-
-       
-               
-               
-               
-               
-               
-
-               
-               
-               
-               
-               
-               
-               
-               
-
-
-
-               
-                       
-               
-               
-
-               
-               
-               
-
-                       
-                       
-                               <div class="refinement-container">
-                                       <h3>Items that I can...</h3>
-                               
-                                       
-                                               
-                                               
-                                                       <div id="refinements-items_that_check_out">
-                                               
-                                                       
-                                                               
-                                               
-
-                                               
-
-                                               
-
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                                       
-                                                                               
-       
-                                                                               
-                                                                                       
-                                                                               
-       
-                                                                       
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37751&Ntt=water">Borrow and take home</a>                                                                                              &nbsp;<span class="ref-count">(5,624)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                                       
-                                                                               
-                                                                                       
-                                                                               
-       
-                                                                               
-       
-                                                                       
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37752&Ntt=water">Only use in a library</a>                                                                                             &nbsp;<span class="ref-count">(10,285)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-                                               
-                                               
-                                               
-                                       </div>
-                       
-                               </div>
-                       
-               
-       
-               
-               
-               
-               
-               
-
-
-
-<div class="mkws-reference-universe refinement-container" autosearch="!param!q"></div>
-
-
-
-
-               
-               
-               
-               
-               
-               
-               
-               
-
-
-
-               
-               
-
-               
-               
-               
-
-                       
-                       
-                               <div class="refinement-container">
-                                       <h3>Type</h3>
-                               
-                                       
-                                               
-                                               
-                                                       <div id="refinements-type">
-                                               
-                                                       
-                                                               
-                                               
-
-                                               
-
-                                               
-
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37906&Ntt=water">Books</a>                                                                                             &nbsp;<span class="ref-count">(12,080)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37910&Ntt=water">eBooks &amp; Online Content</a>                                                                                               &nbsp;<span class="ref-count">(764)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37907&Ntt=water">Movies &amp; Videos</a>                                                                                               &nbsp;<span class="ref-count">(400)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37908&Ntt=water">Music</a>                                                                                             &nbsp;<span class="ref-count">(1,403)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=38550&Ntt=water">Images</a>                                                                                            &nbsp;<span class="ref-count">(227)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37920&Ntt=water">Audiobooks</a>                                                                                                &nbsp;<span class="ref-count">(143)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37866&Ntt=water">Library Info</a>                                                                                              &nbsp;<span class="ref-count">(176)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37909&Ntt=water">Magazines, Newspapers &amp; Journals</a>                                                                                              &nbsp;<span class="ref-count">(430)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37867&Ntt=water">Programs &amp; Classes</a>                                                                                            &nbsp;<span class="ref-count">(17)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37911&Ntt=water">Microforms, Maps &amp; Computer Disks</a>                                                                                             &nbsp;<span class="ref-count">(1,484)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=37868&Ntt=water">Recommended Websites</a>                                                                                              &nbsp;<span class="ref-count">(129)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                                       
-                                                                               
-                                                                       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                                               
-                                                                                               
-                                               
-                                               
-                                               
-                                               
-                                       </div>
-                       
-                               </div>
-                       
-               
-       
-               
-               
-               
-               
-               
-
-               
-               
-               
-               
-               
-               
-               
-               
-
-
-
-               
-               
-
-               
-               
-               
-
-                       
-                       
-                               <div class="refinement-container">
-                                       <h3>Language</h3>
-                               
-                                       
-                                               
-                                               
-                                                       <div id="refinements-language">
-                                               
-                                                       
-                                                               
-                                               
-
-                                               
-
-                                               
-
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=20206&Ntt=water">English</a>                                                                                           &nbsp;<span class="ref-count">(12,573)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=20219&Ntt=water">French</a>                                                                                            &nbsp;<span class="ref-count">(265)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=20365&Ntt=water">Multiple languages</a>                                                                                                &nbsp;<span class="ref-count">(31)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=20164&Ntt=water">Chinese</a>                                                                                           &nbsp;<span class="ref-count">(26)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                       
-               
-                                                                                                       
-                                                                                                               
-                                                                                                               
-                                                                                                                       <div class="refinement">
-                                                                                                                               <a href="http://www.torontopubliclibrary.ca/search.jsp?N=20199&Ntt=water">Dutch</a>                                                                                             &nbsp;<span class="ref-count">(14)</span>
-                                                                                                                       </div>
-                                                                                                               
-                                                                                                       
-                                                                                                       
-               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                                       <div class="refinement-more"><a href="http://www.torontopubliclibrary.ca/search.jsp?N=&Ne=447+20089&Ntt=water">more...</a></div>
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                       
-                                                                               
-                                                                               
-                                                                               
-                                                                                               
-                                               
-                                               
-                                               
-                                               
-                                       </div>
-                       
-                               </div>
-                       
-               
-       
-               
-               
-               
-               
-               
-
-               
-               
-               
-               
-               
-               
-               
-               
-
-
-
-               
-               
-
-               
-               
-               
-
-                       
-                       
-                               <div class="refinement-container">
-                                       <h3>Age Level</h3>
-                               
-                                       
-                                               
-                                               
-                                                       <div id="refinements-age_level">
-                                               
-                                                       
-                                                               
-                                               
-
-                                               
-
-                                               
-
-                                               
-       
-                                                               
-                                                               
-
-
-                                                               
-                                                               
-                                                               
-
-                                                               
-
-                                                               
-                                                               
-       
-                                                               
-                                                               
-                                                               
-       
-                                                               
-       
-                                                               
-                                                               
-                                                               
-                                                                       
-                                                                               
-                                                                               
-                               
-                                                                                       
-                                                                                               
-                                                                                               
-                                                                                               
-                                                                                                       
-      &