View | Details | Raw Unified | Return to bug 10486
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt (-2 / +2 lines)
Lines 128-134 function showResult( syntax, recid ) { Link Here
128
            var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc );
128
            var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc );
129
            var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } );
129
            var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } );
130
            $tr.find( '.info' ).html( fragment );
130
            $tr.find( '.info' ).html( fragment );
131
            $tr.find( 'a' ).attr( 'href', '#' ).click( function() {
131
            $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() {
132
                showDetail( syntax, recid );
132
                showDetail( syntax, recid );
133
133
134
                return false;
134
                return false;
Lines 200-206 function search( offset, reset_search ) { Link Here
200
            $( '#results tbody' ).append( $tr );
200
            $( '#results tbody' ).append( $tr );
201
201
202
            ( function( hit, recordSyntax ) {
202
            ( function( hit, recordSyntax ) {
203
                $tr.find( 'a' ).attr( 'href', '#' ).click( function() {
203
                $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() {
204
                    showDetail( recordSyntax, hit.recid[0] );
204
                    showDetail( recordSyntax, hit.recid[0] );
205
205
206
                    return false;
206
                    return false;
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt (-3 / +2 lines)
Lines 58-64 function showResult( syntax, recid ) { Link Here
58
            var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc );
58
            var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc );
59
            var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } );
59
            var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } );
60
            $tr.find( '.info' ).html( fragment );
60
            $tr.find( '.info' ).html( fragment );
61
            $tr.find( 'a' ).attr( 'href', '#' ).click( function() {
61
            $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() {
62
                showDetail( syntax, recid );
62
                showDetail( syntax, recid );
63
63
64
                return false;
64
                return false;
Lines 133-139 function search( offset, reset_search ) { Link Here
133
            $( '#results tbody' ).append( $tr );
133
            $( '#results tbody' ).append( $tr );
134
134
135
            ( function( hit, recordSyntax ) {
135
            ( function( hit, recordSyntax ) {
136
                $tr.find( 'a' ).attr( 'href', '#' ).click( function() {
136
                $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() {
137
                    showDetail( recordSyntax, hit.recid[0] );
137
                    showDetail( recordSyntax, hit.recid[0] );
138
138
139
                    return false;
139
                    return false;
140
- 

Return to bug 10486