-
Notifications
You must be signed in to change notification settings - Fork 529
[DSpace-CRIS] Administrative Edit of archived items via submission form and security configuration for metadata visibility (Frontend) #5145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
FrancescoMolinaro
wants to merge
18
commits into
DSpace:main
Choose a base branch
from
4Science:task/main/DURACOM-453
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1e9fbee
[DURACOM-453] add edit item menu and data service
FrancescoMolinaro a3c14c5
[DURACOM-453] finalize improvement for submission and edit mode
FrancescoMolinaro e0bb5f9
Merge branch 'task/main/DURACOM-444' into task/main/DURACOM-453
FrancescoMolinaro 664e44f
Merge branch 'task/main/DURACOM-426' into task/main/DURACOM-453
FrancescoMolinaro 2edc805
Merge remote-tracking branch 'gitHub/main' into task/main/DURACOM-453
FrancescoMolinaro 850a973
[DURACOM-453] add metadata security and finilize edit mode
FrancescoMolinaro 87cfa6e
[DURACOM-453] fix observable issue, add full projection
FrancescoMolinaro ab0885e
[DURACOM-453] add shared submission config and labels
FrancescoMolinaro c352534
[DURACOM-453] port metadata security update, init and administrate
FrancescoMolinaro 31cafeb
[DURACOM-453] port error parsing in edit mode
FrancescoMolinaro 8c656fe
Merge remote-tracking branch 'gitHub/main' into task/main/DURACOM-453
FrancescoMolinaro 6369166
[DURACOM-453] remove collection form required from fields, fix metada…
FrancescoMolinaro b383541
[DURACOM-453] fix collection form metadata name
FrancescoMolinaro cb4bc13
[DURACOM-453] fix security level patch update, fix style in admin tab…
FrancescoMolinaro db7bd44
[DURACOM-453] handle errors on missing security settings endpoint
FrancescoMolinaro 12047a5
Merge remote-tracking branch 'gitHub/main' into task/main/DURACOM-453
FrancescoMolinaro 1faf25a
[DURACOM-453] fix missing security config in tests
FrancescoMolinaro 7746789
Merge remote-tracking branch 'gitHub/main' into task/main/DURACOM-453
FrancescoMolinaro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/app/core/config/submission-definitions-config-data.service.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import { Injectable } from '@angular/core'; | ||
| import { FollowLinkConfig } from '@dspace/core/shared/follow-link-config.model'; | ||
| import { Observable } from 'rxjs'; | ||
| import { | ||
| mergeMap, | ||
| take, | ||
| } from 'rxjs/operators'; | ||
|
|
||
| import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service'; | ||
| import { ObjectCacheService } from '../cache/object-cache.service'; | ||
| import { FindListOptions } from '../data/find-list-options.model'; | ||
| import { PaginatedList } from '../data/paginated-list.model'; | ||
| import { RemoteData } from '../data/remote-data'; | ||
| import { RequestService } from '../data/request.service'; | ||
| import { HALEndpointService } from '../shared/hal-endpoint.service'; | ||
| import { ConfigDataService } from './config-data.service'; | ||
| import { ConfigObject } from './models/config.model'; | ||
|
|
||
| @Injectable({ providedIn: 'root' }) | ||
| export class SubmissionDefinitionsConfigDataService extends ConfigDataService { | ||
| constructor( | ||
| protected requestService: RequestService, | ||
| protected rdbService: RemoteDataBuildService, | ||
| protected objectCache: ObjectCacheService, | ||
| protected halService: HALEndpointService, | ||
| ) { | ||
| super('submissiondefinitions', requestService, rdbService, objectCache, halService); | ||
| } | ||
|
|
||
| findAll(options: FindListOptions = {}, useCachedVersionIfAvailable = true, reRequestOnStale = true, ...linksToFollow: FollowLinkConfig<ConfigObject>[]): Observable<RemoteData<PaginatedList<ConfigObject>>> { | ||
| return this.getBrowseEndpoint(options).pipe( | ||
| take(1), | ||
| mergeMap((href: string) => super.findListByHref(href, options, useCachedVersionIfAvailable, reRequestOnStale, ...linksToFollow)), | ||
| ); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add TypeDocs or code comments to describe this new data service, including the
findAll()method below