Skip to content

Commit e8613f3

Browse files
authored
Merge branch 'DSpace:main' into main
2 parents c821c76 + 84feea9 commit e8613f3

File tree

71 files changed

+1395
-406
lines changed

Some content is hidden

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

71 files changed

+1395
-406
lines changed

config/config.example.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ ssr:
2525
inlineCriticalCss: false
2626
# Path prefixes to enable SSR for. By default these are limited to paths of primary DSpace objects.
2727
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/' ]
28+
# Whether to enable rendering of Search component on SSR.
29+
# If set to true the component will be included in the HTML returned from the server side rendering.
30+
# If set to false the component will not be included in the HTML returned from the server side rendering.
31+
enableSearchComponent: false,
32+
# Whether to enable rendering of Browse component on SSR.
33+
# If set to true the component will be included in the HTML returned from the server side rendering.
34+
# If set to false the component will not be included in the HTML returned from the server side rendering.
35+
enableBrowseComponent: false,
2836

2937
# The REST API server settings
3038
# NOTE: these settings define which (publicly available) REST API to use. They are usually
@@ -450,6 +458,12 @@ search:
450458
enabled: false
451459
# List of filters to enable in "Advanced Search" dropdown
452460
filter: [ 'title', 'author', 'subject', 'entityType' ]
461+
#
462+
# Number used to render n UI elements called loading skeletons that act as placeholders.
463+
# These elements indicate that some content will be loaded in their stead.
464+
# Since we don't know how many filters will be loaded before we receive a response from the server we use this parameter for the skeletons count.
465+
# e.g. If we set 5 then 5 loading skeletons will be visualized before the actual filters are retrieved.
466+
defaultFiltersCount: 5
453467

454468

455469
# Notify metrics

package-lock.json

Lines changed: 52 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@
126126
"colors": "^1.4.0",
127127
"compression": "^1.7.5",
128128
"cookie-parser": "1.4.7",
129-
"core-js": "^3.39.0",
129+
"core-js": "^3.40.0",
130130
"date-fns": "^2.29.3",
131131
"date-fns-tz": "^1.3.7",
132132
"deepmerge": "^4.3.1",
133133
"ejs": "^3.1.10",
134-
"express": "^4.21.1",
134+
"express": "^4.21.2",
135135
"express-rate-limit": "^5.1.3",
136136
"fast-json-patch": "^3.1.1",
137137
"filesize": "^6.1.0",
@@ -141,19 +141,20 @@
141141
"js-cookie": "2.2.1",
142142
"js-yaml": "^4.1.0",
143143
"json5": "^2.2.3",
144-
"jsonschema": "1.4.1",
144+
"jsonschema": "1.5.0",
145145
"jwt-decode": "^3.1.2",
146146
"lodash": "^4.17.21",
147147
"lru-cache": "^7.14.1",
148148
"markdown-it": "^13.0.1",
149-
"mirador": "^3.4.2",
149+
"mirador": "^3.4.3",
150150
"mirador-dl-plugin": "^0.13.0",
151151
"mirador-share-plugin": "^0.16.0",
152152
"morgan": "^1.10.0",
153153
"ng2-file-upload": "5.0.0",
154154
"ng2-nouislider": "^2.0.0",
155155
"ngx-infinite-scroll": "^16.0.0",
156156
"ngx-pagination": "6.0.3",
157+
"ngx-skeleton-loader": "^9.0.0",
157158
"ngx-ui-switch": "^14.1.0",
158159
"nouislider": "^15.7.1",
159160
"orejime": "^2.3.1",
@@ -224,12 +225,12 @@
224225
"ng-mocks": "^14.13.2",
225226
"ngx-mask": "14.2.4",
226227
"nodemon": "^2.0.22",
227-
"postcss": "^8.4",
228+
"postcss": "^8.5",
228229
"postcss-import": "^14.0.0",
229230
"postcss-loader": "^4.0.3",
230231
"postcss-preset-env": "^7.4.2",
231232
"rimraf": "^3.0.2",
232-
"sass": "~1.83.1",
233+
"sass": "~1.83.4",
233234
"sass-loader": "^12.6.0",
234235
"sass-resources-loader": "^2.2.5",
235236
"ts-node": "^8.10.2",

src/app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ng-container *ngVar="(bitstreamRD$ | async) as bitstreamRD">
2-
<div class="container" *ngVar="(bitstreamFormatsRD$ | async) as formatsRD">
3-
<div class="row" *ngIf="bitstreamRD?.hasSucceeded && formatsRD?.hasSucceeded">
2+
<div class="container">
3+
<div class="row" *ngIf="bitstreamRD?.hasSucceeded">
44
<div class="col-md-2">
55
<ds-thumbnail [thumbnail]="bitstreamRD?.payload"></ds-thumbnail>
66
</div>
@@ -27,7 +27,7 @@ <h1 class="h2">{{dsoNameService.getName(bitstreamRD?.payload)}} <span class="tex
2727
</div>
2828
</div>
2929
<ds-error *ngIf="bitstreamRD?.hasFailed" message="{{'error.bitstream' | translate}}"></ds-error>
30-
<ds-loading *ngIf="!bitstreamRD || !formatsRD || bitstreamRD?.isLoading || formatsRD?.isLoading"
30+
<ds-loading *ngIf="!bitstreamRD || bitstreamRD?.isLoading"
3131
message="{{'loading.bitstream' | translate}}"></ds-loading>
3232
</div>
3333
</ng-container>

src/app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component.spec.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('EditBitstreamPageComponent', () => {
261261
});
262262

263263
it('should select the correct format', () => {
264-
expect(rawForm.formatContainer.selectedFormat).toEqual(selectedFormat.id);
264+
expect(rawForm.formatContainer.selectedFormat).toEqual(selectedFormat.shortDescription);
265265
});
266266

267267
it('should put the \"New Format\" input on invisible', () => {
@@ -292,7 +292,13 @@ describe('EditBitstreamPageComponent', () => {
292292

293293
describe('when an unknown format is selected', () => {
294294
beforeEach(() => {
295-
comp.updateNewFormatLayout(allFormats[0].id);
295+
comp.onChange({
296+
model: {
297+
id: 'selectedFormat',
298+
value: allFormats[0],
299+
},
300+
});
301+
comp.updateNewFormatLayout();
296302
});
297303

298304
it('should remove the invisible class from the \"New Format\" input', () => {
@@ -394,9 +400,10 @@ describe('EditBitstreamPageComponent', () => {
394400

395401
describe('when selected format has changed', () => {
396402
beforeEach(() => {
397-
comp.formGroup.patchValue({
398-
formatContainer: {
399-
selectedFormat: allFormats[2].id,
403+
comp.onChange({
404+
model: {
405+
id: 'selectedFormat',
406+
value: allFormats[2],
400407
},
401408
});
402409
fixture.detectChanges();

0 commit comments

Comments
 (0)