Tomas Cohen Arazi
06ef9f1109
As noted by Jared, in the presence of 4XX$w or 5XX$w the display got broken by this refactoring. This patch restores the previous behaviour in that front. The OPAC themes get fixed too, and the Bootstrap one gets this fix too. Applied the fix that Galen proposed on comment #30 regarding Zeno's fix in bug 11174. Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
114 lines
5.9 KiB
Text
114 lines
5.9 KiB
Text
[% USE Koha %]
|
|
[% PROCESS 'opac-authorities.inc' %]
|
|
[% PROCESS 'authorities-search-results.inc' %]
|
|
[% pagination = BLOCK %]
|
|
<div class="pagination">
|
|
<ul>
|
|
[% IF ( displayprev ) %]
|
|
<li>
|
|
<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">
|
|
«
|
|
</a>
|
|
</li>
|
|
[% END %]
|
|
[% FOREACH number IN numbers %]
|
|
[% IF ( number.highlight ) %]
|
|
<li class="active"><a href="#">[% number.number %]</a></li>
|
|
[% ELSE %]
|
|
<li><a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">[% number.number %]</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( displaynext ) %]
|
|
<li>
|
|
<a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]&resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">»</a>
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
</div> <!-- / #pages -->
|
|
[% END %]
|
|
[% 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' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
</head>
|
|
<body id="opac-authoritiesresultlist" class="scrollto">
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
|
|
<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> <span class="divider">›</span></li>
|
|
<li><a href="#">Results</a></li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
[% IF ( OpacNav || OpacNavBottom ) %]
|
|
<div class="span2">
|
|
<div id="navigation">
|
|
[% INCLUDE 'navigation.inc' %]
|
|
</div>
|
|
</div>
|
|
<div class="span10">
|
|
[% ELSE %]
|
|
<div class="span12">
|
|
[% END %]
|
|
<div id="userauthsearchresults" class="maincontent">
|
|
<h1>Authority search results</h1>
|
|
|
|
[% pagination %]
|
|
|
|
<div id="results">
|
|
[% IF ( total ) %]
|
|
[% 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>
|
|
|
|
[% IF ( total ) %]
|
|
<div class="searchresults">
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Authorized headings</th>
|
|
<th>Type of heading</th>
|
|
[% UNLESS ( isEDITORS ) %]
|
|
<th>Biblio records</th>
|
|
[% END %]
|
|
<th>Full heading</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH resul IN result %]
|
|
<tr>
|
|
<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&op=do_search&q=an=[% resul.authid %]">[% resul.used %] biblios</a>
|
|
</td>
|
|
[% END %]
|
|
<td>
|
|
<a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- / .searchresults -->
|
|
|
|
[% pagination %]
|
|
|
|
[% END # / IF total %]
|
|
</div> <!-- / #userauthsearchresults -->
|
|
</div> <!-- / .span10/12 -->
|
|
</div> <!-- / .row-fluid -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %][% END %]
|