- +

{{resource?.label}}

{{title.strval}}

diff --git a/src/app/introduction/introduction.component.ts b/src/app/introduction/introduction.component.ts index b60e2281..6afd722d 100644 --- a/src/app/introduction/introduction.component.ts +++ b/src/app/introduction/introduction.component.ts @@ -11,6 +11,7 @@ import { import { AppInitService, DspApiConnectionToken } from '@dasch-swiss/dsp-ui'; import { Subscription } from 'rxjs'; import { BeolService } from '../services/beol.service'; +import {MatSnackBar} from '@angular/material/snack-bar'; declare let require: any; @@ -60,12 +61,16 @@ export class IntroductionComponent implements OnInit, OnDestroy { 'text': this._appInitService.config['ontologyIRI'] + '/ontology/0801/beol/v2#hasText', }; + message: string; // message to show in the snackbar to confirm the copy of the ARK URL + action: string; // label for the snackbar action + constructor( @Inject(DspApiConnectionToken) private _dspApiConnection: KnoraApiConnection, private _route: ActivatedRoute, private _beol: BeolService, private _appInitService: AppInitService, - public location: Location + public location: Location, + protected _snackBar: MatSnackBar ) { } @@ -161,5 +166,18 @@ export class IntroductionComponent implements OnInit, OnDestroy { toggleGrandChildren(index: number) { this.curChildIndex = (index === this.curChildIndex ? undefined : index); } - + /** + * Display message to confirm the copy of the citation link (ARK URL) + * @param message + * @param action + */ + openARKURLSnackBar() { + this.message = 'Copied to clipboard!'; + this.action = 'Citation Link'; + this._snackBar.open(this.message, this.action, { + duration: 3000, + horizontalPosition: 'center', + verticalPosition: 'top' + }); + } } diff --git a/src/app/landing-page/landing-page.component.html b/src/app/landing-page/landing-page.component.html index 8cbc3cc5..b2d5e6d9 100644 --- a/src/app/landing-page/landing-page.component.html +++ b/src/app/landing-page/landing-page.component.html @@ -11,10 +11,10 @@

Bernoulli Euler Online

works and correspondence of members of Bernoulli dynasty and Leonhard Euler.

- Currently, BEOL platform contains three - main editions: Basler Edition der Bernoulli-Briefwechsel, Leonhard Euler's correspondence with + Currently, the BEOL platform contains three + main editions: Basler Edition der Bernoulli-Briefwechsel (ongoing), Leonhard Euler's correspondence with Christian Goldbach (Leonhardi Euleri Opera Omnia IVA/IV), and a multi-layered interactive edition of Jacob Bernoulli's scientific notebook Meditationes. - This platform also contains the supplementary edition of Leonhard Euler's correspondence with the + The platform also contains the edition of Leonhard Euler's correspondence with the Marquis de Condorcet and Turgot.

@@ -184,8 +184,8 @@

Feedback


Impressum

- - The contents on our website are released under a Creative Commons Attribution-NonCommercial-NonDerivative 4.0 International (CC BY-NC-ND 4.0) licence. + Creative Commons Licence + The contents on our website are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

diff --git a/src/app/leoo-route/leoo-route.component.spec.ts b/src/app/leoo-route/leoo-route.component.spec.ts index 62d196e2..4f1ad8d4 100644 --- a/src/app/leoo-route/leoo-route.component.spec.ts +++ b/src/app/leoo-route/leoo-route.component.spec.ts @@ -93,7 +93,7 @@ describe('LeooRouteComponent', () => { expect(dspConnectionSpy.v2.search.doExtendedSearch).toHaveBeenCalledWith('gravsearchQuery'); - expect(beolServiceSpy.routeByResourceType).toHaveBeenCalledWith('http://0.0.0.0:3333/ontology/0801/beol/v2#letter', 'letterIri'); + expect(beolServiceSpy.routeByResourceType).toHaveBeenCalledTimes(1); }); }); diff --git a/src/app/leoo-route/leoo-route.component.ts b/src/app/leoo-route/leoo-route.component.ts index 26dbfe0b..c81696b7 100644 --- a/src/app/leoo-route/leoo-route.component.ts +++ b/src/app/leoo-route/leoo-route.component.ts @@ -3,6 +3,7 @@ import { ActivatedRoute, ParamMap } from '@angular/router'; import { KnoraApiConnection, ReadResourceSequence } from '@dasch-swiss/dsp-js'; import { AppInitService, DspApiConnectionToken } from '@dasch-swiss/dsp-ui'; import { BeolService } from '../services/beol.service'; +import { ReadResource } from '@dasch-swiss/dsp-js/src/models/v2/resources/read/read-resource'; @Component({ selector: 'app-leoo-route', @@ -35,11 +36,11 @@ export class LeooRouteComponent implements OnInit { (resourceSeq: ReadResourceSequence) => { if (resourceSeq.resources.length === 1) { - - const letterIri: string = resourceSeq.resources[0].id; + const letterRes: ReadResource = resourceSeq.resources[0]; + const letterIri: string = letterRes.id; // given the Iri of the letter, display the whole resource - this._beolService.routeByResourceType(this._appInitService.config['ontologyIRI'] + '/ontology/0801/beol/v2#letter', letterIri); + this._beolService.routeByResourceType(this._appInitService.config['ontologyIRI'] + '/ontology/0801/beol/v2#letter', letterIri, letterRes); } else { // letter not found console.log(`letter with repertorium number ${this.repertoriumNumber} not found`); diff --git a/src/app/resource/beol-resource.ts b/src/app/resource/beol-resource.ts index 0b20aca0..d7e38049 100644 --- a/src/app/resource/beol-resource.ts +++ b/src/app/resource/beol-resource.ts @@ -286,7 +286,7 @@ export abstract class BeolResource implements OnInit, OnDestroy { const refResType = (linkVal.linkedResource !== undefined ? linkVal.linkedResource.type : ''); - this._beolService.routeByResourceType(refResType, linkVal.linkedResourceIri); + this._beolService.routeByResourceType(refResType, linkVal.linkedResourceIri, linkVal.linkedResource); } ngOnInit() { diff --git a/src/app/resource/biblio-items/biblio-items.component.html b/src/app/resource/biblio-items/biblio-items.component.html index 2542fafa..53db4ce9 100644 --- a/src/app/resource/biblio-items/biblio-items.component.html +++ b/src/app/resource/biblio-items/biblio-items.component.html @@ -269,7 +269,7 @@

{{props?.externalLink[0].propertyLabel}}

{{incomingLinkSourceRes.label}} + (click)="showIncomingRes(incomingLinkSourceRes.id, incomingLinkSourceRes.type, incomingLinkSourceRes)">{{incomingLinkSourceRes.label}}