From 775b15d1dc3d8e51969e2b3315fa5036ee5afe07 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Thu, 24 Apr 2014 14:12:37 -0600 Subject: [PATCH] [SIGNED OFF] Bug 10486 - QA followup: fix links in results and updatedatabase Signed-off-by: Katrin Fischer --- 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(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt index f4e7be9..1f242c4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt +++ b/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; diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt index c565b41..4fac891 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt +++ b/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; -- 1.8.3.2