From 4e11a073eaa4415f38a1bd3c33bd52430cd38317 Mon Sep 17 00:00:00 2001 From: Jacek Ablewicz Date: Sun, 23 Mar 2014 21:24:48 +0100 Subject: [PATCH] [PASSED QA] Bug 11986 - Tags searching doesn't work in OPAC if biblio DOM indexing is being used This patch fixes the following issue: in installations that are using zebra DOM indexing for bibliographic records, tag searching in OPAC doesn't work properly (clicking on any tag in OPAC leads to "404 error"). To test: ensure that with patch applied: 1) problems with tag searching get resolved for [some] test configuration with biblio DOM indexing enabled, 2) there are no apparent tag-searching-related regressions in OPAC, in some yet another test installation configured with legacy (grs1) indexing mode for biblios. Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall --- opac/opac-search.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 83f16d8..e2236c2 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -501,7 +501,7 @@ if ($tag) { my $taglist = get_tags({term=>$tag, approved=>1}); $results_hashref->{biblioserver}->{hits} = scalar (@$taglist); my @biblist = (map {GetBiblioData($_->{biblionumber})} @$taglist); - my @marclist = (map {$_->{marc}} @biblist ); + my @marclist = (map { (C4::Context->config('zebra_bib_index_mode') eq 'dom')? $_->{marcxml}: $_->{marc}; } @biblist); $DEBUG and printf STDERR "taglist (%s biblionumber)\nmarclist (%s records)\n", scalar(@$taglist), scalar(@marclist); $results_hashref->{biblioserver}->{RECORDS} = \@marclist; # FIXME: tag search and standard search should work together, not exclusively -- 1.7.2.5