From f5cddc0807f742927b4cd5ff24a5e97aff23b4a3 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 28 Nov 2007 16:00:53 -0600 Subject: [PATCH] when the result has an author as search term, the link contained the in it this fix add a author_nospan, that contains the author in it's native form Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3909e6b99d..d408dcb822 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1012,6 +1012,8 @@ sub searchResults { $oldbiblio->{summary} = $summary; } # add spans to search term in results for search term highlighting + # save a native author, for the > link + $oldbiblio->{'author_nospan'} = $oldbiblio->{'author'}; foreach my $term ( keys %$span_terms_hashref ) { my $old_term = $term; if ( length($term) > 3 ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index e52b9a9601..bd567b06d4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -256,7 +256,7 @@

- "> + ">   -- 2.39.5