Bugzilla – Attachment 26528 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]
Bug 11986 - Tags searching doesn't work in OPAC if biblio DOM indexing is being used
Bug-11986---Tags-searching-doesnt-work-in-OPAC-if-.patch (text/plain), 1.64 KB, created by
Jacek Ablewicz
on 2014-03-23 21:08:22 UTC
(
hide
)
Description:
Bug 11986 - Tags searching doesn't work in OPAC if biblio DOM indexing is being used
Filename:
MIME Type:
Creator:
Jacek Ablewicz
Created:
2014-03-23 21:08:22 UTC
Size:
1.64 KB
patch
obsolete
>From 409168fc5244f2ea606ae2dded44f8859e3a2395 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] 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. >--- > opac/opac-search.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 617d67e..479a6f2 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.10.4
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