Bug 23210: (follow-up) Log in for tags link should trigger modal
authorOwen Leonard <oleonard@myacpl.org>
Mon, 5 Aug 2019 14:25:51 +0000 (14:25 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Sep 2019 12:17:47 +0000 (13:17 +0100)
This patch modifies the "Log in to add tags" link on the OPAC search
results page, adding the class which is used elsewhere in the OPAC
templates for triggering the login modal.

Also: Removed an unnecessary period.

To test, apply the patch and follow the original test plan. Clicking the
"Log in to add tags" link should trigger the login modal. After logging
in you should be returned to the page you were on.

Signed-off-by: Michal Denar <black23@gmail.com>
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 e92e38c..6e73731 100644 (file)
                                                                     Tag status here.
                                                                 </span>
                                                             [% ELSIF ( loop.first ) %]
-                                                            <span class="actions"><span id="login4tags"><a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a></span></span>
+                                                            <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 %]