From a844c4b72ef5ad0de3357d2efa13c9fa7d814879 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 12 Mar 2015 12:24:00 -0400 Subject: [PATCH] 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 --- .../bootstrap/en/modules/opac-overdrive-search.tt | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt index d7aa281..42e1491 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt @@ -17,7 +17,8 @@
@@ -174,6 +175,11 @@ $( document ).ready( function() { .append( ' ' ) .append( '' ); + $('.previous-page').click(function(){ + parent.history.back(); + return false; + }); + $( document ).on( 'click', 'a.od-nav', function() { search( $( this ).data( 'offset' ) ); return false; -- 1.7.2.5