Bug 30036: Allow XSLT for authority results view in OPAC
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-authoritiessearchresultlist.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE AdditionalContents %]
4 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6 [% PROCESS 'opac-authorities.inc' %]
7 [% PROCESS 'authorities-search-results.inc' %]
8 [% PROCESS 'i18n.inc' %]
9 [% BLOCK pagination %]
10     <nav class="pagination pagination-sm noprint" aria-label="Search results pagination">
11         <ul class="pagination">
12             [% IF ( displayprev ) %]
13                 <li class="page-item">
14                     <a class="page-link" href="opac-authorities-home.pl?startfrom=[% startfromprev | uri %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term | uri %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage | uri %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode | uri %]&amp;orderby=[% orderby | uri %]" aria-label="Go to the previous page">
15                         <i class="fa fa-fw fa-angle-left" aria-hidden="true"></i>  Previous
16                     </a>
17                 </li>
18             [% END %]
19             [% FOREACH number IN numbers %]
20                 [% IF ( number.highlight ) %]
21                     <li class="page-item disabled">
22                         <a class="page-link" href="#" aria-disabled="true" aria-label="Current page: Page [% number.number | html %]">[% number.number | html %]</a>
23                     </li>
24                 [% ELSE %]
25                     <li class="page-item">
26                         <a class="page-link" href="opac-authorities-home.pl?startfrom=[% number.startfrom | uri %]&amp;[% FOREACH searchdat IN number.searchdata %][% searchdat.term | uri %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage | uri %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode | uri %]&amp;orderby=[% orderby | uri %]" aria-label="Go to page [% number.number | html %]">[% number.number | html %]</a>
27                     </li>
28                 [% END %]
29             [% END %]
30             [% IF ( displaynext ) %]
31                 <li class="page-item">
32                     <a class="page-link" href="opac-authorities-home.pl?startfrom=[% startfromnext | uri %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term | uri %]=[% searchdat.val |url %]&amp;[% END %]&amp;resultsperpage=[% resultsperpage | uri %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode | uri %]&amp;orderby=[% orderby | uri %]" aria-label="Go to the next page">
33                         Next <i class="fa fa-fw fa-angle-double-right" aria-hidden="true"></i>
34                     </a>
35                 </li>
36             [% END %]
37         </ul>
38     </nav> <!-- / #pages -->
39 [% END %]
40 [% INCLUDE 'doc-head-open.inc' %]
41 <title>[% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
42 [% INCLUDE 'doc-head-close.inc' %]
43 [% BLOCK cssinclude %][% END %]
44 </head>
45 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesresultlist' bodyclass='scrollto' %]
46 [% INCLUDE 'masthead.inc' %]
47
48     <div class="main">
49         <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
50             <ol class="breadcrumb">
51                 <li class="breadcrumb-item">
52                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
53                 </li>
54                 <li class="breadcrumb-item">
55                     <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
56                 </li>
57                 <li class="breadcrumb-item active">
58                     <a href="#" aria-current="page">Results</a>
59                 </li>
60             </ol>
61         </nav> <!-- /#breadcrumbs -->
62
63         <div class="container-fluid">
64             <div class="row">
65                 [% IF ( OpacNav || OpacNavBottom ) %]
66                     <div class="col-lg-2">
67                         <div id="navigation">
68                             [% INCLUDE 'navigation.inc' %]
69                         </div>
70                     </div>
71                     <div class="col-lg-10 order-first order-md-first order-lg-2">
72                 [% ELSE %]
73                     <div class="col order-first order-md-first order-lg-2">
74                 [% END %]
75                     <div id="userauthsearchresults" class="maincontent">
76                         <h1>Authority search results</h1>
77
78                         [% IF total %]
79                             <div class="pages">[% pagination_bar | $raw %]</div>
80                         [% END %]
81                         <div id="results">
82                             [% IF ( total ) %]
83                                 [% IF ( countfuzzy ) %]
84                                     <p><strong>Showing [% resultcount | html %] of about [% total | html %] results</strong></p>
85                                 [% ELSE %]
86                                     <p><strong>Results [% from | html %] to [% to | html %] of [% total | html %]</strong></p>
87                                 [% END %]
88                             [% ELSE %]
89                                 No results found.
90                             [% END %]
91                         </div>
92
93                         [% IF ( total ) %]
94                             <div class="searchresults">
95                                 <table class="table table-bordered table-striped">
96                                     <caption class="sr-only">Authority search results</caption>
97                                     <thead>
98                                         <tr>
99                                             <th colspan="2">Authorized headings</th>
100                                             <th>Type of heading</th>
101                                             [% UNLESS ( isEDITORS ) %]
102                                                 <th>Records</th>
103                                             [% END %]
104                                         </tr>
105                                     </thead>
106                                     <tbody>
107                                         [% FOREACH resul IN result %]
108                                             <tr>
109                                                 <td>
110                                                     [% IF resul.html %]
111                                                         [% resul.html | $raw %]
112                                                     [% ELSE %]
113                                                         [% PROCESS authresult summary=resul.summary authid=resul.authid %]
114                                                     [% END %]
115                                                 </td>
116                                                 <td><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% resul.authid | uri %]">Details</a>
117                                                 <td>[% resul.authtype | html %]</td>
118                                                 [% UNLESS ( resul.isEDITORS ) %]
119                                                     <td>
120                                                          [% IF resul.used > 0 %]
121                                                             <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an,phr:[% resul.authid | uri %]">[% resul.used | html %] [% tn('record', 'records', resul.used ) | html %]</a>
122                                                         [% ELSE %]
123                                                             0 records
124                                                         [% END %]
125                                                     </td>
126                                                 [% END %]
127                                             </tr>
128                                         [% END %]
129                                     </tbody>
130                                 </table>
131                             </div> <!-- / .searchresults -->
132
133                             <div class="pages">[% pagination_bar | $raw %]</div>
134
135                         [% END # / IF total %]
136                     </div> <!-- / #userauthsearchresults -->
137                 </div> <!-- / .col-lg-10/12 -->
138             </div> <!-- / .row -->
139         </div> <!-- / .container-fluid -->
140     </div> <!-- / .main -->
141
142 [% INCLUDE 'opac-bottom.inc' %]
143 [% BLOCK jsinclude %][% END %]