Bugzilla – Attachment 16958 Details for
Bug 9850
Koha 3.12 Help Files Update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[ALTERNATIVE] Bug 9850: Build the version for the manual link
0001-Bug-9850-Build-the-version-for-the-manual-link.patch (text/plain), 1.90 KB, created by
Jonathan Druart
on 2013-03-28 10:48:33 UTC
(
hide
)
Description:
[ALTERNATIVE] Bug 9850: Build the version for the manual link
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-03-28 10:48:33 UTC
Size:
1.90 KB
patch
obsolete
>From caad47497ce50503b628be4a625cde659ed52d2d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 28 Mar 2013 11:40:52 +0100 >Subject: [PATCH 1/1] Bug 9850: Build the version for the manual link > >--- > help.pl | 9 +++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/help/about.tt | 4 ++-- > 2 files changed, 11 insertions(+), 2 deletions(-) > >diff --git a/help.pl b/help.pl >index f641fe6..77db917 100755 >--- a/help.pl >+++ b/help.pl >@@ -57,4 +57,13 @@ unless ( -e "$htdocs/$theme/$lang/modules/$from" ) { > my $template = C4::Templates::gettemplate($from, 'intranet', $query); > $template->param( referer => $refer ); > >+my $help_version = C4::Context->preference("Version"); >+if ( $help_version =~ m|^(\d+)\.(\d{2}).*$| ) { >+ my $version = $1; >+ my $major = $2; >+ if ( $major % 2 ) { $major-- }; >+ $help_version = "$version.$major"; >+} >+$template->param( helpVersion => $help_version ); >+ > output_html_with_http_headers $query, "", $template->output; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/about.tt >index 210123b..67db69b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/about.tt >@@ -20,6 +20,6 @@ > > <p>Koha is developed and supported by a large number of developers around the world. Thanks to all the developers and libraries who support Koha</p> > >-<p><strong>See the full documentation for the About page in the <a href="http://manual.koha-community.org/3.10/en/aboutkoha.html">manual</a> (online).</strong></p> >+<p><strong>See the full documentation for the About page in the <a href="http://manual.koha-community.org/[% helpVersion %]/en/aboutkoha.html">manual</a> (online).</strong></p> > >-[% INCLUDE 'help-bottom.inc' %] >\ No newline at end of file >+[% INCLUDE 'help-bottom.inc' %] >-- >1.7.10.4 >
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 9850
:
16851
|
16852
|
16854
|
16856
|
16890
|
16899
|
16947
|
16949
|
16950
|
16951
|
16958
|
16974
|
16975
|
16980
|
16981
|
16999
|
17000
|
17001
|
17002
|
17003
|
17004
|
17005
|
17006
|
17007
|
17008
|
17009
|
17010
|
17011
|
17012
|
17013
|
17025
|
17094
|
17095
|
17096
|
17097
|
17098
|
17102
|
17103
|
17104
|
17105
|
17122
|
17139
|
17140
|
17141
|
17142
|
17143
|
17144
|
17145
|
17146
|
17147
|
17193
|
17194
|
17195
|
17196
|
17197
|
17198
|
17199
|
17200
|
17201
|
17629
|
17630
|
17631
|
17632
|
17633
|
17634
|
17635
|
17636
|
17637
|
17638
|
17639
|
17640