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; |