Merge remote-tracking branch 'origin/new/bug_6720'
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-authoritiessearchresultlist.tt
index 1b57410..2f0f3a0 100644 (file)
@@ -1,4 +1,5 @@
-[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › [% IF ( total ) %]Authority Search Result[% ELSE %]No results found[% END %]
+[% PROCESS 'authorities-search-results.inc' %]
+[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %]
 [% INCLUDE 'doc-head-close.inc' %]
 </head>
 <body id="opac-authoritiesresultlist">
                </div>
                <div id="results">
                        [% IF ( total ) %]
-                       <b>Results [% from %] to [% to %] of [% total %]</b>
+                [% IF ( countfuzzy ) %]
+                    <b>Showing [% resultcount %] of about [% total %] results</b>
+                [% ELSE %]
+                    <b>Results [% from %] to [% to %] of [% total %]</b>
+                [% END %]
                        [% ELSE %]
                        No results found.
                        [% END %]
 <div class="searchresults">
                <table>
                        <tr>
-                               <th>Authorized Headings</th>
-                               <th>Type of Heading</th>
+                <th>Authorized headings</th>
+                <th>Type of heading</th>
                                [% UNLESS ( isEDITORS ) %]
-                                       <th>Biblio records</th>
+                    <th>Biblio records</th>
                                [% END %]
-                               <th>Full Heading</th>                           
+                <th>Full heading</th>
                        </tr>
                        [% FOREACH resul IN result %]
-                               <tr>
-                                       <td>[% resul.summary %]</td>
-
-                                               <td>
-                                       [% authtypetext %]
-                                               </td>
+            [% UNLESS ( loop.odd ) %]
+                <tr class="highlight">
+            [% ELSE %]
+                <tr>
+            [% END %]
+                    <td>[% PROCESS authresult summary=resul.summary %]</td>
+                    <td>[% resul.authtype %]</td>
                                        [% UNLESS ( resul.isEDITORS ) %]
                                                <td>
                                                         <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
                                                </td>
                                        [% END %]
                                                <td>
-                                                       <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View Full Heading</a>
+                            <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
                                                </td>
                                </tr>
                        [% END %]