Showing "more searches" menu options when JavaScript is disabled (Bug 3517)
authorOwen Leonard <oleonard@myacpl.org>
Mon, 10 Aug 2009 18:54:48 +0000 (13:54 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:44 +0000 (23:19 +0200)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl

index 0a1d132..0efb232 100644 (file)
@@ -1384,6 +1384,7 @@ div#menu li.active a:hover {
        padding : 3px;
        text-align : center;
 }
+#furtherm { margin-top : .5em; }
 
 #export label, .detailtagcell label {
        display : block;
index 553c272..b6465ac 100644 (file)
         $(".tagbutton").click(KOHA.Tags.add_tag_button);<!-- /TMPL_IF -->
                <!-- TMPL_IF NAME="opacbookbag" -->$("#action").append("<li><a class=\"addtocart\" href=\"#\" onclick=\"addRecord('"+$("input[name=bib]").val()+"'); return false;\">"+_("Add to Your Cart")+"<\/a><\/li>");
 <!-- /TMPL_IF -->});
+
+YAHOO.util.Event.onContentReady("furtherm", function () {
+    $("#furtherm").css("display","block").css("visibility","hidden");
+       $("#furthersearches").parent().show();
+       var furthersearchesMenu = new YAHOO.widget.Menu("furtherm");
+               furthersearchesMenu.render();
+               furthersearchesMenu.cfg.setProperty("context", ["furthersearches", "tr", "br"]);
+               furthersearchesMenu.subscribe("beforeShow",positionfurthersearchesMenu);
+               furthersearchesMenu.subscribe("show", furthersearchesMenu.focus);
+        function positionfurthersearchesMenu() {
+                    furthersearchesMenu.align("tr", "br");
+               }
+               YAHOO.util.Event.addListener("furthersearches", "click", furthersearchesMenu.show, null, furthersearchesMenu);
+               YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionfurthersearchesMenu);
+ });
+       
 //]]>
 </script>
 <style type="text/css">
 <ul>
 <!-- TMPL_LOOP NAME="AMAZON_SIMILAR_PRODUCTS" -->
 <!-- TMPL_LOOP NAME="similar_biblionumbers" -->
-<<<<<<< HEAD:koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
 <li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><img alt="" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="ASIN"-->.01._SS50_.jpg" /></a> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" ESCAPE="HTML" --></a> </li>
-=======
-<li><!-- TMPL_IF NAME="OPACAmazonCoverImages" --><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><img alt="" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="ASIN"-->.01._SS50_.jpg" /><!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="SyndeticsEnabled" --><!-- TMPL_IF NAME="SyndeticsCoverImages" --><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><img src="http://www.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="ASIN"-->/SC.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" --><!-- TMPL_IF NAME="normalized_upc" -->&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="normalized_oclc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" --><!-- /TMPL_IF -->&amp;type=xw10" alt="" /></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
-<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" ESCAPE="HTML" --></a>
->>>>>>> adde6f9... Correcting validation errors.:koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
 <!-- /TMPL_LOOP -->
 <!-- /TMPL_LOOP -->
 </ul>
 <!-- /TMPL_IF --><!-- /TMPL_IF -->
 
 <div id="further">
+
+               <li style="display:none;"><a href="#" id="furthersearches">More searches</a></li>
+</ul>
+
+<div id="furtherm" class="yuimenu">
+<div class="bd">
 <h4>Search for this title in:</h4>
 <ul>
 <li><!-- TMPL_IF NAME="OPACURLOpenInNewWindow" --><a href="http://worldcat.org/search?q=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->" target="_blank">Other Libraries (WorldCat)</a><!-- TMPL_ELSE --><a href="http://worldcat.org/search?q=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->">Other Libraries (WorldCat)</a><!-- /TMPL_IF --></li>