Bug 18871: Make patron list name a link to view contents of list
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 28 Jun 2017 00:40:00 +0000 (00:40 +0000)
committerMason James <mtj@kohaaloha.com>
Tue, 24 Oct 2017 03:42:10 +0000 (16:42 +1300)
The link is the same as the 'Add patrons' button in Actions dropdown,
but requires one less click, and makes finding the contents of the list
more obvious.

To test:
1) Go to Tools -> Patron lists
2) Create a patron list if you haven't already
3) Confirm that clicking the name of the list takes you to the correct
list and shows the expected content.

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d51059807690797aa4d16b0c0dd2932235a3b683)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e570915729b6b8e02e22b0cfdff4440b75815d26)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt

index 0489429..be3d1c9 100644 (file)
@@ -87,7 +87,7 @@
             <tbody>
                 [% FOREACH l IN lists %]
                     <tr>
-                        <td>[% l.name |html %]</td>
+                        <td><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id %]">[% l.name |html%]</a></td>
                         <td>[% l.patron_list_patrons_rs.count || 0 %]</td>
                         <td>
                             <div class="dropdown">