Bug 8911: make sure history.txt gets installed where history.txt can see it
This patch makes Makefile.PL put the history.txt file in the right places depending on the chosen setup layout, adds a reference to that place in koha-conf.xml (and debian template version), and finally tweaks about.pl to use it. To test, apply the patch and verify that perl Makefile.PL runs fine, and installing in - dev - single - standard layouts works as expected. Then go to the about.pl page and see if Koha's history shows there. Then, build your packages and test on your newly created instances. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Galen Charlton <gmc@esilibrary.com> (cherry picked from commit0fe3d053ff) Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Fixed a trivial conflict in Makefile.PL (course reserves are not in 3.12) (cherry picked from commit2803bab669) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> (cherry picked from commit2803bab669)
This commit is contained in:
parent
5b93649f79
commit
c6fbb45f4f
|
|
@ -261,6 +261,7 @@ my $target_map = {
|
|||
'./changelanguage.pl' => 'INTRANET_CGI_DIR',
|
||||
'./check_sysprefs.pl' => 'NONE',
|
||||
'./circ' => 'INTRANET_CGI_DIR',
|
||||
'./docs/history.txt' => { target => 'DOC_DIR', trimdir => -1 },
|
||||
'./offline_circ' => 'INTRANET_CGI_DIR',
|
||||
'./edithelp.pl' => 'INTRANET_CGI_DIR',
|
||||
'./etc' => { target => 'KOHA_CONF_DIR', trimdir => -1 },
|
||||
|
|
|
|||
4
about.pl
4
about.pl
|
|
@ -145,8 +145,8 @@ $template->param( table => $table );
|
|||
## Koha time line code
|
||||
|
||||
#get file location
|
||||
my $dir = C4::Context->config('intranetdir');
|
||||
open( my $file, "<", "$dir" . "/docs/history.txt" );
|
||||
my $docdir = C4::Context->config('docdir');
|
||||
open( my $file, "<", "$docdir" . "/history.txt" );
|
||||
my $i = 0;
|
||||
|
||||
my @rows2 = ();
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@
|
|||
<intrahtdocs>/usr/share/koha/intranet/htdocs/intranet-tmpl</intrahtdocs>
|
||||
<includes>/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/</includes>
|
||||
<logdir>/var/log/koha/__KOHASITE__</logdir>
|
||||
<docdir>/usr/share/doc/koha-common</docdir>
|
||||
<backupdir>/var/spool/koha/__KOHASITE__</backupdir>
|
||||
<!-- Enable the two following to allow superlibrarians to download
|
||||
database and configuration dumps (respectively) from the Export
|
||||
|
|
|
|||
|
|
@ -282,6 +282,7 @@ __PAZPAR2_TOGGLE_XML_POST__
|
|||
<intrahtdocs>__INTRANET_TMPL_DIR__</intrahtdocs>
|
||||
<includes>__INTRANET_TMPL_DIR__/prog/en/includes/</includes>
|
||||
<logdir>__LOG_DIR__</logdir>
|
||||
<docdir>__DOC_DIR__</docdir>
|
||||
<backupdir>__BACKUP_DIR__</backupdir>
|
||||
<!-- Enable the two following to allow superlibrarians to download
|
||||
database and configuration dumps (respectively) from the Export
|
||||
|
|
|
|||
Loading…
Reference in New Issue