Skip to content

Commit 0892e6d

Browse files
authored
Add another link to geonetwork (#20)
1 parent 5d92423 commit 0892e6d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

apps/datahub/src/app/home/geocat-header/geocat-header.component.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
<div
33
class="mx-auto flex items-center justify-center sm:justify-end gap-2 py-1 text-sm"
44
>
5+
<a
6+
class="block hover:underline mr-4"
7+
[href]="gnLinkGeneral"
8+
target="_blank"
9+
>{{ 'datahub.header.geonetwork' | translate }}</a
10+
>
511
<a class="block hover:underline mr-4" [href]="docLink" target="_blank">{{
612
'datahub.header.documentation' | translate
713
}}</a>
8-
<a class="block hover:underline" [href]="gnLink" target="_blank">{{
14+
<a class="block hover:underline" [href]="gnLinkAdmin" target="_blank">{{
915
'datahub.header.admin' | translate
1016
}}</a>
1117
<gn-ui-language-switcher

apps/datahub/src/app/home/geocat-header/geocat-header.component.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ export class GeocatHeaderComponent {
1818
}/home.html`
1919
}
2020

21-
get gnLink() {
21+
get gnLinkAdmin() {
2222
return `/geonetwork/srv/${
2323
LANG_2_TO_3_MAPPER[this.translate.currentLang] || 'eng'
2424
}/catalog.edit#/board`
2525
}
26+
27+
get gnLinkGeneral() {
28+
return `/geonetwork/srv/${
29+
LANG_2_TO_3_MAPPER[this.translate.currentLang] || 'eng'
30+
}/catalog.search#/home`
31+
}
2632
}

0 commit comments

Comments
 (0)