Commit Graph

10236 Commits

Author SHA1 Message Date
Francesco Bacchelli
37121b001b Merge branch 'main' of https://github.com/DSpace/dspace-angular into CST-11298 2023-08-01 15:51:02 +02:00
Kristof De Langhe
63e6e79750 Merge branch 'main' into ProcessDetailComponent-test-improvemen 2023-08-01 10:50:08 +02:00
Yury Bondarenko
18b7a9c7de Update DSO edit menu resolver tests
- Abstract away the different "subsections" ~ DSO type (the tests should not care about this)
  Instead, retrieve sections of interest by ID & assert whether they're there & how they should look
- Test separately for Communities, Collections & Items
- Test newly added menu section
2023-07-31 15:43:15 +02:00
Alexandre Vryghem
ea677bda74 Reset to base theme when no default theme is set and leaving UUID/handle theme 2023-07-30 20:08:33 +02:00
Alexandre Vryghem
c4bff4d9c7 Fix test without it's/it's not running because they are in a waitForAsync function 2023-07-29 19:18:58 +02:00
Sondissimo
c8a75fa3b1 CST-11012 Added feature id 2023-07-28 15:38:37 +02:00
Alexandre Vryghem
ebaccc055e Merge branch 'fix-collection-form-bugs_contribute-7.4' into fix-collection-form-bugs_contribute-7.6
# Conflicts:
#	src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html
2023-07-28 00:14:58 +02:00
Alexandre Vryghem
273be5bd81 Merge remote-tracking branch 'contributions/fix-setStaleByHrefSubtring-not-emitting-after-all-requests-were-stale_contribute-7.4' into fix-setStaleByHrefSubtring-not-emitting-after-all-requests-were-stale_contribute-7.6
# Conflicts:
#	src/app/core/data/request.service.ts
2023-07-27 23:57:18 +02:00
Sondissimo
969e006e29 CST-11012 Created the footer new icon+text, new json5 texts added, routed the newly created component notify-info.component 2023-07-26 18:27:26 +02:00
Mirko Scherf
0ec72f679b fix(i18m): curation-task.task.registerdoi.label
changed curation-task.task.register-doi.label back to
curation-task.task.registerdoi.label and added German translation
2023-07-26 13:04:04 +02:00
Alexandre Vryghem
5062e46433 104312: Add missing query @Input() to ThemedDynamicLookupRelationExternalSourceTabComponent 2023-07-25 18:26:47 +02:00
Alexandre Vryghem
9b1d18bd32 Merge tag 'dspace-7.6' into w2p-104312_pass-query-to-external-search-tabs_contribute-7.6 2023-07-25 18:26:18 +02:00
Alexandre Vryghem
a3663831cc Merge branch 'w2p-103176_fix-themed-component-vcr-not-defined-yet-in-init_contribute-7.2' into themed-component-fixes-main 2023-07-25 00:06:45 +02:00
Alexandre Vryghem
887eacbfa8 Merge branch 'fix-ngonchanges-not-working-for-themed-components_contribute-7.2' into fix-ngonchanges-not-working-for-themed-components_contribute-7.4 2023-07-24 23:43:10 +02:00
Alexandre Vryghem
873a8e16a3 101577: Ensure the component is always destroyed before rendering the new component 2023-07-24 23:42:55 +02:00
Alexandre Vryghem
15656b03ce Fix mathjax code being displayed twice
This was due to sanitizeHtml rendering the mjx-assistive-mml tag as text. This tag is used by screen readers and therefor we should allow it to be rendered
2023-07-21 23:18:40 +02:00
Alexandre Vryghem
75ec046bba Hide the delete EPerson/Group buttons when the user can't delete the EPerson/Group 2023-07-21 18:34:42 +02:00
Alexandre Vryghem
998e1fac8d Fix spacing issues for EPerson form buttons 2023-07-21 18:34:42 +02:00
Alexandre Vryghem
9ac19d40fc Cleanup access-control components
- Use the same methods to retrieve the access-control urls
- Fix EPersonDataService.startEditingNewEPerson returning the incorrect link
2023-07-21 18:34:41 +02:00
Alexandre Vryghem
2a35180a1b Created separate pages for edit & create EPersons 2023-07-21 17:15:10 +02:00
Mirko Scherf
b1df125166 fix(i18n): add and update missing status strings
New strings for status filter entries:
search.filters.namedresourcetype.*
Refactored strings introduced with #2068 (refactor badged),
e.g. mydspace.status.archived -> mydspace.status.mydspaceArchived
2023-07-21 10:43:13 +02:00
Yury Bondarenko
c9558167b2 Move subscription button to DSO edit menu 2023-07-20 18:19:48 +02:00
Mirko Scherf
8bf4ba8126 refactor: rename aletr-type.ts to alert-type.ts 2023-07-20 14:53:28 +02:00
Alexandre Vryghem
648925f3e1 104312: DsDynamicLookupRelationExternalSourceTabComponent should have the form value already filled in the search input 2023-07-19 14:04:34 +02:00
Alexandre Vryghem
776a44c321 Merge remote-tracking branch 'contributions/w2p-102415_Remote-lookup-entity-on-admin-edit_contribute-7.4' into dspace-7.6 2023-07-18 13:40:23 +02:00
Alexandre Vryghem
155cd2be6f Merge branch 'w2p-102415_Remote-lookup-entity-on-admin-edit_contribute-7.2' into dspace-7.4
# Conflicts:
#	src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.ts
2023-07-18 12:53:56 +02:00
Marie Verdonck
cf9179d800 102415: Fix for import modal i18n labels 2023-07-18 12:01:32 +02:00
Marie Verdonck
a9c5c20c5a 102415: Provide all external sources of correct entity type in edit relationships ({item-page}/edit/relationship) 2023-07-18 12:01:32 +02:00
Kristof De Langhe
03e1f677b6 104126: ProcessDetailComponent test improvement 2023-07-17 15:12:42 +02:00
Alexandre Vryghem
8d84efb1a9 Fix AuthInterceptor no expectation tests
- Removed duplicate request
- Added expect().nothing() because httpMock.expectNone will throw an error when a request is made
2023-07-16 14:58:22 +02:00
Alexandre Vryghem
b8b9da2525 Fix BrowseByComponent no expectation tests
- Because the custom theme is disabled by default I replaced it with the dspace theme who is still enabled by default
- Because the child components use a themed component the changes need to be detected twice, this is a side effect from the component being created dynamically
2023-07-15 14:24:14 +02:00
Alexandre Vryghem
430b3b2e36 Fix TopLevelCommunityListComponent, CommunityPageSubCollectionListComponent, CommunityPageSubCommunityListComponent no expectation tests
Because their child components use a themed component the changes need to be detected twice, this is a side effect from the component being created dynamically
2023-07-15 10:25:53 +02:00
Alexandre Vryghem
4b1a8a90a6 Fix ObjectUpdatesEffects no expectation tests
Because of the switch from BehaviourSubject to Subject the tests always failed because of a timout because the previous state is not kept with Subject and should be manually triggered during the tests
2023-07-15 08:25:25 +02:00
Kristof De Langhe
45ad5f7316 104189: CSV export add fixedFilter 2023-07-12 16:32:56 +02:00
Kristof De Langhe
cac1407f08 104189: Allow CSV export on related entity search 2023-07-12 15:11:38 +02:00
Eike Martin Löhden
e3f57dae44 Included user-menu component in custom theme. 2023-07-10 15:54:09 +02:00
Eike Martin Löhden
ed84f45132 Replaced tags for ds-user-menu. 2023-07-10 15:38:32 +02:00
Eike Martin Löhden
63582cfa0d Corrected missing semicolon. 2023-07-10 15:34:25 +02:00
Eike Martin Löhden
23aefb7385 Added themed-user-menu component. 2023-07-10 15:29:14 +02:00
Alexandre Vryghem
b7dfe0f23d Fix EPersonDataService no expectation tests
- The store dispatch was not called through so the store was never updated
- To initialize the store using provideMockStore I rewrote the test to work through injection
2023-07-09 00:16:28 +02:00
Nona Luypaert
b5a70e8f95 Fix VocabularyTreeview not updating + i18n for nsi 2023-07-08 13:21:36 +02:00
Yury Bondarenko
c0f9042a9c Merge remote-tracking branch 'origin/main' into more-eslint 2023-07-07 17:30:46 +02:00
Alan Orth
8ac1e9a283 src/app: fix path to deny-request-copy component
The themed-deny-request-copy.component erroneously includes the cus-
tom theme's deny-request-copy component instead of its own.

