Bug 27445: OPAC header tweaks for non-JavaScript users
This patch makes some minor changes to the header menu in the OPAC visible only to users with JavaScript support. To test, apply the patch and rebuild the OPAC CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - View the OPAC with JS disabled in your browser. - The "Cart" button should not be visible. - The "List," "Log in," and "Search history" links should be styled blue like other links. - Log in to the OPAC and confirm that the "Welcome <name>" link is also styled like other links. - Enable JavaScript and verify that the links appear and function just as they did before the patch. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
5da5a2bbc5
commit
bf0c2c7d8c
|
|
@ -20,6 +20,19 @@
|
|||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.dropdown-toggle::after {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#listsmenu,
|
||||
#user-menu,
|
||||
.nav-item .login-link {
|
||||
color: $links;
|
||||
|
||||
&:hover {
|
||||
color: $links-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.js {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
[% END %]
|
||||
<ul id="cart-list-nav" class="navbar-nav">
|
||||
[% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
|
||||
<li class="nav-item">
|
||||
<li class="nav-item js-show">
|
||||
<a href="#" class="nav-link" title="Collect items you are interested in" id="cartmenulink" role="button">
|
||||
<i id="carticon" class="fa fa-shopping-cart fa-icon-black" aria-hidden="true"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
|
||||
</a>
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
<li class="divider-vertical"></li>
|
||||
[% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
|
||||
<li class="nav-item dropdown">
|
||||
<a href="#" title="Show lists" class="nav-link dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"
|
||||
<a href="/cgi-bin/koha/opac-shelves.pl" title="Show lists" class="nav-link dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"
|
||||
><i class="fa fa-list fa-icon-black" aria-hidden="true"></i> <span class="listslabel">Lists</span>
|
||||
</a>
|
||||
<div aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
<li class="nav-item dropdown">
|
||||
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
|
||||
[% IF ( loggedinusername ) %]
|
||||
<a href="#" class="dropdown-toggle" id="user-menu" data-toggle="dropdown" role="button">
|
||||
<a href="/cgi-bin/koha/opac-user.pl" class="dropdown-toggle" id="user-menu" data-toggle="dropdown" role="button">
|
||||
<i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i>
|
||||
<span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue