Skip to content

Commit 0507d46

Browse files
atarix83Andrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-1864_re-worked (pull request DSpace#2394)
[DSC-1864] Merge tag 'dspace-7.6.2' into task/dspace-cris-2023_02_x/DSC-1864_re-worked Approved-by: Andrea Barbasso
2 parents 84f9750 + fb6df80 commit 0507d46

157 files changed

Lines changed: 27550 additions & 8409 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.

config/config.example.yml

Lines changed: 133 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ universal:
2929
# 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.
3030
rest:
3131
ssl: true
32-
host: demo.dspace.org
32+
host: dspacecris7.4science.cloud
3333
port: 443
3434
# NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
3535
nameSpace: /server
@@ -82,7 +82,7 @@ cache:
8282
anonymousCache:
8383
# Maximum number of pages to cache. Default is zero (0) which means anonymous user cache is disabled.
8484
# As all pages are cached in server memory, increasing this value will increase memory needs.
85-
# Individual cached pages are usually small (<100KB), so a value of max=1000 would only require ~100MB of memory.
85+
# Individual cached pages are usually small (<100KB), so a value of max=1000 would only require ~100MB of memory.
8686
max: 0
8787
# Amount of time after which cached pages are considered stale (in ms). After becoming stale, the cached
8888
# copy is automatically refreshed on the next request.
@@ -134,10 +134,10 @@ notifications:
134134
submission:
135135
autosave:
136136
# NOTE: which metadata trigger an autosave
137-
metadata: []
137+
metadata: ['dc.title', 'dc.identifier.doi', 'dc.identifier.pmid', 'dc.identifier.arxiv', 'dc.identifier.patentno', 'dc.identifier.scopus', 'dc.identifier.isi', 'dcterms.dateSubmitted', 'dc.identifier.applicationnumber']
138138
# NOTE: after how many time (milliseconds) submission is saved automatically
139139
# eg. timer: 5 * (1000 * 60); // 5 minutes
140-
timer: 0
140+
timer: 300000
141141
icons:
142142
metadata:
143143
# NOTE: example of configuration
@@ -146,7 +146,17 @@ submission:
146146
# # NOTE: fontawesome (v5.x) icon classes and bootstrap utility classes can be used
147147
# style: fas fa-user
148148
- name: dc.author
149-
style: fas fa-user
149+
style: "fas fa-user"
150+
- name: dc.contributor.author
151+
style: "fas fa-user"
152+
- name: dc.contributor.editor
153+
style: "fas fa-user"
154+
- name: oairecerif.author.affiliation
155+
style: "fas fa-university"
156+
- name: oairecerif.editor.affiliation
157+
style: "fas fa-university"
158+
- name: dc.relation.grantno
159+
style: "fas fa-info-circle"
150160
# default configuration
151161
- name: default
152162
style: ''
@@ -160,12 +170,23 @@ submission:
160170
- value: 600
161171
style: text-success
162172
- value: 500
163-
style: text-info
164-
- value: 400
165173
style: text-warning
174+
- value: 400
175+
style: text-danger
176+
- value: 300
177+
style: text-dark
178+
- value: 200
179+
style: text-dark
180+
- value: 100
181+
style: text-dark
166182
# default configuration
167183
- value: default
168184
style: text-muted
185+
detectDuplicate:
186+
# NOTE: list of additional item metadata to show for duplicate match presentation list
187+
metadataDetailsList:
188+
- label: 'Document type'
189+
name: dc.type
169190

170191
# Default Language in which the UI will be rendered if the user's browser language is not an active language
171192
defaultLanguage: en
@@ -218,6 +239,9 @@ languages:
218239
- code: kk
219240
label: Қазақ
220241
active: true
242+
- code: it
243+
label: Italiano
244+
active: true
221245
- code: lv
222246
label: Latviešu
223247
active: true
@@ -261,8 +285,12 @@ browseBy:
261285
fiveYearLimit: 30
262286
# The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
263287
defaultLowerLimit: 1900
288+
# Whether to add item badges to BOTH browse and search result lists.
289+
showLabels: true
264290
# If true, thumbnail images for items will be added to BOTH search and browse result lists.
265291
showThumbnails: true
292+
# Whether to add item thumbnail images to BOTH browse and search result lists.
293+
showMetrics: false
266294
# The number of entries in a paginated browse results list.
267295
# Rounded to the nearest size in the list of selectable sizes on the
268296
# settings menu.
@@ -294,6 +322,19 @@ item:
294322
# Rounded to the nearest size in the list of selectable sizes on the
295323
# settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
296324
pageSize: 5
325+
# The maximum number of metadata values to add to the metatag list of the item page
326+
metatagLimit: 20
327+
# The maximum number of values for repeatable metadata to show in the full item
328+
metadataLimit: 20
329+
330+
# When the search results are retrieved, for each item type the metadata with a valid authority value are inspected.
331+
# Referenced items will be fetched with a find all by id strategy to avoid individual rest requests
332+
# to efficiently display the search results.
333+
followAuthorityMetadata:
334+
- type: Publication
335+
metadata: dc.contributor.author
336+
- type: Product
337+
metadata: dc.contributor.author
297338

298339
# Collection Page Config
299340
collection:
@@ -359,6 +400,10 @@ themes:
359400
attributes:
360401
rel: manifest
361402
href: assets/dspace/images/favicons/manifest.webmanifest
403+
- tagName: link
404+
attributes:
405+
rel: stylesheet
406+
href: "https://fonts.googleapis.com/icon?family=Material+Icons"
362407

363408
# The default bundles that should always be displayed as suggestions when you upload a new bundle
364409
bundle:
@@ -392,7 +437,87 @@ vocabularies:
392437
vocabulary: 'srsc'
393438
enabled: true
394439

395-
# Default collection/community sorting order at Advanced search, Create/update community and collection when there are not a query.
440+
# Default collection/community sorting order at Advanced search, Create/update community and collection when there are not a query.
396441
comcolSelectionSort:
397442
sortField: 'dc.title'
398443
sortDirection: 'ASC'
444+
445+
crisLayout:
446+
urn:
447+
- name: doi
448+
baseUrl: "https://doi.org/"
449+
- name: hdl
450+
baseUrl: "https://hdl.handle.net/"
451+
- name: scopus
452+
baseUrl: "https://www.scopus.com/authid/detail.uri?authorId="
453+
- name: researcherid
454+
baseUrl: "http://www.researcherid.com/rid/"
455+
- name: mailto
456+
baseUrl: "mailto:"
457+
crisRef:
458+
- entityType: PRIVATE
459+
entityStyle:
460+
"dc.contributor.author":
461+
icon: fa fa-user
462+
style: text-muted
463+
- entityType: DEFAULT
464+
entityStyle:
465+
default:
466+
icon: fa fa-user
467+
style: text-info
468+
- entityType: PERSON
469+
entityStyle:
470+
person:
471+
icon: fa fa-user
472+
style: text-success
473+
personStaff:
474+
icon: fa fa-user
475+
style: text-danger
476+
default:
477+
icon: fa fa-user
478+
style: text-info
479+
- entityType: ORGUNIT
480+
entityStyle:
481+
default:
482+
icon: fa fa-university
483+
style: text-success
484+
- entityType: PROJECT
485+
entityStyle:
486+
default:
487+
icon: fas fa-project-diagram
488+
style: text-success
489+
crisRefStyleMetadata:
490+
default: cris.entity.style
491+
itemPage:
492+
OrgUnit:
493+
orientation: vertical
494+
Project:
495+
orientation: vertical
496+
default:
497+
orientation: horizontal
498+
metadataBox:
499+
defaultMetadataLabelColStyle: "col-3"
500+
defaultMetadataValueColStyle: "col-9"
501+
502+
layout:
503+
navbar:
504+
# If true, show the "Community and Collections" link in the navbar; otherwise, show it in the admin sidebar
505+
showCommunityCollection: true
506+
507+
cms:
508+
metadataList: ['cris.cms.home-header', 'cris.cms.home-news', 'cris.cms.footer']
509+
510+
addToAnyPlugin:
511+
scriptUrl: "https://static.addtoany.com/menu/page.js"
512+
socialNetworksEnabled: true
513+
buttons:
514+
- facebook
515+
- twitter
516+
- linkedin
517+
- email
518+
- copy_link
519+
showPlusButton: true
520+
showCounters: true
521+
title: DSpace CRIS 7 demo
522+
# The link to be shown in the shared post, if different from document.location.origin (optional)
523+
# link: https://dspacecris7.4science.cloud/

cypress/e2e/collection-statistics.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { REGEX_MATCH_NON_EMPTY_TEXT } from 'cypress/support/e2e';
22
import { testA11y } from 'cypress/support/utils';
33

4-
describe('Collection Statistics Page', () => {
4+
xdescribe('Collection Statistics Page', () => {
55
const COLLECTIONSTATISTICSPAGE = '/statistics/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION'));
66

77
it('should load if you click on "Statistics" from a Collection page', () => {

cypress/e2e/community-page.cy.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { testA11y } from 'cypress/support/utils';
2+
import { Options } from 'cypress-axe';
23

34
describe('Community Page', () => {
45

@@ -9,6 +10,12 @@ describe('Community Page', () => {
910
cy.get('ds-community-page').should('be.visible');
1011

1112
// Analyze <ds-community-page> for accessibility issues
12-
testA11y('ds-community-page');
13+
testA11y('ds-community-page',
14+
{
15+
rules: {
16+
'heading-order': { enabled: false }
17+
}
18+
} as Options
19+
);
1320
});
1421
});

cypress/e2e/community-statistics.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { REGEX_MATCH_NON_EMPTY_TEXT } from 'cypress/support/e2e';
22
import { testA11y } from 'cypress/support/utils';
33

4-
describe('Community Statistics Page', () => {
4+
xdescribe('Community Statistics Page', () => {
55
const COMMUNITYSTATISTICSPAGE = '/statistics/communities/'.concat(Cypress.env('DSPACE_TEST_COMMUNITY'));
66

77
it('should load if you click on "Statistics" from a Community page', () => {

cypress/e2e/item-page.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { testA11y } from 'cypress/support/utils';
22

3-
describe('Item Page', () => {
3+
xdescribe('Item Page', () => {
44
const ITEMPAGE = '/items/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'));
55
const ENTITYPAGE = '/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'));
66

cypress/e2e/item-statistics.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { REGEX_MATCH_NON_EMPTY_TEXT } from 'cypress/support/e2e';
22
import { testA11y } from 'cypress/support/utils';
33

4-
describe('Item Statistics Page', () => {
4+
xdescribe('Item Statistics Page', () => {
55
const ITEMSTATISTICSPAGE = '/statistics/items/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'));
66

77
it('should load if you click on "Statistics" from an Item/Entity page', () => {

cypress/e2e/login-modal.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const page = {
3636

3737
describe('Login Modal', () => {
3838
it('should login when clicking button & stay on same page', () => {
39-
const ENTITYPAGE = '/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'));
40-
cy.visit(ENTITYPAGE);
39+
const COLLECTIONPAGE = '/collections/'.concat(Cypress.env('TEST_COLLECTION'));
40+
cy.visit(COLLECTIONPAGE);
4141

4242
// Login menu should exist
4343
cy.get('ds-log-in').should('exist');
@@ -50,7 +50,7 @@ describe('Login Modal', () => {
5050
cy.get('ds-log-in').should('not.exist');
5151

5252
// Verify we are still on the same page
53-
cy.url().should('include', ENTITYPAGE);
53+
cy.url().should('include', COLLECTIONPAGE);
5454

5555
// Open user menu, verify user menu & logout button now available
5656
page.openUserMenu();

cypress/e2e/search-page.cy.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Options } from 'cypress-axe';
21
import { testA11y } from 'cypress/support/utils';
32

43
describe('Search Page', () => {
@@ -45,13 +44,13 @@ describe('Search Page', () => {
4544
cy.get('[data-test="grid-object"]').should('be.visible');
4645

4746
// Analyze <ds-search-page> for accessibility issues
48-
testA11y('ds-search-page',
47+
/* testA11y('ds-search-page',
4948
{
5049
rules: {
5150
// Card titles fail this test currently
5251
'heading-order': { enabled: false }
5352
}
5453
} as Options
55-
);
54+
);*/
5655
});
5756
});

cypress/e2e/submission.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { testA11y } from 'cypress/support/utils';
22
//import { TEST_SUBMIT_USER, TEST_SUBMIT_USER_PASSWORD, TEST_SUBMIT_COLLECTION_NAME, TEST_SUBMIT_COLLECTION_UUID, TEST_ADMIN_USER, TEST_ADMIN_PASSWORD } from 'cypress/support/e2e';
33
import { Options } from 'cypress-axe';
44

5-
describe('New Submission page', () => {
5+
xdescribe('New Submission page', () => {
66

77
// NOTE: We already test that new Item submissions can be started from MyDSpace in my-dspace.spec.ts
88
it('should create a new submission when using /submit path & pass accessibility', () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
"@angular-eslint/eslint-plugin-template": "15.2.1",
165165
"@angular-eslint/schematics": "15.2.1",
166166
"@angular-eslint/template-parser": "15.2.1",
167-
"@angular/cli": "^16.0.4",
167+
"@angular/cli": "^15.2.6",
168168
"@angular/compiler-cli": "^15.2.8",
169169
"@angular/language-service": "^15.2.8",
170170
"@cypress/schematic": "^1.5.0",

0 commit comments

Comments
 (0)