Bugzilla – Attachment 27629 Details for
Bug 11986
Tags searching doesn't work in OPAC if biblio DOM indexing is being used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11986 - Tags searching doesn't work in OPAC if biblio DOM indexing is being used
PASSED-QA-Bug-11986---Tags-searching-doesnt-work-i.patch (text/plain), 1.77 KB, created by
Kyle M Hall (khall)
on 2014-04-25 14:10:10 UTC
(
hide
)
Description:
[PASSED QA] Bug 11986 - Tags searching doesn't work in OPAC if biblio DOM indexing is being used
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-04-25 14:10:10 UTC
Size:
1.77 KB
patch
obsolete
>From 4e11a073eaa4415f38a1bd3c33bd52430cd38317 Mon Sep 17 00:00:00 2001 >From: Jacek Ablewicz <abl@biblos.pk.edu.pl> >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 <chris@bigballofwax.co.nz> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11986
:
26528
|
27534
| 27629