Enabling AutoComplete on resident circ search form. Putting dependent YUI files into...
authorOwen Leonard <oleonard@myacpl.org>
Sun, 4 Nov 2007 22:23:47 +0000 (16:23 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 4 Nov 2007 22:31:18 +0000 (16:31 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
63 files changed:
C4/Auth.pm
koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/roadtype-admin-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/stopwords-admin-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/yui-toolbars.inc [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/autocomplete.css [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/button.css [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow-disabled.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu.css [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-active.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-disabled.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-focus.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-hover.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yui-sprite.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manager.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-templates.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl

index 11e0615..0060853 100755 (executable)
@@ -255,6 +255,7 @@ sub get_template_and_user {
             KohaAdminEmailAddress   => "" . C4::Context->preference("KohaAdminEmailAddress"),
             IntranetmainUserblock      => C4::Context->preference("IntranetmainUserblock"),
             IndependantBranches     => C4::Context->preference("IndependantBranches"),
+                       CircAutocompl => C4::Context->preference("CircAutocompl"),
         );
     }
     else {
index 3b24040..e0a893f 100644 (file)
@@ -1,4 +1,4 @@
-
+<!-- Begin Acquisitions Resident Search Box -->
 <div id="header_search">
 <div id="supplier_search" class="residentsearch">
        <p class="tip">Search suppliers:</p>
@@ -18,4 +18,5 @@
                        <li><a href="/cgi-bin/koha/acqui/booksellers.pl#supplier_search">Supplier Search</a></li>
                        <li><a href="/cgi-bin/koha/acqui/histsearch.pl#orders_search">Orders Search</a></li>
                        </ul>   
-</div>
\ No newline at end of file
+</div>
+<!-- End Acquisitions Resident Search Box -->
\ No newline at end of file
index ffb5d80..25fef87 100644 (file)
@@ -1,4 +1,4 @@
-<!-- Begin Circulation Resident Search Box -->
+<!-- Begin Authorities Resident Search Box -->
 <div id="header_search">
 </div>
-<!-- End Circulation Resident Search Box -->
\ No newline at end of file
+<!-- End Authorities Resident Search Box -->
\ No newline at end of file
index 3aa1b01..84cd4bf 100644 (file)
@@ -1,14 +1,67 @@
-<!-- Begin Circulation Resident Search Box -->
+<!-- Begin Catalogue Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>
        
 
@@ -33,4 +86,4 @@
                        <li class="tabs-selected"><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Circulation Resident Search Box -->
+<!-- End Catalogue Resident Search Box -->
index ae4c85b..52f0cc6 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Circulation Resident Search Box -->
+<!-- Begin Cataloging Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
 <div id="addbooks_search" class="residentsearch">
        <p class="tip">Search the catalog and the reservoir:</p>
 </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
                        <ul>
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#addbooks_search">Cataloguing Search</a></li>
                        <li><a href="/cgi-bin/koha/circ/circulation.pl#circ_search">Check Out</a></li>
                        </ul>   
 </div>
-<!-- End Circulation Resident Search Box -->
\ No newline at end of file
+<!-- End Cataloging Resident Search Box -->
\ No newline at end of file
index 7ae9f5a..9f78ecb 100755 (executable)
@@ -1,79 +1,7 @@
 <!-- Begin Circulation Resident Search Box -->
 
-<!-- TMPL_IF NAME="CircAutocompl" -->
-
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/utilities/utilities.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/autocomplete/autocomplete-min.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event-min.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/element/element-beta-min.js"></script>
-
-<style type="text/css">
-.yui-skin-sam .yui-ac {
-    position:relative;
-    font-size:100%;
-}
-.yui-skin-sam .yui-ac-input { 
-    position:absolute;
-    width:100%;}
-.yui-skin-sam .yui-ac-container { 
-    position:absolute;
-    top:1.6em;
-    width:100%;
-}
-.yui-skin-sam .yui-ac-content {
-    position:absolute;
-    width:100%;
-    border:1px solid #808080;
-    background:#fff;
-    overflow:hidden;
-    z-index:9050;
-}
-.yui-skin-sam .yui-ac-shadow {
-    position:absolute;
-    margin:.3em;
-    width:100%;
-    background:#000;
-    -moz-opacity:0.10;
-    opacity:.10;
-    filter:alpha(opacity=10);
-    z-index:9049;
-}
-.yui-skin-sam .yui-ac-content ul {
-    margin:0;
-    padding:0;
-    width:100%;
-}
-.yui-skin-sam .yui-ac-content li {
-    margin:0;
-    padding:2px 5px;
-    cursor:default;
-    white-space:nowrap;
-}
-.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight {
-    background:#B3D4FF;
-}
-.yui-skin-sam .yui-ac-content li.yui-ac-highlight {
-    background:#426FD9;
-    color:#FFF;
-}
-
-
-
-#borrowerautocomplete { width: 405px; text-align:left;} /* z-index needed on top instances for ie & sf absolute inside relative issue */
-.autocomplete { width:130px; }/* set width of widget here*/
-.autocomplete .yui-ac-highlight ,
-.autocomplete .yui-ac-highlight .sample-result,
-.autocomplete .yui-ac-highlight .sample-query { color:#FFF; }
-.autocomplete .sample-result { color: black; }
-.autocomplete .sample-query { color:#000; }
-#findborrower { position:static; width:335px; }  */
-#yborrowercontainer { text-align:left;width:300px; }
-</style>
-
-<script type="text/javascript">
-
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
 YAHOO.util.Event.onContentReady("header_search", function() {
-
     new function() {
         // Define a custom formatter function
         this.fnCustomFormatter = function(oResultItem, sQuery) {
@@ -113,21 +41,15 @@ YAHOO.util.Event.onContentReady("header_search", function() {
         this.oAutoComp.formatResult = this.fnCustomFormatter;
 }
 });    
-
-
-</script>
-
-<!-- /TMPL_IF -->
+</script><!-- /TMPL_IF -->
 
 <div id="header_search">
 
 <div id="circ_search" class="residentsearch">
     <p class="tip">Enter patron card number or partial name:</p>
     <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-    
-<!-- TMPL_IF NAME="CircAutocompl" -->
-        
-    <div class="yui-skin-sam">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
             <div id="borrowerautocomplete" class="autocomplete">
                 <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
                 <div id="yborrowercontainer"></div>
@@ -136,16 +58,12 @@ YAHOO.util.Event.onContentReady("header_search", function() {
                 <input name="printer" value="" type="hidden" />
             </div>
         </div>
-
-<!-- TMPL_ELSE -->
-
+       <!-- TMPL_ELSE -->
             <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
             <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
             <input name="printer" value="" type="hidden" />
             <input value="Submit" type="submit" />
-
-<!-- /TMPL_IF -->
-
+       <!-- /TMPL_IF -->
     </form>
 </div>  
 
index 0d0bcb1..00eade3 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Cities Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="city_search" class="residentsearch">
        <p class="tip">City Search:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -30,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Cities Resident Search Box -->
index c1d1498..ad136be 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Currencies Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="currency_search" class="residentsearch">
        <p class="tip">Currencies Search:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -30,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Currencies Resident Search Box -->
index b4f44d7..3f556fa 100644 (file)
 <!-- TMPL_IF name="intranetcolorstylesheet" -->
     <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/<!-- TMPL_VAR NAME="intranetcolorstylesheet" -->" />
 <!-- /TMPL_IF -->
+<!-- Core + Skin CSS -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/lib/yui/button.css" />
+<!-- OPTIONAL: Menu Stylesheet (required for creating buttons of type "menu" and "split") -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/lib/yui/menu.css" />
+<!-- Dependencies -->
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/element/element-beta-min.js"></script>
+<!-- OPTIONAL: Menu and Container Core (required for creating buttons of type "menu" and "split") -->
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/container/container_core-min.js"></script>
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/menu/menu-min.js"></script>
+<!-- Source file -->
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
+<!-- TMPL_IF NAME="CircAutocompl" -->
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/utilities/utilities.js"></script>
+<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/autocomplete/autocomplete-min.js"></script>
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/lib/yui/autocomplete.css" />
+<!-- /TMPL_IF -->
\ No newline at end of file
index ba6f21d..59ebe15 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Notices Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="notices_search" class="residentsearch">
        <p class="tip">Search Existing Notices:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -30,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Notices Resident Search Box -->
index 6ae46e5..0a101ea 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Patrons Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="patron_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -35,4 +88,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/advsearch.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
\ No newline at end of file
+<!-- End Patrons Resident Search Box -->
\ No newline at end of file
index d2e7400..6a99f48 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Patrons Admin Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="patron_category_search" class="residentsearch">
        <p class="tip">Search by Patron Category Name:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -30,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Patrons Admin Resident Search Box -->
index b5c9bdb..529449b 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Printers Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="printer_search" class="residentsearch">
        <p class="tip">Printer Search:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -30,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Printers Resident Search Box -->
index bb678c9..e1d8e56 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Roads Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="roadtype_search" class="residentsearch">
        <p class="tip">Road Type Search:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -30,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Roads Resident Search Box -->
index f9e3380..c980897 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Serials Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="subscription_search" class="residentsearch">
        <p class="tip">Search Subscriptions:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -27,4 +81,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Serials Resident Search Box -->
index 44034db..3e047e0 100644 (file)
@@ -1,5 +1,46 @@
+<!-- Begin Stopwords Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
 
-       <!-- Begin Members Resident Search Box -->
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="stopword_search" class="residentsearch">
        <p class="tip">Stop Word Search:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -31,4 +83,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Stopwords Resident Search Box -->
index c99cde1..17b3a87 100644 (file)
@@ -1,4 +1,46 @@
-<!-- Begin Members Resident Search Box -->
+<!-- Begin Suggestions Resident Search Box -->
+<!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
+YAHOO.util.Event.onContentReady("header_search", function() {
+    new function() {
+        // Define a custom formatter function
+        this.fnCustomFormatter = function(oResultItem, sQuery) {
+            var name        = oResultItem[0];
+            var cardnumber  = oResultItem[1];
+            var address     = oResultItem[2];
+            var city        = oResultItem[3];
+            var zip         = oResultItem[4];
+            var aMarkup = [
+                "<div class='sample-result'>",
+                name,
+                " (",
+                cardnumber,
+                ")<small> -- ",
+                address,
+                ", ",
+                city,
+                "</small>",
+                "</div>"];
+            return (aMarkup.join(""));
+        };
+
+        // Instantiate one XHR DataSource and define schema as an array:
+        //     ["Record Delimiter",
+        //     "Field Delimiter"]
+        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
+        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
+        this.oACDS.maxCacheEntries = 60;
+        this.oACDS.queryMatchSubset = true;
+    
+        // Instantiate first AutoComplete
+        var myInput = document.getElementById('findborrower');
+        var myContainer = document.getElementById('yborrowercontainer');
+        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
+        //this.oAutoComp.delimChar = ";";
+        //this.oAutoComp.queryDelay = 1;
+        this.oAutoComp.formatResult = this.fnCustomFormatter;
+}
+});    
+</script><!-- /TMPL_IF -->
 <div id="header_search">
        <div id="suggestions_search" class="residentsearch">
        <p class="tip">Suggestions Search:</p>
        </div>
        <div id="circ_search" class="residentsearch">
        <p class="tip">Enter patron card number or partial name:</p>
-       <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
-                       <label for="findborrower"> </label>
-    <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
-       <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
-    <input name="printer" value="" type="hidden" />
-       <input value="Submit" type="submit" />
-       </form>
+    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
+    <!-- TMPL_IF NAME="CircAutocompl" -->
+    <div class="autocomplete">
+            <div id="borrowerautocomplete" class="autocomplete">
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
+                <div id="yborrowercontainer"></div>
+                <input id="ysearchsubmit" type="submit" value="Submit">
+                <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+                <input name="printer" value="" type="hidden" />
+            </div>
+        </div>
+       <!-- TMPL_ELSE -->
+            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
+            <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
+            <input name="printer" value="" type="hidden" />
+            <input value="Submit" type="submit" />
+       <!-- /TMPL_IF -->
+    </form>
        </div>  
        <div id="catalog_search" class="residentsearch">
        <p class="tip">Enter search keywords:</p>
@@ -32,4 +85,4 @@
                        <li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li>
                        </ul>   
 </div>
-<!-- End Members Resident Search Box -->
+<!-- End Suggestions Resident Search Box -->
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/yui-toolbars.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/yui-toolbars.inc
deleted file mode 100644 (file)
index d299270..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!-- Core + Skin CSS -->
-<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/button/assets/skins/sam/button.css" />
-<!-- OPTIONAL: Menu Stylesheet (required for creating buttons of type "menu" and "split") -->
-<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/menu/assets/skins/sam/menu.css" />
-<!-- Dependencies -->
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/element/element-beta-min.js"></script>
-<!-- OPTIONAL: Menu and Container Core (required for creating buttons of type "menu" and "split") -->
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/container/container_core-min.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/menu/menu-min.js"></script>
-<!-- Source file -->
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/autocomplete.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/autocomplete.css
new file mode 100644 (file)
index 0000000..72203f7
--- /dev/null
@@ -0,0 +1,58 @@
+.autocomplete .yui-ac {
+    position:relative;
+    font-size:100%;
+}
+.autocomplete .yui-ac-input { 
+    position:absolute;
+    width:100%;}
+.autocomplete .yui-ac-container { 
+    position:absolute;
+    top:1.6em;
+    width:100%;
+}
+.autocomplete .yui-ac-content {
+    position:absolute;
+    width:100%;
+    border:1px solid #808080;
+    background:#fff;
+    overflow:hidden;
+    z-index:9050;
+}
+.autocomplete .yui-ac-shadow {
+    position:absolute;
+    margin:.3em;
+    width:100%;
+    background:#000;
+    -moz-opacity:0.10;
+    opacity:.10;
+    filter:alpha(opacity=10);
+    z-index:9049;
+}
+.autocomplete .yui-ac-content ul {
+    margin:0;
+    padding:0;
+    width:100%;
+}
+.autocomplete .yui-ac-content li {
+    margin:0;
+    padding:2px 5px;
+    cursor:default;
+    white-space:nowrap;
+}
+.autocomplete .yui-ac-content li.yui-ac-prehighlight {
+    background:#B3D4FF;
+}
+.autocomplete .yui-ac-content li.yui-ac-highlight {
+    background:#426FD9;
+    color:#FFF;
+}
+
+#borrowerautocomplete { width: 405px; text-align:left;} /* z-index needed on top instances for ie & sf absolute inside relative issue */
+.autocomplete { width:130px; }/* set width of widget here*/
+.autocomplete .yui-ac-highlight ,
+.autocomplete .yui-ac-highlight .sample-result,
+.autocomplete .yui-ac-highlight .sample-query { color:#FFF; }
+.autocomplete .sample-result { color: black; }
+.autocomplete .sample-query { color:#000; }
+#findborrower { position:static; width:335px; }  */
+#yborrowercontainer { text-align:left;width:300px; }
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/button.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/button.css
new file mode 100644 (file)
index 0000000..dfb8f9f
--- /dev/null
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2007, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.3.1
+*/
+body .yui-button{display:-moz-inline-box;display:inline-block;}body .yui-button .first-child{display:block;*display:inline-block;}body .yui-button button,body .yui-button a{display:block;*display:inline-block;border:none;}body .yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}body .yui-button a{text-decoration:none;}body .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(yui-sprite.png) repeat-x 0 0;margin:auto .25em;}body .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;*position:relative;*left:-1px;}body .yui-button button,body .yui-button a{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}body .yui-split-button button,body .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}body .yui-menu-button button{background-image:url(menu-button-arrow.png);}body .yui-split-button button{background-image:url(split-button-arrow.png);}body .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}body .yui-button-focus .first-child{border-color:#7D98B8;}body .yui-button-focus button,body .yui-button-focus a{color:#000;}body .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}body .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}body .yui-button-hover .first-child{border-color:#7D98B8;}body .yui-button-hover button,body .yui-button-hover a{color:#000;}body .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}body .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}body .yui-button-active .first-child{border-color:#7D98B8;}body .yui-button-active button,body .yui-button-active a{color:#000;}body .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}body .yui-split-button-activeoption .first-child{border-color:#808080;}body .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}body .yui-radio-button-checked,body .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}body .yui-radio-button-checked .first-child,body .yui-checkbox-button-checked .first-child{border-color:#304369;}body .yui-radio-button-checked button,body .yui-checkbox-button-checked button{color:#fff;}body .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}body .yui-button-disabled .first-child{border-color:#ccc;}body .yui-button-disabled button,body .yui-button-disabled a{color:#A6A6A6;cursor:default;}body .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}body .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow-disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow-disabled.png
new file mode 100644 (file)
index 0000000..8cef2ab
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow-disabled.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow.png
new file mode 100644 (file)
index 0000000..f03dfee
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu.css
new file mode 100644 (file)
index 0000000..2b18dc6
--- /dev/null
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2007, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.3.1
+*/
+.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;visibility:hidden;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{white-space:nowrap;}.yui-menu-shadow{position:absolute;z-index:-1;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow{overflow:auto;}body .yuimenubar{border:solid 1px #808080;background:url(yui-sprite.png) repeat-x 0 0;}body .yuimenubar .bd,body .yuimenubar ul{*zoom:1;}body .yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}body .yuimenubaritem{float:left;}body .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}body .yuimenubaritemlabel{display:block;*display:inline-block;font-size:93%;line-height:2;*line-height:1.9;padding:0 10px;color:#000;text-decoration:none;outline:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;position:relative;margin:-1px 0;}body .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;}body .yuimenubaritemlabel .submenuindicator{width:1px;height:1px;top:0;left:0;}body .yuimenubarnav .yuimenubaritemlabel .submenuindicator{top:50%;right:8px;left:auto;margin-top:-3px;height:4px;width:7px;text-indent:8px;background-position:-16px -856px;}body .yuimenubaritem a.selected{background:url(yui-sprite.png) repeat-x 0 -1700px;border-color:#7D98B8;}body .yuimenubarnav .yuimenubaritem a.selected{border-left-width:1px;margin-left:-1px;*left:-1px;}body .yuimenubar a.selected .submenuindicator{background:transparent;}body .yuimenubarnav a.selected .submenuindicator{background:url(yui-sprite.png) repeat-x -16px -856px;}body .yuimenubaritem a.disabled{cursor:default;color:#A6A6A6;}body .yuimenubarnav .yuimenubaritem a.disabled .submenuindicator{background-position:-16px -881px;}body .yuimenu .bd{border:solid 1px #808080;background-color:#fff;}body .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}body .yuimenu ul.first-of-type{border-width:0;}body .yuimenu h6{font-size:93%;font-weight:bold;line-height:1.5;*line-height:1.45;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}body .yuimenu ul.hastitle,body .yuimenu h6.first-of-type{border-width:0;}body .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}body .yuimenu .topscrollbar,body .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(yui-sprite.png) no-repeat 0 0;}body .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}body .yuimenu .topscrollbar_disabled{background-position:center -975px;}body .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}body .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}body .yuimenuitemlabel{font-size:93%;line-height:1.5;*line-height:1.45;padding:0 20px;display:block;color:#000;text-decoration:none;outline:none;position:relative;*position:static;cursor:default;}body .yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1.5em 0 0 10em;*margin-top:-1.45em;}body .yuimenuitemlabel .submenuindicator,body .yuimenuitemlabel .checkedindicator,body .yuimenubaritemlabel .submenuindicator{position:absolute;overflow:hidden;background:url(yui-sprite.png) no-repeat;}body .yuimenuitemlabel .submenuindicator,body .yuimenuitemlabel .checkedindicator{*position:static;*display:inline-block;}body .yuimenuitemlabel .submenuindicator{top:50%;right:8px;margin-top:-3px;height:7px;width:4px;text-indent:5px;background-position:0 -906px;}body .yuimenuitemlabel .checkedindicator{top:50%;left:8px;margin-top:-3px;height:7px;width:7px;text-indent:8px;background-position:0 -1006px;}body .visible .yuimenuitemlabel .submenuindicator{*float:right;*margin:-1em 8px 0 8px;}body .visible .yuimenuitem .hassubmenu{*padding-right:0;}body .visible .yuimenuitemlabel .checkedindicator{*float:left;*margin:-1em 0 0 -12px;}body .yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;opacity:.12;*filter:alpha(opacity=12);visibility:visible;}body .visible .bd,body .visible .yuimenuitem{_zoom:1;}body .visible .yuimenuitemlabel{*zoom:1;}body .yuimenuitem a.selected{background:#B3D4FF;}body .yuimenubar .yuimenuitem a.selected .submenuindicator{background:url(yui-sprite.png) no-repeat 0 -906px;}body .yuimenubarnav .yuimenuitem a.selected{border-width:0;margin:0;*left:0;}body .yuimenuitem a.disabled{cursor:default;color:#A6A6A6;}body .yuimenuitem a.disabled .submenuindicator{background-position:0 -931px;}body .yuimenuitem a.disabled .checkedindicator{background-position:0 -1031px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-active.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-active.png
new file mode 100644 (file)
index 0000000..fa58c50
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-active.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-disabled.png
new file mode 100644 (file)
index 0000000..0a6a82c
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-disabled.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-focus.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-focus.png
new file mode 100644 (file)
index 0000000..167d71e
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-focus.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-hover.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-hover.png
new file mode 100644 (file)
index 0000000..167d71e
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-hover.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow.png
new file mode 100644 (file)
index 0000000..b33a93f
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow.png differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yui-sprite.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yui-sprite.png
new file mode 100644 (file)
index 0000000..afd65e0
Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yui-sprite.png differ
index 11be412..6bced21 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
 
index 1dbf263..2c2ac54 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
 
index 5921041..f52745a 100644 (file)
@@ -12,7 +12,7 @@ function confirm_deletion() {
 //]]>
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
 
index 968129b..5e9a51d 100644 (file)
@@ -20,7 +20,7 @@ function searchauthority() {
 //]]>
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="authorities-search.inc" -->
 
index bac4f38..3221f95 100644 (file)
@@ -27,7 +27,7 @@ function searchauthority() {
 //]]>
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="authorities-search.inc" -->
 
index 5f8f1ae..3f5f077 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
index f707132..a85f5e2 100644 (file)
@@ -17,7 +17,7 @@ function Changefwk(FwkList) {
 //]]>
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
index 4759ae0..f148f86 100644 (file)
@@ -4,7 +4,7 @@
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
 
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
index 4f08d73..4c49882 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
index 290a88d..f036f3f 100644 (file)
@@ -425,7 +425,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
        }
 </style>
 </head>
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 
index 93ad58d..75510e8 100644 (file)
@@ -8,7 +8,7 @@
  });
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cataloging-search.inc" -->
 
index 5585102..16bd054 100644 (file)
@@ -1,15 +1,11 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
 <title>Koha &rsaquo; Circulation</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
 <body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
-
-<!-- TMPL_IF NAME="CircAutocompl" -->
-<!-- TMPL_INCLUDE NAME="circ-search-autocompl.inc" -->
-<!-- TMPL_ELSE -->
 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
-<!-- /TMPL_IF -->
 
 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Circulation</div>
 
index 42506f9..dcd53f6 100755 (executable)
@@ -15,7 +15,7 @@
 </script>
 
 </head>
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
index aaa1543..bb075c6 100644 (file)
             </fieldset>
         </form>
     <!-- TMPL_IF NAME="errmsgloop" -->
-    <fieldset>
-        <legend>Error</legend>
+    <div class="message">
         <!-- TMPL_LOOP Name="errmsgloop" -->
                     <!-- TMPL_IF Name="badbarcode" -->
                         <p class="problem">No Item with barcode: <!-- TMPL_VAR Name="msg" --></p>
                     <!-- /TMPL_IF -->
             <!-- /TMPL_LOOP -->
         <!-- /TMPL_IF -->
-    </fieldset>
+    </div>
 <!-- /TMPL_IF -->
 
 <!-- TMPL_IF Name="returned" -->
index e4d3714..a228295 100644 (file)
@@ -20,7 +20,7 @@
         <h2>Holds for your library on : <!-- TMPL_VAR NAME="show_date" --></h2>
         <!-- TMPL_IF NAME="messagetransfert" -->
                 <div>
-                                <h2>Hold find for(<!-- TMPL_VAR NAME="nextreservtitle" -->)must transfered</h2>
+                                <h2>Hold find for (<!-- TMPL_VAR NAME="nextreservtitle" -->) must transfered</h2>
                         <p>This hold placed by : <b> <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b> at the library : <b> <!-- TMPL_VAR NAME="branchname" --> </b>, Please transfer this hold.
                         </p>
                         <form name="cancelReservewithtransfert" action="waitingreserves.pl" method="post">
index 221359c..4280a25 100644 (file)
@@ -2,7 +2,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
index a332ac8..399b5be 100644 (file)
@@ -7,7 +7,7 @@ function Plugin(batch_id) {
 }
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
index 651cd8d..784634b 100644 (file)
@@ -2,7 +2,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
index 7440d1a..043fa1b 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index b932100..e8e51dd 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index db790c1..4a8ef08 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index 1408327..ce80da8 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index b0bf153..d73262a 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index bbc599d..1b4fc36 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index 604010a..140571d 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index 32a985b..3fa169c 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index d84ade6..edb5f9d 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index ee5c085..fef2b4b 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
 
index 296d0a2..dbae750 100644 (file)
@@ -38,7 +38,7 @@ $(document).ready(function() {
 //]]>
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
 
index 32c378e..5b793dd 100644 (file)
@@ -3,7 +3,7 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
 
index ebc3705..b82926b 100644 (file)
@@ -93,7 +93,7 @@ function popup(subscriptionid) {
 -->
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
 
index a48d131..0d1a0e7 100644 (file)
@@ -4,7 +4,7 @@
 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
 <!-- TMPL_UNLESS NAME="add_form" --><!-- TMPL_INCLUDE NAME="yui-toolbars.inc" --><!-- /TMPL_UNLESS -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
index 47fb69d..848e1d1 100644 (file)
@@ -95,7 +95,7 @@
                </script>
        <!-- /TMPL_IF -->
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="letters-search.inc" -->
 
index 60db0fc..975a320 100644 (file)
@@ -60,7 +60,7 @@ function confirmDelete(s){
        //]]>
 </script>
 </head>
-<body class="yui-skin-sam">
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->