User:Bill Flanagan/Google Image Search

From OpenWetWare
Jump to navigationJump to search

This search page is a VERY preliminary example of how we can incorporate Google Image Lookup into OWW.

An important missing element is in how we take advantage of the OWW information about returned Images and use that to display the pages in a way closer to the way the current MediaWiki gallery functions.

One point: the search is not exclusively looking at OWW images either: you'll see external links scattered amid the OWW images.


<html>

   <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=internal-sample" type="text/javascript"></script>
   <link href="http://www.google.com/uds/css/gsearch.css" rel="stylesheet" type="text/css"/>
   <style type="text/css">
     table.search-control {
       width : 100%;
     }
     table.search-control .gsc-control {
       width : 100%;
     }
     td {
       vertical-align : top;
     }
     /* Disable built in search forms */
     .gsc-control form.gsc-search-box {
       display : none;
     }
     /* restrict global search form width */
     #searchForm {
       width : 300px;
     }
     /* for demonstration purposes ONLY. This is not ok by the terms */
     #rightSearchControl .gsc-ad-box {
       display : none;
     }
     /* long form visible urls should be on */
     .gsc-webResult div.gs-visibleUrl-long {
       display : block;
     }
     .gsc-webResult div.gs-visibleUrl-short {
       display : none;
     }
   </style>
   <script type="text/javascript">
   </script>
Loading...
Loading...

</html>


Comments

  1. 13:11, 11 May 2008 (EDT)I cleaned up the formatting to make this look like an OWW page.


Local lookup of returned image information

One possibility is to intercept the opening of the image so that we can do the following:

  • Get the image name
  • Lookup the name of the Image: page related to the image
  • Show the name of the image page as a clickable entity
  • Lookup the Wiki pages linked to the page
  • Allow navigation to the specific page

Just thinking...