OCLC Developer Network

Mobile WorldCat Local

Hello!

   I am creating a mobile site for our library.

http://libguides.philau.edu/m

On this site, I have embedded a WorldCat Local searchbox...I would love to have this search box route users to the mobile version of worldcat Local.

http://philau.worldcat.org/m/

Is there anyway to get the search box to search the mobile version of worldcat local?

Here is the code I use to search articles in WCL

Thanks for any help!

Michael

<style type="text/css">

select, input, button {
   display: block;
   margin-bottom: 1em;
   width: 100%;
   font-size: 120%;
    height:30px;
    background: none repeat scroll 0 0 #F4F4F4;
    border: 1px solid #BBBBBB;
    color: #222222;
}

label {
   font-size: 120%;
}

input[type=search] {
       background: #ededed url(http://webdesignerwall.com/demo/expandable-search-form/images/search-icon.png) no-repeat 9px center;
       border: solid 1px #ccc;
       padding: 9px 10px 9px 32px;
       width: 155px; /*default width*/

      -webkit-border-radius: 10em;
      -moz-border-radius: 10em;
      border-radius: 10em;
   
      -webkit-transition: all .5s; /*animation */
      -moz-transition: all .5s;
      transition: all .5s;
}

input[type=search]:focus {
    width: 230px; /*expand width on input: focus */
    background-color: #fff;
    border-color: #6dcff6;

    -webkit-box-shadow: 0 0 5px rgba(109, 207, 246, .5);
    -moz-box-shadow: 0 0 5px rgba(109, 207, 246, .5);
    box-shadow: 0 0 5px rgba(109, 207, 246, .5); /*glow effect*/


}

</style>

        <form name="catalog" action="http://philau.worldcat.org/search" method="get">
        <script type="text/javascript">
         // Mandatory customization

         params["host"] = "philau.worldcat.org";

         // Optional customization, remove if you do not need
         /*
         params["title"] = "Search Your Library and beyond"; // override branding title
         params["background"] = "#f6f6f6"; // override background color
         params["scope"] = "2"; // override default
         */
 
         // Call WorldCat Local to display search box
         //WCLSearch.display(params, "wcl_searchbox");
        </script>



        <input type="search" class="textInputBox" name="q" value="" onfocus="if (this.value == 'Books') {this.value = '';}" onblur="if (this.value == '') {this.value = '';}" />
        <input class="searchbutton" type="submit" value="Go" />
        <input type="hidden" name="fq" value="dt:art" />
   

    
    
    <!--<input type= "hidden" name="dblist" value="638" />-->
    
   
 
    
        </form>

Follow the OCLC Developer Network:

The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »

© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates


Powered by Drupal, an open source content management system