Bug 31527: Breadcrumbs for anonymous suggestions are not correct
This patch updates the OPAC suggestions template in order to omit the patron name breadcrumb if there is not a logged-in user. To test, apply the patch and view the OPAC suggestions page with the AnonSuggestions preference both enabled and disabled. - If you are logged in, the page breadcrumbs will be: Home -> [Your name] -> Purchase suggestions. - If you are not logged in it should be: Home -> Purchase suggestions Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
834c4a00cc
commit
2e0871fa1b
|
|
@ -24,11 +24,13 @@
|
|||
<li class="breadcrumb-item">
|
||||
<a href="/cgi-bin/koha/opac-main.pl">Home</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
<a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
|
||||
</li>
|
||||
[% IF ( logged_in_user ) %]
|
||||
<li class="breadcrumb-item">
|
||||
<a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
|
||||
</li>
|
||||
[% END %]
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="#" aria-current="page">Your purchase suggestions</a>
|
||||
<a href="#" aria-current="page">Purchase suggestions</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav> <!-- /#breadcrumbs -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue