Bug 12421: no way to get back to search results from overdrive results
When on your search results you can click the link to overdrive results, but then you can't get back to your catalog search results, the line that links to the results should be there on both pages. Test Plan: 1) Apply this patch 2) Enable Overdrive searching 3) Perform a search 4) View the overdrive results 5) Note the "Catalog search for '$q'" link in the breadcrumbs 6) Click the link 7) Note you return to the search results page Signed-off-by: Barry Cannon <bc@interleaf.ie> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
e645bf152d
commit
cbee847797
|
|
@ -20,6 +20,9 @@
|
|||
<li class="breadcrumb-item">
|
||||
<a href="/cgi-bin/koha/opac-main.pl">Home</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
<a class="previous-page" href="">Catalog search for '[% q | html %]'</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="#" aria-current="page">OverDrive search for '[% q | html %]'</a>
|
||||
</li>
|
||||
|
|
@ -213,6 +216,11 @@
|
|||
.append( ' ' )
|
||||
.append( '<span id="overdrive-status"></span>' );
|
||||
|
||||
$(".previous-page").click(function(){
|
||||
parent.history.back();
|
||||
return false;
|
||||
});
|
||||
|
||||
$( document ).on( 'click', 'a.od-nav', function() {
|
||||
search( $( this ).data( 'offset' ) );
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue