Bugzilla – Attachment 172374 Details for
Bug 37724
Remove Koha version number from public generator metadata
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37724: Remove Koha version number from OPAC
Bug-37724-Remove-Koha-version-number-from-OPAC.patch (text/plain), 4.66 KB, created by
Victor Grousset/tuxayo
on 2024-10-03 20:40:21 UTC
(
hide
)
Description:
Bug 37724: Remove Koha version number from OPAC
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-10-03 20:40:21 UTC
Size:
4.66 KB
patch
obsolete
>From ce967e72043d522bcbb4631247f23a82970af3d9 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Mon, 26 Aug 2024 01:22:12 +0000 >Subject: [PATCH] Bug 37724: Remove Koha version number from OPAC > >This change removes the Koha version number from the OPAC generator >metadata. > >Test plan: >0. Apply patch >1. Enable syspref SelfCheckInModule >2. Visit /cgi-bin/koha/opac-main.pl and confirm meta tag doesn't >include version number >3. Visit /cgi-bin/koha/sci/sci-main.pl and confirm meta tag doesn't >include version number >4. Visit /cgi-bin/koha/sco/sco-main.pl) and confirm meta tag doesn't >include version number >5. Click "Help" and confirm meta tag doesn't include version number > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc >index 40cc332fba..2c16b8c6aa 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc >@@ -4,7 +4,7 @@ > [%- USE KohaPlugins -%] > [% USE Asset %] > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >-<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats --> >+<meta name="generator" content="Koha" /> <!-- leave this for stats --> > <meta name="viewport" content="width=device-width, initial-scale=1" /> > <meta name="csrf-token" content="[% Koha.GenerateCSRF | $raw %]"> > [% Asset.css("lib/jquery/responsive.dataTables.min.css") | $raw %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >index bc5d1affeb..6be4c01d65 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >@@ -28,7 +28,7 @@ > <title>Self check-in › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %]</title> > > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >-<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats --> >+<meta name="generator" content="Koha" /> <!-- leave this for stats --> > > [% IF ( Koha.Preference('OpacFavicon') ) %] > <link rel="shortcut icon" href="[% Koha.Preference('OpacFavicon') | url %]" type="image/x-icon" /> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt >index 6cac354725..2024e00d1a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt >@@ -8,7 +8,7 @@ > [% SET SelfCheckHelpMessage = AdditionalContents.get( location => "SelfCheckHelpMessage", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] > <title>Self checkout help › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %]</title> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >-<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats --> >+<meta name="generator" content="Koha" /> <!-- leave this for stats --> > <link rel="shortcut icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | html %]/[% theme | html %]/images/favicon.ico[% END %]" type="image/x-icon" /> > [% Asset.css("lib/fontawesome/css/fontawesome.min.css") | $raw %] > [% Asset.css("lib/fontawesome/css/brands.min.css") | $raw %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >index c57c2cadff..2201abaa0b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >@@ -11,7 +11,7 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Self checkout › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %]</title> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >-<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats --> >+<meta name="generator" content="Koha" /> <!-- leave this for stats --> > [% IF ( Koha.Preference('OpacFavicon') ) %] > <link rel="shortcut icon" href="[% Koha.Preference('OpacFavicon') | url %]" type="image/x-icon" /> > [% ELSE %] >-- >2.46.2
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 37724
:
170689
|
172374
|
173872