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:
Kyle M Hall 2015-03-12 12:24:00 -04:00 committed by Tomas Cohen Arazi
parent e645bf152d
commit cbee847797
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 8 additions and 0 deletions

View File

@ -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;