33c12cf395
This patch makes it easier to avoid having the top bar overlap other OPAC page content (particularly custom header content set via the opacheader system preference). This is done by moving the top-nav div outside of the main doc3 div and adjusting the CSS accordingly. Yes, this does end up having top-nav.inc be included from opac-bottom.inc, but it would require touching rather more templates to have it be included immediately after the <body> tag. This patch also removes a duplicate instance of the cmspan span. To test: [1] Change to the CCSR OPAC theme. [2] Before applying the patch, open a set of OPAC pages (e.g., main page, user page, search results, bib details) in your web browser. [3] Apply the patch, and open the same OPAC pages in separate tabs. Comparing the pre- and post- version of each page to verify that the placement [4] Add an OpAC header using the opacheader system preference. [5] Verify that the header is displayed without overlapping the top bar. Signed-off-by: Galen Charlton <gmc@esilibrary.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
73 lines
3.3 KiB
HTML
73 lines
3.3 KiB
HTML
<div id="top-bar">
|
|
<ul id="menu-left">
|
|
<!-- [% IF ( opacbookbag ) %] -->
|
|
<li>
|
|
<span id="cmspan"></span>
|
|
<div id="cartDetails">Your cart is empty.</div>
|
|
</li>
|
|
<!-- [% END %] -->
|
|
|
|
[% IF ( virtualshelves ) %]
|
|
|
|
<li id="listsmenulink">
|
|
<a href="/cgi-bin/koha/opac-shelves.pl" class="">
|
|
<span>Lists</span>
|
|
</a>
|
|
<div id="listsmenu" class="yuimenu" style="display: none">
|
|
<h4>Public lists</h4>
|
|
[% IF ( pubshelves ) %]
|
|
<ul class="first-of-type">
|
|
[% FOREACH pubshelvesloo IN pubshelvesloop %]
|
|
<li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
|
|
[% END %]
|
|
<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
|
|
</ul>
|
|
[% ELSE %]
|
|
No public lists
|
|
[% END %]
|
|
[% IF ( opacuserlogin ) %]
|
|
<h4>Your lists</h4>
|
|
[% IF ( loggedinusername ) %]
|
|
[% IF ( barshelves ) %]
|
|
<ul class="first-of-type">
|
|
[% FOREACH barshelvesloo IN barshelvesloop %]
|
|
<li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
|
|
[% END %]
|
|
<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li>
|
|
</ul>
|
|
[% ELSE %]
|
|
<ul class="first-of-type">
|
|
<li>No private lists</li>
|
|
<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul>
|
|
[% END %]
|
|
[% ELSE %]
|
|
<ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul>
|
|
[% END %]
|
|
[% END %]
|
|
</div><!-- /listmenu /virtualshelves -->
|
|
[% END %]
|
|
<div id="listsDetails"></div>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<div id="members">
|
|
[% IF ( opacuserlogin ) %]
|
|
<ul>
|
|
[% UNLESS ( loggedinusername ) %]
|
|
<li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>[% END %]
|
|
[% IF ( loggedinusername ) %]
|
|
<li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</span></a></span></li>
|
|
|
|
[% END %]
|
|
[% IF ( ShowOpacRecentSearchLink ) %]
|
|
<li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a></li>
|
|
[% END %]
|
|
[% IF ( loggedinusername ) %]<li>[% IF persona %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>[% ELSE %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">[% END %]Log Out</a></li>[% END %]
|
|
</ul>
|
|
[% END %]
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|