Katrin Fischer
c667b9ddbf
To test: - Use an installation a reasonable amount of authorities, so that you can have a search result list with more than one page - Activate OpacAuthorities - Create an OPAC link like shown below, verify that an alert is shown - Apply patch - Refresh the page and no alert should appear - Verify the paging still works correctly for 'numbers' and 'arrows' URL: .../cgi-bin/koha/opac-authorities-home.pl?and_or=and&marclist=match&op=do_search&operator=contains&orderby=HeadingAsc2"><script>prompt(987898)</script> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
114 lines
6 KiB
Text
114 lines
6 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|html %]">
|
|
«
|
|
</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|html %]">[% 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|html %]">»</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>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesresultlist' bodyclass='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 %]
|