Lines 90-95
our $mapping = {
Link Here
|
90 |
'admin/oai_sets' => '/administration.html#oai-sets-configuration', |
90 |
'admin/oai_sets' => '/administration.html#oai-sets-configuration', |
91 |
'admin/patron-attr-types' => '/administration.html#patron-attribute-types', |
91 |
'admin/patron-attr-types' => '/administration.html#patron-attribute-types', |
92 |
'admin/preferences' => '/globalpreferences.html', |
92 |
'admin/preferences' => '/globalpreferences.html', |
|
|
93 |
'admin/preferences#accounting' => '/accountspreferences.html', |
94 |
'admin/preferences#acquisitions' => '/acquisitionspreferences.html', |
95 |
'admin/preferences#admin' => '/administrationpreferences.html', |
96 |
'admin/preferences#authorities' => '/authoritiespreferences.html', |
97 |
'admin/preferences#cataloguing' => '/catalogingpreferences.html', |
98 |
'admin/preferences#circulation' => '/circulationpreferences.html', |
99 |
'admin/preferences#enhanced_content' => '/enhancedcontentpreferences.html', |
100 |
'admin/preferences#i18n_l10n' => '/i18npreferences.html', |
101 |
'admin/preferences#logs' => '/logspreferences.html', |
102 |
'admin/preferences#opac' => '/opacpreferences.html', |
103 |
'admin/preferences#patrons' => '/patronspreferences.html', |
104 |
'admin/preferences#searching' => '/searchingpreferences.html', |
105 |
'admin/preferences#serials' => '/serialspreferences.html', |
106 |
'admin/preferences#staff_interface' => '/staffclientpreferences.html', |
107 |
'admin/preferences#staff_interface' => '/staffclientpreferences.html', |
108 |
'admin/preferences#tools' => '/toolspreferences.html', |
109 |
'admin/preferences#web_services' => '/webservicespreferences.html', |
93 |
'admin/smart-rules' => '/administration.html#circulation-and-fine-rules', |
110 |
'admin/smart-rules' => '/administration.html#circulation-and-fine-rules', |
94 |
'admin/sms_providers' => '/administration.html#sms-cellular-providers', |
111 |
'admin/sms_providers' => '/administration.html#sms-cellular-providers', |
95 |
'admin/systempreferences' => '/localusepreferences.html', |
112 |
'admin/systempreferences' => '/localusepreferences.html', |
Lines 242-249
sub get_url {
Link Here
|
242 |
} |
259 |
} |
243 |
$file =~ s/[^a-zA-Z0-9_\-\/]*//g; |
260 |
$file =~ s/[^a-zA-Z0-9_\-\/]*//g; |
244 |
|
261 |
|
|
|
262 |
my $view; |
263 |
if ($url =~ /(?:\?|\&)tab=(?<value>[\w+,.-]*)/) { |
264 |
$view = $file . '#' . $+{value}; |
265 |
} |
266 |
|
245 |
my $base_url = _get_base_url( $preferred_language ); |
267 |
my $base_url = _get_base_url( $preferred_language ); |
246 |
return $base_url . ( exists $mapping->{$file} ? $mapping->{$file} : $mapping->{mainpage} ); |
268 |
return $base_url |
|
|
269 |
. ( |
270 |
exists $mapping->{$view} ? $mapping->{$view} |
271 |
: exists $mapping->{$file} ? $mapping->{$file} |
272 |
: $mapping->{mainpage} |
273 |
); |
247 |
} |
274 |
} |
248 |
|
275 |
|
249 |
1; |
276 |
1; |
250 |
- |
|
|