Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DLCM
UI
DLCM-Portal
Commits
0eb09400
Commit
0eb09400
authored
Nov 24, 2021
by
Florent Poittevin
Committed by
David.Gold1
Dec 01, 2021
Browse files
feat: [DLCM-1931] integrate oai link into footer
parent
d8ece877
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/app/shared/components/presentationals/shared-toc/shared-toc.presentational.html
View file @
0eb09400
...
...
@@ -47,6 +47,15 @@
mat-menu-item
>
{{'toc.section.tools' | translate}}
</button>
<button
[disabled]=
"oaiPmhProvider | isNullOrUndefined"
(click)=
"navigateTo(oaiPmhProvider)"
mat-menu-item
>
OAI PMH Provider
<solidify-icon
class=
"icon-right"
[iconName]=
"iconNameEnum.externalLink"
></solidify-icon>
</button>
</mat-menu>
<mat-menu
#integrationGuideMenu
="
matMenu
"
...
...
src/app/shared/components/presentationals/shared-toc/shared-toc.presentational.scss
View file @
0eb09400
...
...
@@ -16,6 +16,11 @@
padding
:
0
10px
;
margin
:
8px
0
;
}
.icon-right
{
margin-left
:
15px
;
margin-right
:
0
;
}
}
.shared-toc-container-panel
{
...
...
src/app/shared/components/presentationals/shared-toc/shared-toc.presentational.ts
View file @
0eb09400
...
...
@@ -15,6 +15,7 @@ import {
MatMenu
,
MatMenuItem
,
}
from
"
@angular/material/menu
"
;
import
{
environment
}
from
"
@environments/environment
"
;
import
{
SharedAbstractPresentational
}
from
"
@shared/components/presentationals/shared-abstract/shared-abstract.presentational
"
;
import
{
TocHelper
}
from
"
@shared/helpers/toc.helper
"
;
import
{
...
...
@@ -24,6 +25,7 @@ import {
import
{
distinctUntilChanged
}
from
"
rxjs/operators
"
;
import
{
BreakpointService
,
isNullOrUndefinedOrWhiteString
,
MARK_AS_TRANSLATABLE
,
ObservableUtil
,
}
from
"
solidify-frontend
"
;
...
...
@@ -50,6 +52,13 @@ export class SharedTocPresentational extends SharedAbstractPresentational implem
@
Input
()
isLoading
:
boolean
;
get
oaiPmhProvider
():
string
{
if
(
isNullOrUndefinedOrWhiteString
(
environment
.
oaiInfo
)
||
isNullOrUndefinedOrWhiteString
(
environment
.
oaiProviderUrlEnd
))
{
return
undefined
;
}
return
environment
.
oaiInfo
+
environment
.
oaiProviderUrlEnd
;
}
@
ViewChild
(
"
menu
"
)
readonly
menu
:
MatMenu
;
...
...
@@ -104,4 +113,8 @@ export class SharedTocPresentational extends SharedAbstractPresentational implem
openUserGuide
():
void
{
this
.
_displaySidebarUserGuideChangeBS
.
next
();
}
navigateTo
(
url
:
string
)
{
window
.
open
(
url
,
"
_blank
"
);
}
}
src/environments/environment.defaults.model.ts
View file @
0eb09400
...
...
@@ -51,6 +51,7 @@ export interface DlcmEnvironment extends DefaultSolidifyEnvironment {
urlNationalArchivePronom
:
string
;
doiLink
:
string
;
oaiProviderUrlEnd
:
string
;
// Polling
refreshTabStatusCounterIntervalInSecond
:
number
;
...
...
src/environments/environment.defaults.ts
View file @
0eb09400
...
...
@@ -71,6 +71,7 @@ export const defaultEnvironment: DlcmEnvironment = {
urlNationalArchivePronom
:
"
https://www.nationalarchives.gov.uk/PRONOM/
"
,
doiLink
:
"
https://doi.org/
"
,
oaiProviderUrlEnd
:
"
/oai-provider/oai?verb=Identify&smartView=dlcm_oai2.xsl
"
,
// Polling
refreshTabStatusCounterIntervalInSecond
:
60
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment