Bug 23528: Show 'log in to add tags' link on all search result entries

This patch modifies the OPAC search result template so that each result
shows the "Log in to add tags" link instead of just the first.

To test, apply the patch and make sure TagsEnabled and TagsInputOnList
are both enabled.

Perform a search in the OPAC while not logged in. In the list of
results, the "Log in to add tags" link should appear with every result.

Log in to the OPAC and confirm that the "Add tag" link appears as
expected.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2019-10-11 14:53:24 +00:00 committed by Martin Renvoize
parent 77884d6c76
commit 04cd884d10
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -554,8 +554,8 @@
<span id="newtag[% SEARCH_RESULT.biblionumber | html %]_status" class="tagstatus" style="display:none;">
Tag status here.
</span>
[% ELSIF ( loop.first ) %]
<span class="actions"><span id="login4tags"><a class="loginModal-trigger" href="/cgi-bin/koha/opac-user.pl">Log in to add tags</a></span></span>
[% ELSE %]
<span class="actions"><span id="login4tags"><a class="loginModal-trigger" href="/cgi-bin/koha/opac-user.pl">Log in to add tags</a></span></span>
[% END # IF loggedinusername %]
[% END # if TagsInputEnabled %]