From 46c0706ee1e3fbe9e324665d451ef972b34c6394 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Sun, 29 Mar 2009 10:55:34 +0200 Subject: [PATCH] Bug #3071 - Z39.50 search result highlights are mixed This patch modifies z3950 search result page in order to use jquery to highlight rows rather than an explicit css class. Signed-off-by: Galen Charlton --- cataloguing/z3950_search.pl | 4 ++-- .../prog/en/modules/cataloguing/z3950_search.tmpl | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index 08b45d306f..884333c4eb 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -256,9 +256,9 @@ warn "query ".$query if $DEBUG; push( @breeding_loop, \%row_data ); } else { - push(@breeding_loop,{'toggle'=>($i % 2)?1:0,'server'=>$servername[$k],'title'=>join(': ',$oConnection[$k]->error_x()),'breedingid'=>-1,'biblionumber'=>-1}); + push(@breeding_loop,{'server'=>$servername[$k],'title'=>join(': ',$oConnection[$k]->error_x()),'breedingid'=>-1,'biblionumber'=>-1}); } # $rec - } # upto 5 results + } # upto 20 results } #$numresults } } # if $k !=0 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl index 6d88ecdad0..4c5c5c4a05 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl @@ -29,7 +29,8 @@ $.tablesorter.addParser({ }); $("#resultst").tablesorter({ sortList: [[1,0]], - headers: { 0: {sorter:false}, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }} + headers: { 0: {sorter:false}, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false } }, + widgets: ['zebra'], }); }); //]]> @@ -96,7 +97,7 @@ $.tablesorter.addParser({ - + -- 2.39.5