Bugzilla – Attachment 24580 Details for
Bug 11096
Koha cannot retrieve big records from Zebra
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11096: (qa followup) facets count and UNIMARC record syntax
Bug-11096-qa-followup-facets-count-and-UNIMARC-rec.patch (text/plain), 1.83 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-01-20 14:44:13 UTC
(
hide
)
Description:
Bug 11096: (qa followup) facets count and UNIMARC record syntax
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-01-20 14:44:13 UTC
Size:
1.83 KB
patch
obsolete
>From 1c8e0ffc80041381ca4b0f76630ca2803fa57bbb Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Sun, 19 Jan 2014 12:02:44 -0300 >Subject: [PATCH] Bug 11096: (qa followup) facets count and UNIMARC record > syntax > >- An error in a copy and paste operation made me count facet occurences >instead of records where the fields where present. > >- As of bug 3087 UNIMARC uses the 'unimarc' record syntax. I assumed >'usmarc' was used as serialization format as thought it was dialect-agnostic. >This patch adds a test of whether we are in UNIMARC context or not and >sets the record syntax to match the one from koha-conf.xml. > >Regards >To+ >--- > C4/Context.pm | 4 +++- > C4/Search.pm | 4 +--- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index e96d399..746d24b 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -738,7 +738,9 @@ sub _new_Zconn { > or ($server eq 'authorityserver' and $context->{'config'}->{'zebra_auth_index_mode'} eq 'grs1')) { > > $elementSetName = 'F'; >- $syntax = 'usmarc'; >+ $syntax = ( $context->preference("marcflavour") eq 'UNIMARC' ) >+ ? 'unimarc' >+ : 'usmarc'; > > } else { > >diff --git a/C4/Search.pm b/C4/Search.pm >index c108323..3217421 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -551,10 +551,8 @@ sub getRecords { > > unless ( $data ~~ @used_datas ) { > push @used_datas, $data; >+ $facets_counter->{ $facet->{idx} }->{$data}++; > } >- >- $facets_counter->{ $facet->{idx} }->{$data}++; >- > } # fields > } # field codes > } # records >-- >1.8.3.2
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 11096
:
22291
|
22292
|
22821
|
22845
|
22846
|
22997
|
23030
|
23033
|
23234
|
23235
|
23236
|
23237
|
23336
|
23337
|
23366
|
24019
|
24020
|
24029
|
24030
|
24031
|
24172
|
24186
|
24187
|
24188
|
24490
|
24491
|
24492
|
24580
|
24602
|
24603
|
24604
|
24605
|
24607
|
24731
|
24732
|
24874
|
24894
|
24895
|
24896
|
24901
|
25282
|
25634
|
25635
|
25636