Skip to content

Commit c13d23d

Browse files
authored
Merge pull request #2844 from alexandrevryghem/fix-home-page-issues
Fixed home page issues
2 parents 4d59c13 + e10630f commit c13d23d

37 files changed

Lines changed: 332 additions & 213 deletions

config/config.example.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,11 @@ mediaViewer:
407407

408408
# Whether the end user agreement is required before users use the repository.
409409
# If enabled, the user will be required to accept the agreement before they can use the repository.
410-
# And whether the privacy statement should exist or not.
410+
# And whether the privacy statement/COAR notify support page should exist or not.
411411
info:
412412
enableEndUserAgreement: true
413413
enablePrivacyStatement: true
414+
enableCOARNotifySupport: true
414415

415416
# Whether to enable Markdown (https://commonmark.org/) and MathJax (https://www.mathjax.org/)
416417
# display in supported metadata fields. By default, only dc.description.abstract is supported.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<ds-configuration-search-page configuration="administrativeView" [context]="context"></ds-configuration-search-page>
1+
<ds-themed-configuration-search-page configuration="administrativeView" [context]="context"></ds-themed-configuration-search-page>

src/app/admin/admin-search-page/admin-search-page.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '@angular/core/testing';
77
import { ActivatedRoute } from '@angular/router';
88

9-
import { ConfigurationSearchPageComponent } from '../../search-page/configuration-search-page.component';
9+
import { ThemedConfigurationSearchPageComponent } from '../../search-page/themed-configuration-search-page.component';
1010
import { ActivatedRouteStub } from '../../shared/testing/active-router.stub';
1111
import { AdminSearchPageComponent } from './admin-search-page.component';
1212

@@ -23,7 +23,7 @@ describe('AdminSearchPageComponent', () => {
2323
schemas: [NO_ERRORS_SCHEMA],
2424
}).overrideComponent(AdminSearchPageComponent, {
2525
remove: {
26-
imports: [ConfigurationSearchPageComponent],
26+
imports: [ThemedConfigurationSearchPageComponent],
2727
},
2828
})
2929
.compileComponents();

src/app/admin/admin-search-page/admin-search-page.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Component } from '@angular/core';
22

33
import { Context } from '../../core/shared/context.model';
4-
import { ConfigurationSearchPageComponent } from '../../search-page/configuration-search-page.component';
4+
import { ThemedConfigurationSearchPageComponent } from '../../search-page/themed-configuration-search-page.component';
55

66
@Component({
77
selector: 'ds-admin-search-page',
88
templateUrl: './admin-search-page.component.html',
99
styleUrls: ['./admin-search-page.component.scss'],
1010
standalone: true,
11-
imports: [ConfigurationSearchPageComponent],
11+
imports: [ThemedConfigurationSearchPageComponent],
1212
})
1313

1414
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<ds-configuration-search-page configuration="supervision" [context]="context"></ds-configuration-search-page>
1+
<ds-themed-configuration-search-page configuration="supervision" [context]="context"></ds-themed-configuration-search-page>

src/app/admin/admin-workflow-page/admin-workflow-page.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
waitForAsync,
66
} from '@angular/core/testing';
77

8-
import { ConfigurationSearchPageComponent } from '../../search-page/configuration-search-page.component';
8+
import { ThemedConfigurationSearchPageComponent } from '../../search-page/themed-configuration-search-page.component';
99
import { AdminWorkflowPageComponent } from './admin-workflow-page.component';
1010

1111
describe('AdminSearchPageComponent', () => {
@@ -20,7 +20,7 @@ describe('AdminSearchPageComponent', () => {
2020
.overrideComponent(AdminWorkflowPageComponent, {
2121
remove: {
2222
imports: [
23-
ConfigurationSearchPageComponent,
23+
ThemedConfigurationSearchPageComponent,
2424
],
2525
},
2626
})

src/app/admin/admin-workflow-page/admin-workflow-page.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Component } from '@angular/core';
22

33
import { Context } from '../../core/shared/context.model';
4-
import { ConfigurationSearchPageComponent } from '../../search-page/configuration-search-page.component';
4+
import { ThemedConfigurationSearchPageComponent } from '../../search-page/themed-configuration-search-page.component';
55

66
@Component({
77
selector: 'ds-admin-workflow-page',
88
templateUrl: './admin-workflow-page.component.html',
99
styleUrls: ['./admin-workflow-page.component.scss'],
1010
standalone: true,
11-
imports: [ConfigurationSearchPageComponent],
11+
imports: [ThemedConfigurationSearchPageComponent],
1212
})
1313

1414
/**

src/app/app-routing-paths.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export function getBitstreamRequestACopyRoute(item, bitstream): { routerLink: st
3434
},
3535
};
3636
}
37-
export const COAR_NOTIFY_SUPPORT = 'coar-notify-support';
3837

3938
export const HOME_PAGE_PATH = 'home';
4039

src/app/community-list-page/community-list/community-list.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span aria-hidden="true" class="btn btn-default invisible" cdkTreeNodeToggle>
88
<span class="fa fa-chevron-right"></span>
99
</span>
10-
<div class="align-middle pt-2">
10+
<div class="align-middle my-auto">
1111
<button *ngIf="(dataSource.loading$ | async) !== true" (click)="getNextPage(node)"
1212
class="btn btn-outline-primary btn-sm" role="button">
1313
<i class="fas fa-angle-down"></i> {{ 'communityList.showMore' | translate }}
@@ -37,10 +37,10 @@
3737
<span class="fa fa-chevron-right"></span>
3838
</span>
3939
<div class="d-flex flex-row">
40-
<span class="align-middle pt-2 lead">
40+
<span class="d-flex align-middle my-auto">
4141
<a [routerLink]="node.route" class="lead">{{ dsoNameService.getName(node.payload) }}</a>
4242
<span class="pr-2">&nbsp;</span>
43-
<span *ngIf="node.payload.archivedItemsCount >= 0" class="badge badge-pill badge-secondary align-top archived-items-lead">{{node.payload.archivedItemsCount}}</span>
43+
<span *ngIf="node.payload.archivedItemsCount >= 0" class="badge badge-pill badge-secondary align-top archived-items-lead my-auto">{{node.payload.archivedItemsCount}}</span>
4444
</span>
4545
</div>
4646
</div>
@@ -71,7 +71,7 @@
7171
<span aria-hidden="true" class="btn btn-default invisible" cdkTreeNodeToggle>
7272
<span class="fa fa-chevron-right"></span>
7373
</span>
74-
<h6 class="align-middle pt-2">
74+
<h6 class="align-middle my-auto">
7575
<a [routerLink]="node.route" class="lead">{{ dsoNameService.getName(node.payload) }}</a>
7676
</h6>
7777
</div>

src/app/footer/footer.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ <h5 class="text-uppercase">Footer Content</h5>
8282
</li>
8383
</ul>
8484
</div>
85-
<div class="notify-enabled text-white" [hidden]="!coarLdnEnabled">
85+
<div *ngIf="coarLdnEnabled$ | async" class="notify-enabled text-white">
8686
<a class="coar-notify-support-route" routerLink="info/coar-notify-support">
8787
<img class="n-coar" src="assets/images/n-coar.png" [attr.alt]="'menu.header.image.logo' | translate" />
88-
COAR Notify
88+
{{ 'footer.link.coar-notify-support' | translate }}
8989
</a>
9090
</div>
9191
</div>

0 commit comments

Comments
 (0)