Bugzilla – Attachment 94209 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: (RM follow-up) Set working directory for daemon mode.
Bug-13937-RM-follow-up-Set-working-directory-for-d.patch (text/plain), 1.51 KB, created by
Martin Renvoize (ashimema)
on 2019-10-15 12:48:56 UTC
(
hide
)
Description:
Bug 13937: (RM follow-up) Set working directory for daemon mode.
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-10-15 12:48:56 UTC
Size:
1.51 KB
patch
obsolete
>From 82abbb29f9b660533966b358554d854cc157f4b9 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 15 Oct 2019 13:45:13 +0100 >Subject: [PATCH] Bug 13937: (RM follow-up) Set working directory for daemon > mode. > >When running as a daemon under Net::Z3950::SimpleServer YAZ requires a >little help to know where it's "working directory" is located so >relative paths in config files may resolve correctly. > >This patch passes the working directory as prescribed on >https://software.indexdata.com/yaz/doc/server.invocation.html such that >the resolution of the cql2rpn filepath works as expected in tests. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Z3950Responder.pm | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/Koha/Z3950Responder.pm b/Koha/Z3950Responder.pm >index 93d0ac2e33..fe335c5b26 100644 >--- a/Koha/Z3950Responder.pm >+++ b/Koha/Z3950Responder.pm >@@ -99,8 +99,11 @@ sub new { > unshift @{ $self->{yaz_options} }, '-v', 'none,fatal'; > } > >- # Set main config for SRU support >- unshift @{ $self->{yaz_options} }, '-f', $self->{config_dir} . 'config.xml' if $self->{config_dir}; >+ # Set main config for SRU support and working directory >+ if ( $self->{config_dir} ) { >+ unshift @{ $self->{yaz_options} }, '-f', $self->{config_dir} . 'config.xml'; >+ unshift @{ $self->{yaz_options} }, '-w', $self->{config_dir}; >+ } > > # Set num to prefetch if not passed > $self->{num_to_prefetch} //= 20; >-- >2.20.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