Closes: https://github.com/DSpace/dspace-angular/issues/2351
2023-07-06 20:46:32 +03:00
Alexandre Vryghem
c2010b5d5e Fix SubscriptionsDataService no expectation tests
The test's searchData & the searchData from the SubscriptionsDataService were not linked
2023-07-04 13:12:03 +02:00
Alexandre Vryghem
c1875cade3 Add expect().nothing() to reducer tests without expectations, who only exist to check if an error is thrown 2023-07-04 13:12:03 +02:00
Alexandre Vryghem
b4a3882dcf Fix findSuccessfulAccordingTo no expectation tests
- The isWithdrawn was set twice to mockItem1
- The expected observable was not correctly compared
2023-07-04 13:12:03 +02:00
Alexandre Vryghem
b83a0b3f9b Fix SubmissionSectionUploadFileComponent no expectation tests
The fixture.whenStable() was not awaited
2023-07-04 13:12:03 +02:00
Alexandre Vryghem
a524805faf Fix CommunitySearchResultListElementComponent no expectation tests
- Wrong css class was used
- The check to see if the offset was defined did not exist
2023-07-04 13:12:03 +02:00
Alexandre Vryghem
9d71171741 Fix ItemVersionsComponent no expectation tests
- The buttons are now not disabled anymore but hidden when you don't have the correct authorization
- Wrong css class was used for the edit buttons
2023-07-04 13:12:02 +02:00
Alexandre Vryghem
7ef3a914f9 Fix ItemComponent no expectation tests
- renamed `showBackButton` to `showBackButton$` because it's an observable
- `showBackButton$` only emits `true` when the back button should be shown, it does not emit `false` when it should be hidden, it just did nothing
2023-07-01 20:38:17 +02:00