- Icon and link for licenses added

- Listing of authors in list of publications corrected
- Coverage section improved
- Contributor section moved down
This commit is contained in:
Porras-Bernardez 2024-09-04 13:46:09 +02:00
commit 50ab318854
5 changed files with 103 additions and 23 deletions

View file

@ -14,6 +14,16 @@ export default class VsResult extends Vue {
return this.datasets;
}
public simplifyAuthor(author:string): string {
if (author.endsWith(" ")) {
return author.substring(0, author.indexOf(","));
} else {
let firstNameInitial:string = author.charAt(author.indexOf(",") + 2);
return author.substring(0, author.indexOf(",") + 2) + firstNameInitial;
}
}
public getDomainWithoutSubdomain(): string {
const urlParts = new URL(window.location.href).hostname.split(".");