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