Skip to content

Commit 527fb13

Browse files
committed
Merge branch 'main' into w2p-92282_Fix-missing-auth-tokens-when-retrieving-Bitstreams
2 parents 922e57c + 342a712 commit 527fb13

295 files changed

Lines changed: 19307 additions & 4342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
# Create a matrix of Node versions to test against (in parallel)
2424
matrix:
25-
node-version: [12.x, 14.x]
25+
node-version: [14.x, 16.x]
2626
# Do NOT exit immediately if one matrix job fails
2727
fail-fast: false
2828
# These are the actual CI steps to perform per job
@@ -82,11 +82,11 @@ jobs:
8282
run: yarn run test:headless
8383

8484
# NOTE: Angular CLI only supports code coverage for specs. See https://github.com/angular/angular-cli/issues/6286
85-
# Upload coverage reports to Codecov (for Node v12 only)
85+
# Upload coverage reports to Codecov (for one version of Node only)
8686
# https://github.com/codecov/codecov-action
8787
- name: Upload coverage to Codecov.io
8888
uses: codecov/codecov-action@v2
89-
if: matrix.node-version == '12.x'
89+
if: matrix.node-version == '16.x'
9090

9191
# Using docker-compose start backend using CI configuration
9292
# and load assetstore from a cached copy

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace
3535
Quick start
3636
-----------
3737

38-
**Ensure you're running [Node](https://nodejs.org) `v12.x`, `v14.x` or `v16.x`, [npm](https://www.npmjs.com/) >= `v5.x` and [yarn](https://yarnpkg.com) == `v1.x`**
38+
**Ensure you're running [Node](https://nodejs.org) `v14.x` or `v16.x`, [npm](https://www.npmjs.com/) >= `v5.x` and [yarn](https://yarnpkg.com) == `v1.x`**
3939

