Skip to content

Commit

Permalink
geocat: do not show catalog on record page
Browse files Browse the repository at this point in the history
Co-authored-by: Romuald Caplier <[email protected]>
  • Loading branch information
2 people authored and jahow committed Dec 13, 2024
1 parent 2e90e77 commit 3e24f77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
[metadataQualityDisplay]="metadataQualityDisplay"
></gn-ui-metadata-quality>
</div>
<gn-ui-metadata-catalog
*ngIf="sourceLabel$ | async as sourceLabel"
[sourceLabel]="sourceLabel"
>
</gn-ui-metadata-catalog>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ describe('RecordMetadataComponent', () => {
metadataContact = fixture.debugElement.query(
By.directive(MetadataContactComponent)
).componentInstance
catalogComponent = fixture.debugElement.query(
By.directive(MetadataCatalogComponent)
).componentInstance
// SPECIFIC GEOCAT
// catalogComponent = fixture.debugElement.query(
// By.directive(MetadataCatalogComponent)
// ).componentInstance
})
describe('if metadata present', () => {
it('shows the full metadata', () => {
Expand All @@ -137,12 +138,6 @@ describe('RecordMetadataComponent', () => {
it('shows the metadata contact', () => {
expect(metadataContact.metadata).toHaveProperty('contacts')
})
it('shows the metadata catalog', () => {
expect(sourcesService.getSourceLabel).toBeCalledWith(
SAMPLE_RECORD.extras.catalogUuid
)
expect(catalogComponent.sourceLabel).toEqual('catalog label')
})
})
describe('if metadata not present', () => {
beforeEach(() => {
Expand Down

0 comments on commit 3e24f77

Please sign in to comment.