Bugzilla – Attachment 183451 Details for
Bug 39712
Query parameters break the manual mappings in vue modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39712: Add POD
Bug-39712-Add-POD.patch (text/plain), 2.25 KB, created by
PTFS Europe Sandboxes
on 2025-06-24 12:26:45 UTC
(
hide
)
Description:
Bug 39712: Add POD
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2025-06-24 12:26:45 UTC
Size:
2.25 KB
patch
obsolete
>From 984ec6d1d46038992901094e477a1aecd3e336c6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 24 Jun 2025 12:39:51 +0200 >Subject: [PATCH] Bug 39712: Add POD > >Signed-off-by: Aude Charillon <aude.charillon@openfifth.co.uk> >--- > Koha/Manual.pm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > >diff --git a/Koha/Manual.pm b/Koha/Manual.pm >index 90f06d0b5d..c3d3a4bac2 100644 >--- a/Koha/Manual.pm >+++ b/Koha/Manual.pm >@@ -1,9 +1,39 @@ > package Koha::Manual; > >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ > use Modern::Perl; > > use C4::Context; > >+=head1 NAME >+ >+Koha::Manual - Build links to the documentation >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=head3 _get_help_version >+ >+Return the version to use. >+Either the system preference "Version", or the last version.major value if using unstable. >+ >+=cut >+ > sub _get_help_version { > my $help_version = C4::Context->preference("Version"); > if ( $help_version =~ m|^(\d+)\.(\d{2}).*$| ) { >@@ -16,6 +46,14 @@ sub _get_help_version { > return $help_version; > } > >+=head3 _get_base_url >+ >+Return the base URL to use. >+ >+Use system preferences 'KohaManualLanguage' and 'KohaManualBaseURL' to properly build the URL. >+ >+=cut >+ > sub _get_base_url { > my ($preferred_language) = @_; > >@@ -314,6 +352,14 @@ our $mapping = { > 'virtualshelves/shelves' => '/lists.html#lists', > }; > >+=head3 get_url >+ >+ my $koha_manual_url = Koha::Manual::get_url($referer, $lang); >+ >+Return the external URL to the manual for the I<$url> passed in parameter >+ >+=cut >+ > sub get_url { > my ( $url, $preferred_language ) = @_; > my $file; >-- >2.39.5
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 39712
:
183437
|
183438
|
183439
|
183440
|
183441
|
183447
|
183448
|
183449
|
183450
| 183451