|
Lines 234-239
our $mapping = {
Link Here
|
| 234 |
'patroncards/manage' => '/tools.html#patron-card-creator', |
234 |
'patroncards/manage' => '/tools.html#patron-card-creator', |
| 235 |
'plugins/plugins-home' => '/plugins.html', |
235 |
'plugins/plugins-home' => '/plugins.html', |
| 236 |
'plugins/plugins-upload' => '/plugins.html', |
236 |
'plugins/plugins-upload' => '/plugins.html', |
|
|
237 |
'preservation/home' => '/preservation.html', |
| 238 |
'preservation/settings/processings/add' => '/preservation.html#add-a-new-processing', |
| 239 |
'preservation/settings/processings/edit/' => '/preservation.html#add-a-new-processing', |
| 240 |
'preservation/settings' => '/preservation.html#settings', |
| 241 |
'preservation/settings/' => '/preservation.html#settings', |
| 242 |
'preservation/trains' => '/preservation.html#trains', |
| 243 |
'preservation/trains/' => '/preservation.html#trains', |
| 244 |
'preservation/trains/add' => '/preservation.html#new-train', |
| 245 |
'preservation/trains//items/add' => '/preservation.html#add-items', |
| 246 |
'preservation/waiting-list' => '/preservation.html#waiting-list', |
| 237 |
'reports/acquisitions_stats' => '/reports.html#acquisitions-statistics', |
247 |
'reports/acquisitions_stats' => '/reports.html#acquisitions-statistics', |
| 238 |
'reports/bor_issues_top' => '/reports.html#patrons-with-the-most-checkouts', |
248 |
'reports/bor_issues_top' => '/reports.html#patrons-with-the-most-checkouts', |
| 239 |
'reports/borrowers_out' => '/reports.html#patrons-with-no-checkouts', |
249 |
'reports/borrowers_out' => '/reports.html#patrons-with-no-checkouts', |
|
Lines 298-312
our $mapping = {
Link Here
|
| 298 |
sub get_url { |
308 |
sub get_url { |
| 299 |
my ( $url, $preferred_language ) = @_; |
309 |
my ( $url, $preferred_language ) = @_; |
| 300 |
my $file; |
310 |
my $file; |
| 301 |
if ($url =~ /koha\/(.*)\.pl/ || $url =~ '/koha/(erm.*)') { |
311 |
if ($url =~ /koha\/(.*)\.pl/ || $url =~ '/koha/(erm.*)' || $url =~ '/koha/(preservation.*)') { |
| 302 |
$file = $1; |
312 |
$file = $1; |
| 303 |
} else { |
313 |
} else { |
| 304 |
$file = 'mainpage'; |
314 |
$file = 'mainpage'; |
| 305 |
} |
315 |
} |
| 306 |
$file =~ s/[^a-zA-Z0-9_\-\/]*//g; |
316 |
$file =~ s/[^a-zA-Z0-9_\-\/]*//g; |
| 307 |
|
317 |
|
| 308 |
if ( $file =~ m|^erm| ) { |
318 |
if ( $file =~ m|^erm| || $file =~ m|^preservation|) { |
| 309 |
$file =~ s|\d*$||; |
319 |
$file =~ s|\d*+||g; |
| 310 |
} |
320 |
} |
| 311 |
|
321 |
|
| 312 |
my $view; |
322 |
my $view; |
| 313 |
- |
|
|