From 8c99380142d9efbc96e238288f289939a5d29272 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 23 Apr 2025 08:44:41 +0000 Subject: [PATCH] Bug 38010: (QA follow-up) Adjust mapping for the manual Signed-off-by: Michaela Sieber Signed-off-by: Jonathan Druart --- Koha/Manual.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Koha/Manual.pm b/Koha/Manual.pm index 1ad1d96c382..5da0d974760 100644 --- a/Koha/Manual.pm +++ b/Koha/Manual.pm @@ -59,9 +59,9 @@ our $mapping = { 'acqui/orderreceive' => '/acquisitions.html#receiving-orders', 'acqui/parcel' => '/acquisitions.html#receiving-orders', 'acqui/parcels' => '/acquisitions.html#receiving-orders', - 'acqui/supplier' => '/acquisitions.html#vendors', 'acqui/uncertainprice' => '/acquisitions.html#create-a-basket', 'acqui/z3950_search' => '/acquisitions.html#create-a-basket', + 'acquisition/vendors' => '/acquisitions.html#vendors', 'admin/additional-fields' => '/administration.html#additional-fields', 'admin/admin-home' => '/administration.html', 'admin/aqbudgetperiods' => '/administration.html#budgets', @@ -314,14 +314,18 @@ our $mapping = { sub get_url { my ( $url, $preferred_language ) = @_; my $file; - if ( $url =~ /koha\/(.*)\.pl/ || $url =~ '/koha/(erm.*)' || $url =~ '/koha/(preservation.*)' ) { + if ( $url =~ /koha\/(.*)\.pl/ + || $url =~ '/koha/(erm.*)' + || $url =~ '/koha/(preservation.*)' + || $url =~ '/koha/(acquisition/vendors.*)' ) + { $file = $1; } else { $file = 'mainpage'; } $file =~ s/[^a-zA-Z0-9_\-\/]*//g; - if ( $file =~ m|^erm| || $file =~ m|^preservation| ) { + if ( $file =~ m|^erm| || $file =~ m|^preservation| || $file =~ m|^vendors| ) { $file =~ s|\d*+||g; } -- 2.34.1