Bugzilla – Attachment 125073 Details for
Bug 28454
Add Koha version number to database schema link in reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28454: [ALTERNATIVE PATCH] Add Koha version number to database schema link in reports
Bug-28454-ALTERNATIVE-PATCH-Add-Koha-version-numbe.patch (text/plain), 2.84 KB, created by
Owen Leonard
on 2021-09-20 16:17:42 UTC
(
hide
)
Description:
Bug 28454: [ALTERNATIVE PATCH] Add Koha version number to database schema link in reports
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-09-20 16:17:42 UTC
Size:
2.84 KB
patch
obsolete
>From 38c9adedc15214cd98275c5dd9ed515a4b07b304 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 25 Aug 2021 12:44:56 +0200 >Subject: [PATCH] Bug 28454: [ALTERNATIVE PATCH] Add Koha version number to > database schema link in reports > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/includes/guided-reports-view.inc | 8 +++++++- > .../intranet-tmpl/prog/en/modules/reports/reports-home.tt | 8 +++++++- > 2 files changed, 14 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc >index 752ecf22c3..6b12735253 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc >@@ -1,3 +1,4 @@ >+[% USE Koha %] > <div id="navmenu"> > <div id="navmenulist"> > >@@ -12,7 +13,12 @@ > <h5>Useful resources</h5> > <ul> > <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha report library</a></li> >-<li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li> >+[% SET koha_version = Koha.Version %] >+[% IF koha_version.development %] >+ <li><a href="http://schema.koha-community.org/master" target="blank">Koha database schema</a></li> >+[% ELSE %] >+ <li><a href="http://schema.koha-community.org/[% koha_version.major | uri %]_[% koha_version.minor %]" target="blank">Koha database schema</a></li> >+[% END %] > </ul> > </div> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt >index b3ee4d5ba8..6f74582ab8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt >@@ -93,7 +93,13 @@ > <li><a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a></li> > <li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by item type</a></li> > <li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a></li> >- <li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li> >+ [% SET koha_version = Koha.Version %] >+ [% IF koha_version.development %] >+ <li><a href="http://schema.koha-community.org/master" target="blank">Koha database schema</a></li> >+ [% ELSE %] >+ <li><a href="http://schema.koha-community.org/[% koha_version.major | uri %]_[% koha_version.minor %]" target="blank">Koha database schema</a></li> >+ [% END %] >+ > <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li> > </ul></div> > </div> >-- >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 28454
:
121429
|
121491
|
123801
|
123802
|
123917
|
123918
|
124084
|
125073
|
125074
|
125316
|
125317