Bug 23528: Show 'log in to add tags' link on all search result entries
authorOwen Leonard <oleonard@myacpl.org>
Fri, 11 Oct 2019 14:53:24 +0000 (14:53 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 15 Oct 2019 13:14:53 +0000 (14:14 +0100)
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>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt

index e571fbc..15399e5 100644 (file)
                                                                 <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 %]