• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geonetwork / geonetwork-ui / 19038507040

03 Nov 2025 02:45PM UTC coverage: 83.977% (-0.6%) from 84.554%
19038507040

Pull #1402

github

web-flow
Merge 409f93295 into 2abe6a279
Pull Request #1402: [Datahub] Add DOI display to metadata records

3650 of 4888 branches covered (74.67%)

Branch coverage included in aggregate %.

21 of 30 new or added lines in 8 files covered. (70.0%)

14 existing lines in 2 files now uncovered.

10433 of 11882 relevant lines covered (87.81%)

264.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.ts
1
import { Component, Input } from '@angular/core'
1✔
2
import { CommonModule } from '@angular/common'
1✔
3
import { NgIcon, provideIcons } from '@ng-icons/core'
1✔
4
import { MatTooltipModule } from '@angular/material/tooltip'
1✔
5
import { matContentCopy, matOpenInNew } from '@ng-icons/material-icons/baseline'
1✔
6
import { TranslatePipe } from '@ngx-translate/core'
1✔
7
import { CopyTextButtonComponent } from '@geonetwork-ui/ui/inputs'
1✔
8

9
@Component({
10
  selector: 'gn-ui-metadata-doi',
11
  standalone: true,
12
  imports: [
13
    CommonModule,
14
    MatTooltipModule,
15
    NgIcon,
16
    TranslatePipe,
17
    CopyTextButtonComponent,
18
  ],
19
  templateUrl: './metadata-doi.component.html',
20
  styleUrl: './metadata-doi.component.css',
21
  viewProviders: [
22
    provideIcons({
23
      matContentCopy,
24
      matOpenInNew,
25
    }),
26
  ],
27
})
28
export class MetadataDoiComponent {
1✔
29
  @Input() code!: string
30
  @Input() link?: string
31

32
  copyToClipboard(event: MouseEvent) {
NEW
33
    event.preventDefault()
×
NEW
34
    if (this.code) {
×
NEW
35
      navigator.clipboard.writeText(this.code)
×
36
    }
37
  }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc