@@ -, +, @@ --- Koha/Manual.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/Koha/Manual.pm +++ a/Koha/Manual.pm @@ -236,7 +236,7 @@ our $mapping = { 'plugins/plugins-upload' => '/plugins.html', 'preservation/home' => '/preservation.html', 'preservation/settings/processings/add' => '/preservation.html#add-a-new-processing', - 'preservation/settings/processings/edit/' => '/preservation.html#add-a-new-processing', + 'preservation/settings/processings/edit/' => '/preservation.html#add-a-new-processing', 'preservation/settings' => '/preservation.html#settings', 'preservation/settings/' => '/preservation.html#settings', 'preservation/trains' => '/preservation.html#trains', @@ -308,23 +308,23 @@ 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.*)' ) { $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 =~ s|\d*+||g; } my $view; - if ($url =~ /(?:\?|\&)tab=(?[\w+,.-]*)/) { + if ( $url =~ /(?:\?|\&)tab=(?[\w+,.-]*)/ ) { $view = $file . '#' . $+{value}; } - my $base_url = _get_base_url( $preferred_language ); + my $base_url = _get_base_url($preferred_language); return $base_url . ( exists $mapping->{$view} ? $mapping->{$view} --