[Koha-patches] [PATCH] Bug 8360: corrects UNIMARC facet construction for OPAC

Adrien Saurat adrien.saurat at biblibre.com
Thu Jul 5 14:28:35 CEST 2012


Adds wrdl on limit part of the query.
---
 C4/Koha.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/C4/Koha.pm b/C4/Koha.pm
index 4f386e4..f8244e0 100644
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -684,7 +684,7 @@ sub getFacets {
     if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
         $facets = [
             {
-                idx   => 'su-to',
+                idx   => 'su-to,wrdl',
                 label => 'Topics',
                 tags  => [ qw/ 600a 601a 602a 603a 604a 605a 606ax 610a/ ],
                 sep   => ' - ',
@@ -696,19 +696,19 @@ sub getFacets {
                 sep   => ' - ',
             },
             {
-                idx   => 'su-ut',
+                idx   => 'su-ut,wrdl',
                 label => 'Titles',
                 tags  => [ qw/ 500a 501a 502a 503a 504a / ],
                 sep   => ', ',
             },
             {
-                idx   => 'au',
+                idx   => 'au,wrdl',
                 label => 'Authors',
                 tags  => [ qw/ 700ab 701ab 702ab / ],
                 sep   => ', ',
             },
             {
-                idx   => 'se',
+                idx   => 'se,wrdl',
                 label => 'Series',
                 tags  => [ qw/ 225a / ],
                 sep   => ', ',
-- 
1.7.4.1



More information about the Koha-patches mailing list