Bug 18108: Sorting by author in opac summary
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 14 Feb 2017 01:21:01 +0000 (01:21 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 3 Mar 2017 18:13:47 +0000 (18:13 +0000)
To test:
1) Log into OPAC, go to your summary
2) Notice 'author' is in Title column, therefore unable to sort by
author
3) Apply patch and refresh page
4) Notice author has now been moved into Author column
5) Confirm sorting by author works as expected and sorting of all other
columns works as expected

Sponsored-by: Catalyst IT
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt

index 494dc32..a715178 100644 (file)
@@ -153,6 +153,7 @@ Using this account is not recommended because some parts of Koha will not functi
                                             <tr>
                                                 [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
                                                 <th class="anti-the">Title</th>
+                                                <th>Author</th>
                                                 <th class="title-string psort">Due</th>
                                                 [% UNLESS ( item_level_itypes ) %]
                                                     <th>Item type</th>
@@ -215,7 +216,8 @@ Using this account is not recommended because some parts of Koha will not functi
                                                 <td class="title">
                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]</a>
                                                     [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
-                                                    <span class="item-details">[% ISSUE.author %]</span>
+                                                </td>
+                                                <td class="author">[% ISSUE.author %]</td>
                                                 </td>
                                                 [% IF ( ISSUE.overdue ) %]
                                                     <td class="date_due overdue">