From 47b18b5e5347177058b9a5d598a6d4626fc6a87e Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Thu, 24 Apr 2014 14:12:37 -0600 Subject: [PATCH] Bug 10486 - QA followup: fix links in results and updatedatabase --- installer/data/mysql/updatedatabase.pl | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7e325ff..7f07ae4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -8202,7 +8202,7 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.13.00.XXX"; +$DBversion = "3.15.00.XXX"; if(CheckVersion($DBversion)) { $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACSearchExternalTargets','0','Whether to search external targets in the OPAC','','YesNo')" 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.9.0