Styling facets; correcting markup error in search results; removing language picker...
authorOwen Leonard <oleonard@myacpl.org>
Fri, 25 Jan 2008 21:04:25 +0000 (15:04 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 25 Jan 2008 22:52:10 +0000 (16:52 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
koha-tmpl/opac-tmpl/prog/en/lib/yui/button.css
koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
opac/opac-search.pl

index f682b75..78e41e5 100644 (file)
@@ -157,7 +157,7 @@ h1#libraryname a {
        text-decoration:none;
        width:120px;
 }
-
+/*
 div#cartmenubutton {
        background:transparent url(../../images/cart-button.gif) no-repeat scroll 0%;
        border: 0;
@@ -199,7 +199,7 @@ div#listmenubutton a {
        text-decoration:none;
        width:84px;
 }
-
+*/
 h1,h2,h3,h4,h5,h6 {
        font-weight : bold;
        margin : .5em 0;
@@ -467,9 +467,45 @@ a .term {
        font-weight : bold;
 }
 
-/***********************************************************/
-/* the user menu, for user option (and biblio detail view) */
-/***********************************************************/
+
+#search-facets ul {
+       margin : 0;
+       padding : .3em;
+}
+
+#search-facets {
+       border : 1px solid #e8e8e8;
+}
+
+#search-facets h4 {
+       background-color : #EFF1DC;
+       border-bottom : 1px solid #e8e8e8;
+       font-size : 90%;
+       margin : 0;
+       padding : .4em .2em;
+       text-align : center;
+}
+
+#search-facets ul li {
+       font-weight : bold;
+       list-style-type : none;
+}
+
+#search-facets li li {
+       font-weight : normal;
+       font-size : 85%;
+       margin-bottom : 2px;
+       padding : .1em .2em;
+}
+
+#search-facets li li a {
+       font-weight : normal;
+}
+
+#search-facets li.showmore a {
+       font-weight : bold;
+       text-indent : 1em;
+}
 
 .suggestion {
        background-color : #EEEEEB;
@@ -668,6 +704,10 @@ a.cancel {
        margin-top : 5px;
 }
 
+.searchresults p.details {
+       color : #979797;
+}
+
 .searchresults p {
        margin: 0;
        padding: 0;
@@ -978,8 +1018,7 @@ line-height : 25px;
 /* End hide from IE-mac */
 
 .searchhighlightblob {
-    font-size:75%;
-       font-style : italic;
+       font-size : 85%;
 }
 
 
@@ -1022,7 +1061,7 @@ div.message {
        font-weight : normal;
        text-decoration : none;
 }
-
+/*
 #cart-box {
        float : left;
        background : url(../../images/cart-background-right.gif) top right no-repeat;
@@ -1058,7 +1097,7 @@ div.message {
 #cart-box a.cartbutton {
        background : #9bc1dd url(../../images/cart-small.gif) center left no-repeat;
        padding-left : 20px;
-}
+}*/
 
 #opac-main-search #listsmenu a, #opac-main-search #listsmenu h4 {
        color : #000;
@@ -1118,7 +1157,6 @@ ul#i18nMenu li:first-child {
 ul#i18nMenu li ul li {
        border : 0;
        display : block;
-       padding : 0;
  }
  
                
@@ -1172,4 +1210,9 @@ ul#i18nMenu li.more ul li a {
  div#changelanguage a.yuimenuitemlabel {
        color : #006699;
        font-weight : normal;
- }
\ No newline at end of file
+ }
+       #cartDetails {
+               background-color : #FFF;
+               border: 1px solid black;
+               padding : .5em;
+       }
\ No newline at end of file
index 4014c1f..b6bf637 100644 (file)
@@ -1,8 +1,3 @@
-<div class="yui-g"><div id="corner"><!-- TMPL_IF NAME="opaclanguagesdisplay" --><div id="languages">
-       <ul>
-               <!-- TMPL_LOOP NAME="languages" --><li><a href="/cgi-bin/koha/changelanguage.pl?language=<!-- TMPL_VAR NAME="language" -->"><!-- TMPL_VAR NAME="label" --></a> </li><!-- /TMPL_LOOP -->
-       </ul></div><!-- /TMPL_IF --></div></div>
-
 <div id="members">
        <ul><!-- TMPL_IF NAME="loggedinusername" --><li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></a></span></li><li><a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/opac-user.pl">Log in to Your Account</a></li><!-- /TMPL_IF -->
        </ul>   
     <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
        <label for="masthead_search"> Search <!-- TMPL_IF name="mylibraryfirst" --> <!-- TMPL_IF name="loggedinusername" -->(in <!-- TMPL_VAR name="LoginBranchcode" --> only)<!-- /TMPL_IF --><!-- /TMPL_IF --></label>
        <select name="idx" id="masthead_search">
