From 64b125af921282f8a70a0614c75bcd60653102f9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 12 Mar 2015 12:24:00 -0400 Subject: [PATCH] [SIGNED-OFF] 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 --- .../opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 5f5a836..b286f20 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.10.4