4040
```bash
4141
# clone the repo
@@ -90,7 +90,7 @@ Requirements
9090
------------
9191

9292
- [Node.js](https://nodejs.org) and [yarn](https://yarnpkg.com)
93-
- Ensure you're running node `v12.x`, `v14.x` or `v16.x` and yarn == `v1.x`
93+
- Ensure you're running node `v14.x` or `v16.x` and yarn == `v1.x`
9494

9595
If you have [`nvm`](https://github.com/creationix/nvm#install-script) or [`nvm-windows`](https://github.com/coreybutler/nvm-windows) installed, which is highly recommended, you can run `nvm install --lts && nvm use` to install and start using the latest Node LTS.
9696

@@ -179,7 +179,7 @@ If needing to update default configurations values for production, update local
179179

180180
- Update `environment.production.ts` file in `src/environment/` for a `production` environment;
181181

182-
The environment object is provided for use as import in code and is extended with he runtime configuration on bootstrap of the application.
182+
The environment object is provided for use as import in code and is extended with the runtime configuration on bootstrap of the application.
183183

184184
> Take caution moving runtime configs into the buildtime configuration. They will be overwritten by what is defined in the runtime config on bootstrap.
185185

config/config.example.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
debug: false
33

44
# Angular Universal server settings
5-
# NOTE: these must be 'synced' with the 'dspace.ui.url' setting in your backend's local.cfg.
5+
# NOTE: these settings define where Node.js will start your UI application. Therefore, these
6+
# "ui" settings usually specify a localhost port/URL which is later proxied to a public URL (using Apache or similar)
67
ui:
78
ssl: false
89
host: localhost
@@ -15,7 +16,8 @@ ui:
1516
max: 500 # limit each IP to 500 requests per windowMs
1617

1718
# The REST API server settings
18-
# NOTE: these must be 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.
19+
# NOTE: these settings define which (publicly available) REST API to use. They are usually
20+
# 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.
1921
rest:
2022
ssl: true
2123
host: api7.dspace.org
@@ -148,6 +150,9 @@ languages:
148150
- code: fi
149151
label: Suomi
150152
active: true
153+
- code: sv
154+
label: Svenska
155+
active: true
151156
- code: tr
152157
label: Türkçe
153158
active: true
@@ -246,3 +251,10 @@ bundle:
246251
mediaViewer:
247252
image: false
248253
video: false
254+
255+
# Whether the end user agreement is required before users use the repository.
256+
# If enabled, the user will be required to accept the agreement before they can use the repository.
257+
# And whether the privacy statement should exist or not.
258+
info:
259+
enableEndUserAgreement: true
260+
enablePrivacyStatement: true

docker/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Docker Compose files
22

33
***
4-
:warning: **NOT PRODUCTION READY** The below Docker Compose resources are not guaranteed "production ready" at this time. They have been built for development/testing only. Therefore, DSpace Docker images may not be fully secured or up-to-date. While you are welcome to base your own images on these DSpace images/resources, these should not be used "as is" in any production scenario.
4+
:warning: **THESE IMAGES ARE NOT PRODUCTION READY** The below Docker Compose images/resources were built for development/testing only. Therefore, they may not be fully secured or up-to-date, and should not be used in production.
5+
6+
If you wish to run DSpace on Docker in production, we recommend building your own Docker images. You are welcome to borrow ideas/concepts from the below images in doing so. But, the below images should not be used "as is" in any production scenario.
57
***
68

79
## 'Dockerfile' in root directory

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"mirador": "^3.3.0",
108108
"mirador-dl-plugin": "^0.13.0",
109109
"mirador-share-plugin": "^0.11.0",
110-
"moment": "^2.29.2",
110+
"moment": "^2.29.4",
111111
"morgan": "^1.10.0",
112112
"ng-mocks": "^13.1.1",
113113
"ng2-file-upload": "1.4.0",

src/app/access-control/epeople-registry/epeople-registry.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h3 id="search" class="border-bottom pb-2">{{labelPrefix + 'search.head' | trans
4545
</div>
4646
</form>
4747

48-
<ds-loading *ngIf="searching$ | async"></ds-loading>
48+
<ds-themed-loading *ngIf="searching$ | async"></ds-themed-loading>
4949
<ds-pagination
5050
*ngIf="(pageInfoState$ | async)?.totalElements > 0 && !(searching$ | async)"
5151
[paginationOptions]="config"

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ <h4>{{messagePrefix + '.edit' | translate}}</h4>
3636
</button>
3737
</ds-form>
3838

39-
<ds-loading [showMessage]="false" *ngIf="!formGroup"></ds-loading>
39+
<ds-themed-loading [showMessage]="false" *ngIf="!formGroup"></ds-themed-loading>
4040

4141
<div *ngIf="epersonService.getActiveEPerson() | async">
4242
<h5>{{messagePrefix + '.groupsEPersonIsMemberOf' | translate}}</h5>
4343

44-
<ds-loading [showMessage]="false" *ngIf="!(groups | async)"></ds-loading>
44+
<ds-themed-loading [showMessage]="false" *ngIf="!(groups | async)"></ds-themed-loading>
4545

4646
<ds-pagination
4747
*ngIf="(groups | async)?.payload?.totalElements > 0"

src/app/access-control/group-registry/groups-registry.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h3 id="search" class="border-bottom pb-2">{{messagePrefix + 'search.head' | tra
3333
</div>
3434
</form>
3535

36-
<ds-loading *ngIf="loading$ | async"></ds-loading>
36+
<ds-themed-loading *ngIf="loading$ | async"></ds-themed-loading>
3737
<ds-pagination
3838
*ngIf="(pageInfoState$ | async)?.totalElements > 0 && !(loading$ | async)"
3939
[paginationOptions]="config"

src/app/admin/admin-sidebar/admin-sidebar.component.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import { FeatureID } from '../../core/data/feature-authorization/feature-id';
2020
import createSpy = jasmine.createSpy;
2121
import { createSuccessfulRemoteDataObject } from '../../shared/remote-data.utils';
2222
import { Item } from '../../core/shared/item.model';
23+
import { ThemeService } from '../../shared/theme-support/theme.service';
24+
import { getMockThemeService } from '../../shared/mocks/theme-service.mock';
2325

2426
describe('AdminSidebarComponent', () => {
2527
let comp: AdminSidebarComponent;
@@ -60,6 +62,7 @@ describe('AdminSidebarComponent', () => {
6062
declarations: [AdminSidebarComponent],
6163
providers: [
6264
Injector,
65+
{ provide: ThemeService, useValue: getMockThemeService() },
6366
{ provide: MenuService, useValue: menuService },
6467
{ provide: CSSVariableService, useClass: CSSVariableServiceStub },
6568
{ provide: AuthService, useClass: AuthServiceStub },

src/app/admin/admin-sidebar/admin-sidebar.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { CSSVariableService } from '../../shared/sass-helper/sass-helper.service
99
import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization-data.service';
1010
import { MenuID } from '../../shared/menu/menu-id.model';
1111
import { ActivatedRoute } from '@angular/router';
12+
import { ThemeService } from '../../shared/theme-support/theme.service';
1213

1314
/**
1415
* Component representing the admin sidebar
@@ -56,9 +57,10 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
5657
private variableService: CSSVariableService,
5758
private authService: AuthService,
5859
public authorizationService: AuthorizationDataService,
59-
public route: ActivatedRoute
60+
public route: ActivatedRoute,
61+
protected themeService: ThemeService
6062
) {
61-
super(menuService, injector, authorizationService, route);
63+
super(menuService, injector, authorizationService, route, themeService);
6264
this.inFocus$ = new BehaviorSubject(false);
6365
}
6466

0 commit comments

Comments
 (0)