From cbee8477976f2424a49867ab39fcbcc53ad7cf53 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 Signed-off-by: Barry Cannon Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../bootstrap/en/modules/opac-overdrive-search.tt | 8 ++++++++ 1 file changed, 8 insertions(+) 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 96fee654df..0ea5894ee4 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 @@ -20,6 +20,9 @@ + @@ -213,6 +216,11 @@ .append( ' ' ) .append( '' ); + $(".previous-page").click(function(){ + parent.history.back(); + return false; + }); + $( document ).on( 'click', 'a.od-nav', function() { search( $( this ).data( 'offset' ) ); return false; -- 2.39.5