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>
(cherry picked from commit cbee847797)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
25cead0d67
commit
f58d42a3ad
|
|
@ -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