Bugzilla – Attachment 24605 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: fallback to the correct defaults if config entries missing
Bug-11096-fallback-to-the-correct-defaults-if-conf.patch (text/plain), 1.56 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-01-22 13:13:20 UTC
(
hide
)
Description:
Bug 11096: fallback to the correct defaults if config entries missing
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-01-22 13:13:20 UTC
Size:
1.56 KB
patch
obsolete
>From ae18db5e51861439fe29d9e2c89c9dc84d1700fb Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 22 Jan 2014 09:57:26 -0300 >Subject: [PATCH] Bug 11096: fallback to the correct defaults if config entries > missing > >As of bug 7818 misc/migration_tools/rebuild_zebra.pl behaves like: > >- bib_index_mode (defaults to 'grs1' if not specified) >- auth_index_mode (defaults to 'dom') > >we should do the same in C4::Context. So people having old config files >have a seamless behaviour. > >Regards >To+ > >Sponsored-by: Universidad Nacional de Cordoba >--- > C4/Context.pm | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 746d24b..f58092d 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -730,12 +730,18 @@ sub _new_Zconn { > my $tried=0; # first attempt > my $Zconn; # connection object > my $elementSetName; >+ my $index_mode; > > $server //= "biblioserver"; > $syntax //= "XML"; > >- if ( ($server eq 'biblioserver' and $context->{'config'}->{'zebra_bib_index_mode'} eq 'grs1') >- or ($server eq 'authorityserver' and $context->{'config'}->{'zebra_auth_index_mode'} eq 'grs1')) { >+ if ( $server eq 'biblioserver' ) { >+ $index_mode = $context->{'config'}->{'zebra_bib_index_mode'} // 'grs1'; >+ } elsif ( $server eq 'authorityserver' ) { >+ $index_mode = $context->{'config'}->{'zebra_auth_index_mode'} // 'dom'; >+ } >+ >+ if ( $index_mode eq 'grs1' ) { > > $elementSetName = 'F'; > $syntax = ( $context->preference("marcflavour") eq 'UNIMARC' ) >-- >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