-        <option <!-- TMPL_IF NAME="ms_kw" -->selected="selected"<!-- /TMPL_IF --> value="">Library Catalog</option>
-        <option <!-- TMPL_IF NAME="ms_ti" -->selected="selected"<!-- /TMPL_IF --> value="ti">Title</option>
-        <option <!-- TMPL_IF NAME="ms_au" -->selected="selected"<!-- /TMPL_IF --> value="au">Author</option>
-        <option <!-- TMPL_IF NAME="ms_su" -->selected="selected"<!-- /TMPL_IF --> value="su">Subject</option>
-               <option <!-- TMPL_IF NAME="ms_isbn" -->selected="selected"<!-- /TMPL_IF --> value="isbn">ISBN</option>
-        <option <!-- TMPL_IF NAME="ms_se" -->selected="selected"<!-- /TMPL_IF --> value="se">Series</option>
-        <option <!-- TMPL_IF NAME="ms_callnum" -->selected="selected"<!-- /TMPL_IF --> value="callnum">Call Number</option>
-</select>
-        <input type="text" name="q" <!-- TMPL_IF NAME="ms_value" -->value="<!-- TMPL_VAR NAME="ms_value" -->" <!-- /TMPL_IF --> style="width: 40%;" />
+       <!-- TMPL_IF NAME="ms_kw" -->
+        <option selected="selected" value="">Library Catalog</option>
+               <!-- TMPL_ELSE -->
+        <option value="">Library Catalog</option>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="ms_ti" -->
+        <option selected="selected" value="ti">Title</option>
+               <!-- TMPL_ELSE -->
+        <option value="ti">Title</option>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="ms_au" -->
+        <option selected="selected" value="au">Author</option>
+               <!-- TMPL_ELSE -->
+        <option value="au">Author</option>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="ms_su" -->
+        <option selected="selected" value="su">Subject</option>
+               <!-- TMPL_ELSE -->
+        <option value="su">Subject</option>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="ms_isbn" -->
+               <option selected="selected" value="isbn">ISBN</option>
+               <!-- TMPL_ELSE -->
+               <option value="isbn">ISBN</option>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="ms_se" -->
+        <option selected="selected" value="se">Series</option>
+               <!-- TMPL_ELSE -->
+        <option value="se">Series</option>
+               <!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="ms_callnum" -->
+        <option selected="selected" value="callnum">Call Number</option>
+               <!-- TMPL_ELSE -->
+        <option value="callnum">Call Number</option>
+               <!-- /TMPL_IF --></select>
+<!-- TMPL_IF NAME="ms_value" -->
+        <input type="text" name="q" value="<!-- TMPL_VAR NAME="ms_value" -->"  style="width: 40%;" />
+<!-- TMPL_ELSE -->
+        <input type="text" name="q" style="width: 40%;" />
+<!-- /TMPL_IF -->
         <!-- TMPL_IF name="mylibraryfirst" --><!-- TMPL_IF name="loggedinusername" -->
             <input name="limit" value="<!-- TMPL_VAR name="LoginBranchcode" -->" type="hidden" />
         <!-- /TMPL_IF --><!-- /TMPL_IF -->
 
 <script type="text/javascript">
 $(document).ready(function() {
-       $("#listmenubutton").hover(function(){
-                 $(this).attr("src","/opac-tmpl/prog/images/lists-button-on.gif");
-       },function(){
-                 $(this).attr("src","/opac-tmpl/prog/images/lists-button.gif");
-       });
-       
-       $("#cartmenubutton").hover(function(){
-                 $(this).attr("src","/opac-tmpl/prog/images/cart-button-on.gif");
-       },function(){
-                 $(this).attr("src","/opac-tmpl/prog/images/cart-button.gif");
-       });
+
+           var cartButton = new YAHOO.widget.Button("cartmenulink");
+               var listsButton = new YAHOO.widget.Button("listsmeulink");
        
  });
  
