Merge branch 'bug_5801' into 3.12-master
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-authoritiessearchresultlist.tt
1 [% PROCESS 'opac-authorities.inc' %]
2 [% PROCESS 'authorities-search-results.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %]
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="opac-authoritiesresultlist">
7 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
8    <div id="bd">
9 [% INCLUDE 'masthead.inc' %]
10
11         <div id="yui-main">
12         <div class="yui-b"><div class="yui-g">
13 <div id="userauthsearchresults" class="container">
14         <h1>Authority search results</h1>
15         <div id="pages">
16                         [% IF ( displayprev ) %]
17                                 <a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">
18                                         &lt;&lt;
19                                 </a>
20                         [% END %]
21                         [% FOREACH number IN numbers %]
22                                 [% IF ( number.highlight ) %]
23                                         <span class="current">[% number.number %]</span>
24                                 [% ELSE %]
25                                         <a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&amp;[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">[% number.number %]</a>
26                                 [% END %]
27                         [% END %]
28                         [% IF ( displaynext ) %]
29                                 <a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]&amp;resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">&gt;&gt;</a>
30                                 [% END %]
31                 </div>
32                 <div id="results">
33                         [% IF ( total ) %]
34                 [% IF ( countfuzzy ) %]
35                     <b>Showing [% resultcount %] of about [% total %] results</b>
36                 [% ELSE %]
37                     <b>Results [% from %] to [% to %] of [% total %]</b>
38                 [% END %]
39                         [% ELSE %]
40                         No results found.
41                         [% END %]
42                 </div>
43
44                         [% IF ( total ) %]
45 <div class="searchresults">
46                 <table>
47                         <tr>
48                 <th>Authorized headings</th>
49                 <th>Type of heading</th>
50                                 [% UNLESS ( isEDITORS ) %]
51                     <th>Biblio records</th>
52                                 [% END %]
53                 <th>Full heading</th>
54                         </tr>
55                         [% FOREACH resul IN result %]
56             [% UNLESS ( loop.odd ) %]
57                 <tr class="highlight">
58             [% ELSE %]
59                 <tr>
60             [% END %]
61                     <td>[% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&valuec=" %]</td>
62                     <td>[% resul.authtype %]</td>
63                                         [% UNLESS ( resul.isEDITORS ) %]
64                                                 <td>
65                                                          <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
66                                                 </td>
67                                         [% END %]
68                                                 <td>
69                             <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
70                                                 </td>
71                                 </tr>
72                         [% END %]
73                 </table>
74         </div>
75         <div id="resultnumber">
76                         [% IF ( displayprev ) %]
77                                 <a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">&lt;&lt;</a>
78                         [% END %]
79                         [% FOREACH number IN numbers %]
80                                 [% IF ( number.highlight ) %]<span class="current">[% number.number %]</span>[% ELSE %]
81                                         <a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&amp;[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">[% number.number %]</a>
82                                 [% END %]
83                         [% END %]
84                         [% IF ( displaynext ) %]
85                                 <a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]&amp;resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">&gt;&gt;</a>
86                                 [% END %]
87         </div>  
88                         [% END %]
89 </div>
90 </div>
91 </div>
92 </div>
93 [% IF ( OpacNav ) %]
94 <div class="yui-b">
95 <div id="leftmenus" class="container">
96 [% INCLUDE 'navigation.inc' %]
97 </div>
98 </div>[% END %]
99 </div>
100 [% INCLUDE 'opac-bottom.inc' %]