@@ -, +, @@ and updatedatabase --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt @@ -128,7 +128,7 @@ function showResult( syntax, recid ) { var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc ); var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } ); $tr.find( '.info' ).html( fragment ); - $tr.find( 'a' ).attr( 'href', '#' ).click( function() { + $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { showDetail( syntax, recid ); return false; @@ -200,7 +200,7 @@ function search( offset, reset_search ) { $( '#results tbody' ).append( $tr ); ( function( hit, recordSyntax ) { - $tr.find( 'a' ).attr( 'href', '#' ).click( function() { + $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { showDetail( recordSyntax, hit.recid[0] ); return false; --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt +++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt @@ -58,7 +58,7 @@ function showResult( syntax, recid ) { var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc ); var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } ); $tr.find( '.info' ).html( fragment ); - $tr.find( 'a' ).attr( 'href', '#' ).click( function() { + $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { showDetail( syntax, recid ); return false; @@ -133,7 +133,7 @@ function search( offset, reset_search ) { $( '#results tbody' ).append( $tr ); ( function( hit, recordSyntax ) { - $tr.find( 'a' ).attr( 'href', '#' ).click( function() { + $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { showDetail( recordSyntax, hit.recid[0] ); return false; --