-    YAHOO.util.Event.onContentReady("cartmenu", function () {
-        var cartMenu = new YAHOO.widget.Menu("cartmenu", { lazyload: true });
-               cartMenu.render();
-               cartMenu.cfg.setProperty("context", ["cartmenubutton", "tr", "br"]);
-               cartMenu.subscribe("show", cartMenu.focus);
-        function positioncartMenu() {
-                    cartMenu.align("tr", "br");
-               }
-               YAHOO.util.Event.addListener("cartmenubutton", "click", cartMenu.show, null, cartMenu);
-               YAHOO.widget.Overlay.windowResizeEvent.subscribe(positioncartMenu);
-    });
-
-    YAHOO.util.Event.onContentReady("listsmenu", function () {
+   YAHOO.util.Event.onContentReady("listsmenu", function () {
         var listMenu = new YAHOO.widget.Menu("listsmenu", { lazyload: true });
                listMenu.render();
-               listMenu.cfg.setProperty("context", ["listmenubutton", "tr", "br"]);
+               listMenu.cfg.setProperty("context", ["listsmeulink", "tr", "br"]);
                listMenu.subscribe("show", listMenu.focus);
         function positionlistMenu() {
                     listMenu.align("tr", "br");
                }
-               YAHOO.util.Event.addListener("listmenubutton", "click", listMenu.show, null, listMenu);
+               YAHOO.util.Event.addListener("listsmeulink", "click", listMenu.show, null, listMenu);
                YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionlistMenu);
     });
     
@@ -102,29 +108,20 @@ $(document).ready(function() {
 <script>
 
                function init() {
-
-                       // Build overlay3 dynamically, initially hidden, aligned to context element "context", and 200px wide
-                       var cartOverlay = new YAHOO.widget.Overlay("overlay3", { context:["cartmenubutton","tr","br"],
+                       var cartOverlay = new YAHOO.widget.Overlay("cartDetails", { context:["cartmenubutton","tr","br"],
                                                                                                                                                                          visible:false,
                                                                                                                                                                          width:"200px" } );
-                       cartOverlay.setHeader("Overlay #3 from Script");
-                       cartOverlay.setBody("This is a dynamically generated Overlay.");
-                       cartOverlay.setFooter("End of Overlay #3");
+                       // cartOverlay.setHeader("Overlay #3 from Script");
+                       cartOverlay.setBody("Your cart contains 3 items.");
+                       // cartOverlay.setFooter("End of Overlay #3");
                        cartOverlay.render(document.body);
 
-                       YAHOO.util.Event.addListener("cartmenubutton", "mouseover", cartOverlay.show, cartOverlay, true);
-                       YAHOO.util.Event.addListener("cartmenubutton", "mouseout", cartOverlay.hide, cartOverlay, true);
+                       YAHOO.util.Event.addListener("cartmenulink", "mouseover", cartOverlay.show, cartOverlay, true);
+                       YAHOO.util.Event.addListener("cartmenulink", "mouseout", cartOverlay.hide, cartOverlay, true);
                }
 
                YAHOO.util.Event.addListener(window, "load", init);
 </script>
-<style>
-       #overlay3 {
-               background-color : #FFF;
-               border: 1px solid black;
-               padding : .5em;
-       }
-</style>
 
 <div id="listsmenu" class="yuimenu">
     <div class="bd">
@@ -143,8 +140,8 @@ $(document).ready(function() {
 </div>
 
 
-<div id="cartmenubutton"><a href="#basket">Your Cart</a></div>
-<div id="listmenubutton"><a href="#listmenu">Your Lists</a></div>
+<a id="cartmenulink" href="#basket">Your Cart</a>
+<a id="listsmeulink" href="#listmenu">Your Lists</a>
 
 <!-- <!-- TMPL_IF NAME="opacbookbag" --><div><a class="button cart" href="/cgi-bin/koha/opac-basket.pl" onclick="openBasket(); return false;" title="A &quot;shopping cart&quot; for your selections"><span><span><span><span>Book Bag</span></span></span></span></a></div><!-- /TMPL_IF -->
        <!--TMPL_IF NAME="virtualshelves" --><div><a class="button lists" href="/cgi-bin/koha/opac-shelves.pl"><span><span><span><span>Lists</span></span></span></span></a></div><!-- /TMPL_IF --> -->
@@ -156,7 +153,7 @@ $(document).ready(function() {
 
        <div id="breadcrumbs" class="yui-g">
 
-<!-- TMPL_IF NAME="searchdesc" --><p><!-- TMPL_IF name="total" --><strong>&ldquo;<!-- TMPL_VAR NAME="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->&rdquo; </strong>returned <!-- TMPL_VAR NAME="total" --> results. <!-- TMPL_IF NAME="available" -->Showing only <strong>available</strong> items. <a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi_not_availablity" -->">Show all items</a><!-- TMPL_ELSE -->Limit to <a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" -->&amp;limit=available">currently available items.</a><!-- /TMPL_IF --><!-- TMPL_IF NAME="related" --> (related searches: <!-- TMPL_LOOP NAME="related" --><!-- TMPL_VAR NAME="related_search" --><!-- /TMPL_LOOP -->). <!-- /TMPL_IF -->
+<!-- TMPL_IF NAME="searchdesc" --><p><!-- TMPL_IF name="total" --><strong>&ldquo;<!-- TMPL_VAR NAME="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->&rdquo; </strong>returned <!-- TMPL_VAR NAME="total" --> results. <!-- TMPL_IF NAME="related" --> (related searches: <!-- TMPL_LOOP NAME="related" --><!-- TMPL_VAR NAME="related_search" --><!-- /TMPL_LOOP -->). <!-- /TMPL_IF -->
 
 <!-- TMPL_ELSE -->
 <!-- TMPL_IF NAME="searchdesc" -->
index dbd8db8..f56ff1f 100644 (file)
@@ -1,14 +1,20 @@
 <!-- TMPL_IF NAME="opacfacets" -->
 <!-- TMPL_IF NAME="facets_loop" -->
-<ul id="search_facets">
-<li><h4>Refine your search</h4></li>
+<div id="search-facets">
+<h4>Refine your search</h4>
+<ul>
+       <li>Availability<ul><li><!-- TMPL_IF NAME="available" -->Showing only <strong>available</strong> items. <a href="/cgi-bin/koha/catalogue/search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi_not_availablity" --><!-- TMPL_IF NAME="sort_by" -->&sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->">Show all items</a><!-- TMPL_ELSE -->Limit to <a href="/cgi-bin/koha/catalogue/search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" --><!-- TMPL_IF NAME="sort_by" -->&sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->&amp;limit=available">currently available items.</a><!-- /TMPL_IF --></li></ul>
+       <!-- TMPL_IF NAME="related" --> <li>(related searches: <!-- TMPL_LOOP NAME="related" --><!-- TMPL_VAR NAME="related_search" --><!-- /TMPL_LOOP -->)</li><!-- /TMPL_IF -->
+       </li>
+       
 <!-- TMPL_LOOP NAME="facets_loop" -->
 <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" --><ul>
-        <!-- TMPL_LOOP NAME="facets" --><li><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" --><!-- TMPL_IF NAME="sort_by" -->&sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->&amp;limit=<!-- TMPL_VAR NAME="type_link_value" -->:<!-- TMPL_VAR NAME="facet_link_value" -->" title="<!-- TMPL_VAR NAME="facet_title_value" -->"><!-- TMPL_VAR NAME="facet_label_value" --></a> <!-- (<!-- TMPL_VAR NAME="facet_count" -->)--></li><!-- /TMPL_LOOP --><!-- TMPL_IF NAME="expandable" -->
+        <!-- TMPL_LOOP NAME="facets" --><li><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" --><!-- TMPL_IF NAME="sort_by" -->&sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->&amp;limit=<!-- TMPL_VAR NAME="type_link_value" -->:<!-- TMPL_VAR NAME="facet_link_value" -->" title="<!-- TMPL_VAR NAME="facet_title_value" -->"><!-- TMPL_VAR NAME="facet_label_value" --></a> <!-- (<!-- TMPL_VAR NAME="facet_count" -->) --></li><!-- /TMPL_LOOP --><!-- TMPL_IF NAME="expandable" -->
         <li class="showmore"><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">Show More</a></li>
 <!-- /TMPL_IF -->
 </ul></li>
 <!-- /TMPL_LOOP -->
 </ul>
+</div>
 <!-- /TMPL_IF -->
 <!-- /TMPL_IF -->
index dfb8f9f..de01080 100644 (file)
@@ -2,6 +2,6 @@
 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
+version: 2.4.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);}
+.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;*position:relative;*left:-1px;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:2;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
index c81d4dc..d0d79e6 100644 (file)
 </div>
 <!-- /TMPL_IF -->
 
-<!-- TMPL_IF NAME="languages" -->
-<div id="opac-main-changelanguage">
-    <h1>Change language</h1>
-    <form action="/cgi-bin/koha/changelanguage.pl" method="post">
-        <label for="selectlang">Set language to</label>
-        <select id="selectlang" name="language" onchange="javascript:submit();">
-            <!-- TMPL_LOOP NAME="languages" -->
-                <option value="<TMPL_VAR NAME="language">">
-                    <!-- TMPL_VAR NAME="language" -->
-                </option>
-            <!-- /TMPL_LOOP -->
-        </select>
-        <input type="submit" value="Change" />
-    </form>
-</div>
-<!-- /TMPL_IF -->
-
 <!-- TMPL_IF NAME="recentacquiloop"-->
     <div class="searchresults">
         <table>
index 8e73b46..fde1d0d 100644 (file)
@@ -133,7 +133,7 @@ href="/cgi-bin/koha/opac-rss.pl?<!-- TMPL_VAR name="query_cgi"--><!-- TMPL_VAR N
                         <!-- /TMPL_IF -->
                     </td>
                     <td><!-- TMPL_VAR NAME="result_number" -->. <!-- TMPL_IF name="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><!-- TMPL_IF name="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author_nospan" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
-                               <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
+                               <p class="details"> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
                                                <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
                                                <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
                                                <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
@@ -197,5 +197,6 @@ href="/cgi-bin/koha/opac-rss.pl?<!-- TMPL_VAR name="query_cgi"--><!-- TMPL_VAR N
         <!-- FACETS END -->
 </div>
 </div>
+</div>
 
 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
index b5a9c1c..ef2985c 100755 (executable)
@@ -11,7 +11,6 @@ use C4::Context;
 use C4::Output;
 use C4::Auth;
 use C4::Search;
-use C4::Languages qw(getAllLanguages);
 use C4::Koha;
 use POSIX qw(ceil floor);
 use C4::Branch; # GetBranches
@@ -101,9 +100,15 @@ foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtype
 }
 $template->param(itemtypeloop => \@itemtypesloop);
 
+<<<<<<< HEAD:opac/opac-search.pl
 # load the ccodes
 # my ($ccodecount,@ccode_loop) = GetCcodes();
 # $template->param(ccodeloop=>\@ccode_loop,);
+=======
+# # load the itypes (Called item types in the template -- just authorized values for searching)
+# my ($itypecount,@itype_loop) = GetCcodes();
+# $template->param(itypeloop=>\@itype_loop,);
+>>>>>>> Styling facets; correcting markup error in search results; removing language picker from opac-main (is now in the footer); continuing unfinished work on cart/lists buttons:opac/opac-search.pl
 
 # The following should only be loaded if we're bringing up the advanced search template
 if ( $template_type eq 'advsearch' ) {
@@ -148,6 +153,7 @@ if ( $template_type eq 'advsearch' ) {
     $template->param(uc(C4::Context->preference("marcflavour")) => 1,
                       search_boxes_loop => \@search_boxes_array);
 
+<<<<<<< HEAD:opac/opac-search.pl
     # load the language limits (for search)
     my $languages_limit_loop = getAllLanguages();
     $template->param(search_languages_loop => $languages_limit_loop,);
@@ -160,6 +166,16 @@ if ( $template_type eq 'advsearch' ) {
     if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) {
         $template->param( expanded_options => $cgi->param('expanded_options'));
     }
+=======
+# use the global setting by default
+       if ( C4::Context->preference("expandedSearchOption") == 1) {
+               $template->param( expanded_options => C4::Context->preference("expandedSearchOption") );
+       }
+       # but let the user override it
+       if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) {
+       $template->param( expanded_options => $cgi->param('expanded_options'));
+       }
+>>>>>>> Styling facets; correcting markup error in search results; removing language picker from opac-main (is now in the footer); continuing unfinished work on cart/lists buttons:opac/opac-search.pl
 
     output_html_with_http_headers $cgi, $cookie, $template->output;
     exit;