View | Details | Raw Unified | Return to bug 11317
Collapse All | Expand All

(-)a/debian/templates/koha-conf-site.xml.in (+3 lines)
Lines 283-288 __END_SRU_PUBLICSERVER__ Link Here
283
 <use_zebra_facets>1</use_zebra_facets>
283
 <use_zebra_facets>1</use_zebra_facets>
284
 <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config>
284
 <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config>
285
285
286
 <!-- Public directory, uncomment the following line and define a valid path to let the intranet user access it-->
287
 <!-- <publicdir></publicdir> -->
288
286
<!-- true type font mapping accoding to type from $font_types in C4/Creators/Lib.pm -->
289
<!-- true type font mapping accoding to type from $font_types in C4/Creators/Lib.pm -->
287
 <ttf>
290
 <ttf>
288
    <font type="TR" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf</font>
291
    <font type="TR" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf</font>
(-)a/etc/koha-conf.xml (+3 lines)
Lines 115-120 __PAZPAR2_TOGGLE_XML_POST__ Link Here
115
 <use_zebra_facets>1</use_zebra_facets>
115
 <use_zebra_facets>1</use_zebra_facets>
116
 <queryparser_config>__KOHA_CONF_DIR__/searchengine/queryparser.yaml</queryparser_config>
116
 <queryparser_config>__KOHA_CONF_DIR__/searchengine/queryparser.yaml</queryparser_config>
117
117
118
 <!-- Public directory, uncomment the following line and define a valid path to let the intranet user access it-->
119
 <!-- <publicdir></publicdir> -->
120
118
 <!-- true type font mapping accoding to type from $font_types in C4/Creators/Lib.pm -->
121
 <!-- true type font mapping accoding to type from $font_types in C4/Creators/Lib.pm -->
119
 <ttf>
122
 <ttf>
120
    <font type="TR" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf</font>
123
    <font type="TR" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf</font>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/report_files.tt (-2 / +2 lines)
Lines 32-39 Link Here
32
32
33
	<h1>Report/log files</h1>
33
	<h1>Report/log files</h1>
34
34
35
[% IF ( error_no_publiclogdir ) %]
35
[% IF ( error_no_publicdir ) %]
36
    <div class="dialog alert"><strong>Error : </strong>Report/log files could not be found because the "publiclogdir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
36
    <div class="dialog alert"><strong>Error : </strong>Report/log files could not be found because the "publicdir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
37
[% ELSE %]
37
[% ELSE %]
38
    [% IF ( files_loop ) %]
38
    [% IF ( files_loop ) %]
39
        <table id="files">
39
        <table id="files">
(-)a/reports/report_files.pl (-5 / +4 lines)
Lines 2-9 Link Here
2
2
3
# Frédérick Capovilla, 2011 - Libéo
3
# Frédérick Capovilla, 2011 - Libéo
4
#
4
#
5
# Show a list of all the files in the directory specified by the option 
5
# Show a list of all the files in the directory specified by the option
6
# "publiclogdir" in koha-conf.xml so they can be downloaded by users with the 
6
# "publicdir" in koha-conf.xml so they can be downloaded by users with the
7
# "reports" permission.
7
# "reports" permission.
8
# 
8
# 
9
# This file is part of Koha.
9
# This file is part of Koha.
Lines 33-39 use Digest::MD5 qw(md5_hex); Link Here
33
33
34
my $input      = new CGI;
34
my $input      = new CGI;
35
my $file_id = $input->param("id");
35
my $file_id = $input->param("id");
36
my $directory = C4::Context->config('publiclogdir');
36
my $directory = C4::Context->config('publicdir');
37
37
38
my ($template, $borrowernumber, $cookie)
38
my ($template, $borrowernumber, $cookie)
39
	= get_template_and_user({template_name => "reports/report_files.tt",
39
	= get_template_and_user({template_name => "reports/report_files.tt",
Lines 44-50 my ($template, $borrowernumber, $cookie) Link Here
44
				});
44
				});
45
				
45
				
46
unless($directory) {
46
unless($directory) {
47
    $template->param(error_no_publiclogdir => 1);
47
    $template->param(error_no_publicdir => 1);
48
}
48
}
49
else {
49
else {
50
    #Get the files list
50
    #Get the files list
51
- 

Return to bug 11317