forked from geolba/tethys.frontend
- 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:
parent
bb7d8eb378
commit
50ab318854
5 changed files with 103 additions and 23 deletions
|
|
@ -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(".");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue