diff --git a/src/app/bebb-route/bebb-route.component.spec.ts b/src/app/bebb-route/bebb-route.component.spec.ts
index 32d52a76..a8a3be65 100644
--- a/src/app/bebb-route/bebb-route.component.spec.ts
+++ b/src/app/bebb-route/bebb-route.component.spec.ts
@@ -90,13 +90,10 @@ describe('BebbRouteComponent', () => {
expect(beolServiceSpy.searchForLetterFromBEBB).toHaveBeenCalledWith(lt);
- expect(beolServiceSpy.routeByResourceType).toHaveBeenCalledWith('http://0.0.0.0:3333/ontology/0801/beol/v2#letter', 'letterIri');
-
const dspServiceSpy = TestBed.inject(DspApiConnectionToken);
expect(dspServiceSpy.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/bebb-route/bebb-route.component.ts b/src/app/bebb-route/bebb-route.component.ts
index 12af516b..a188a18c 100644
--- a/src/app/bebb-route/bebb-route.component.ts
+++ b/src/app/bebb-route/bebb-route.component.ts
@@ -36,11 +36,11 @@ export class BebbRouteComponent implements OnInit {
(resourceSeq: ReadResourceSequence) => {
if (resourceSeq.resources.length === 1) {
-
- const letterIri: string = resourceSeq.resources[0].id;
+ const letter = resourceSeq.resources[0];
+ const letterIri: string = letter.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, letter);
} else {
// letter not found
this.notFound = true;
diff --git a/src/app/directives/mathjax.directive.ts b/src/app/directives/mathjax.directive.ts
index bcf1b344..104134ef 100644
--- a/src/app/directives/mathjax.directive.ts
+++ b/src/app/directives/mathjax.directive.ts
@@ -260,7 +260,7 @@ export class MathJaxDirective implements OnChanges {
// TODO: the value object should handle this and check for the existence of the given referred resource
const referredRes = this._referredResources[referredResourceIri];
- this._beol.routeByResourceType(referredRes.type, referredResourceIri);
+ this._beol.routeByResourceType(referredRes.type, referredResourceIri, referredRes);
// preventDefault (propagation)
return false;
@@ -275,7 +275,7 @@ export class MathJaxDirective implements OnChanges {
// TODO: the value object should handle this and check for the existence of the given referred resource
const referredResourceType = this._referredResources[referredResourceIri].type;
- this._beol.routeByResourceType(referredResourceType, referredResourceIri);
+ this._beol.routeByResourceType(referredResourceType, referredResourceIri, this._referredResources[referredResourceIri]);
// preventDefault (propagation)
return false;
diff --git a/src/app/introduction/introduction.component.html b/src/app/introduction/introduction.component.html
index bb5d817b..0a8cbed9 100644
--- a/src/app/introduction/introduction.component.html
+++ b/src/app/introduction/introduction.component.html
@@ -86,7 +86,27 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{{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.