Bugzilla – Attachment 84066 Details for
Bug 13937
Add an Elasticsearch-compatible Z39.50/SRU daemon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13937: (follow-up) Pass through yaz switches and don't ignore case
Bug-13937-follow-up-Pass-through-yaz-switches-and-.patch (text/plain), 1.61 KB, created by
Ere Maijala
on 2019-01-16 13:23:19 UTC
(
hide
)
Description:
Bug 13937: (follow-up) Pass through yaz switches and don't ignore case
Filename:
MIME Type:
Creator:
Ere Maijala
Created:
2019-01-16 13:23:19 UTC
Size:
1.61 KB
patch
obsolete
>From 783ab86c98b87a76ddbe599d9bb5911d8bc730a2 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 14 Nov 2017 12:29:52 +0000 >Subject: [PATCH] Bug 13937: (follow-up) Pass through yaz switches and don't > ignore case > >--- > misc/z3950_responder.pl | 23 +++++++++++++++-------- > 1 file changed, 15 insertions(+), 8 deletions(-) > >diff --git a/misc/z3950_responder.pl b/misc/z3950_responder.pl >index e1056c5a7f..2e63177d22 100755 >--- a/misc/z3950_responder.pl >+++ b/misc/z3950_responder.pl >@@ -20,7 +20,7 @@ > use Modern::Perl; > > use Carp; >-use Getopt::Long; >+use Getopt::Long qw(:config no_ignore_case); > use Pod::Usage; > > use C4::Context; >@@ -102,10 +102,17 @@ my @yaz_options; > > sub add_yaz_option { > my ( $opt_name, $opt_value ) = @_; >+ warn "name: $opt_name and value: $opt_value"; > > push @yaz_options, "-$opt_name", "$opt_value"; > } > >+sub pass_yaz_option { >+ my ( $opt_name ) = @_; >+ >+ push @yaz_options, "-$opt_name"; >+} >+ > GetOptions( > '-h|help' => \$help, > '--man' => \$man, >@@ -126,13 +133,13 @@ GetOptions( > 'C=s' => \&add_yaz_option, > 'm=s' => \&add_yaz_option, > 'w=s' => \&add_yaz_option, >- 'z' => \&add_yaz_option, >- 'K' => \&add_yaz_option, >- 'i' => \&add_yaz_option, >- 'D' => \&add_yaz_option, >- 'S' => \&add_yaz_option, >- 'T' => \&add_yaz_option, >- '1' => \&add_yaz_option >+ 'z' => \&pass_yaz_option, >+ 'K' => \&pass_yaz_option, >+ 'i' => \&pass_yaz_option, >+ 'D' => \&pass_yaz_option, >+ 'S' => \&pass_yaz_option, >+ 'T' => \&pass_yaz_option, >+ '1' => \&pass_yaz_option > ) || pod2usage(2); > > pod2usage(1) if $help; >-- >2.17.1
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 13937
:
46369
|
47417
|
47418
|
47419
|
53503
|
58122
|
58125
|
58126
|
59443
|
59444
|
60735
|
60736
|
60737
|
60738
|
66943
|
66944
|
66945
|
66946
|
69139
|
82562
|
82563
|
82564
|
82565
|
82566
|
82567
|
82589
|
82590
|
82591
|
82592
|
82593
|
82594
|
82595
|
82660
|
82661
|
82662
|
82663
|
82664
|
82665
|
82666
|
82667
|
83780
|
83781
|
83782
|
83783
|
83784
|
83785
|
83786
|
83787
|
83788
|
83789
|
83951
|
83952
|
83953
|
83954
|
83955
|
83956
|
83957
|
83958
|
83959
|
84050
|
84051
|
84052
|
84053
|
84054
|
84055
|
84056
|
84057
|
84058
|
84059
|
84062
|
84063
|
84064
|
84065
|
84066
|
84067
|
84068
|
84069
|
84072
|
84073
|
85112
|
86353
|
86354
|
86355
|
86356
|
86357
|
86358
|
86359
|
86360
|
86361
|
86362
|
86363
|
86364
|
88907
|
88908
|
88909
|
88910
|
88911
|
88912
|
88913
|
88914
|
88915
|
88916
|
88917
|
88918
|
91728
|
91729
|
91730
|
91731
|
91732
|
91733
|
91734
|
91735
|
91736
|
91737
|
91738
|
91739
|
91740
|
93913
|
94097
|
94109
|
94110
|
94209
|
94616
|
94647