mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Applied feedback for context name and missing context
This commit is contained in:
@@ -41,9 +41,9 @@ export class ClaimedTaskSearchResultDetailElementComponent extends SearchResultD
|
|||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceValidation;
|
public badgeContext = Context.MyDSpaceValidation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The workflowitem object that belonging to the result object
|
* The workflowitem object that belonging to the result object
|
||||||
|
@@ -21,8 +21,8 @@ import { Context } from '../../../../core/shared/context.model';
|
|||||||
export class ItemSearchResultDetailElementComponent extends SearchResultDetailElementComponent<ItemSearchResult, Item> {
|
export class ItemSearchResultDetailElementComponent extends SearchResultDetailElementComponent<ItemSearchResult, Item> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceArchived;
|
public badgeContext = Context.MyDSpaceArchived;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -41,9 +41,9 @@ export class PoolSearchResultDetailElementComponent extends SearchResultDetailEl
|
|||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceWaitingController;
|
public badgeContext = Context.MyDSpaceWaitingController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The workflowitem object that belonging to the result object
|
* The workflowitem object that belonging to the result object
|
||||||
|
@@ -32,9 +32,9 @@ export class WorkflowItemSearchResultDetailElementComponent extends SearchResult
|
|||||||
public item: Item;
|
public item: Item;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceWorkflow;
|
public badgeContext = Context.MyDSpaceWorkflow;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected linkService: LinkService
|
protected linkService: LinkService
|
||||||
|
@@ -33,9 +33,9 @@ export class WorkspaceItemSearchResultDetailElementComponent extends SearchResul
|
|||||||
public item: Item;
|
public item: Item;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceWorkspace;
|
public badgeContext = Context.MyDSpaceWorkspace;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected linkService: LinkService
|
protected linkService: LinkService
|
||||||
|
@@ -32,9 +32,9 @@ export class ClaimedApprovedSearchResultListElementComponent extends SearchResul
|
|||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceApproved;
|
public badgeContext = Context.MyDSpaceApproved;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The workflowitem object that belonging to the result object
|
* The workflowitem object that belonging to the result object
|
||||||
|
@@ -33,9 +33,9 @@ export class ClaimedDeclinedSearchResultListElementComponent extends SearchResul
|
|||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceDeclined;
|
public badgeContext = Context.MyDSpaceDeclined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The workflowitem object that belonging to the result object
|
* The workflowitem object that belonging to the result object
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
<ds-themed-item-list-preview *ngIf="workflowitem"
|
<ds-themed-item-list-preview *ngIf="workflowitem"
|
||||||
[item]="(workflowitem?.item | async)?.payload"
|
[item]="(workflowitem?.item | async)?.payload"
|
||||||
[object]="object"
|
[object]="object"
|
||||||
|
[context]="badgeContext"
|
||||||
[showSubmitter]="showSubmitter">
|
[showSubmitter]="showSubmitter">
|
||||||
</ds-themed-item-list-preview>
|
</ds-themed-item-list-preview>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -13,6 +13,7 @@ import { ClaimedTaskSearchResult } from '../../../../object-collection/shared/cl
|
|||||||
import { ClaimedTask } from '../../../../../core/tasks/models/claimed-task-object.model';
|
import { ClaimedTask } from '../../../../../core/tasks/models/claimed-task-object.model';
|
||||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||||
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
||||||
|
import { Context } from '../../../../../core/shared/context.model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This component renders claimed task declined task object for the search result in the list view.
|
* This component renders claimed task declined task object for the search result in the list view.
|
||||||
@@ -30,6 +31,11 @@ export class ClaimedDeclinedTaskSearchResultListElementComponent extends SearchR
|
|||||||
*/
|
*/
|
||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents the badge context
|
||||||
|
*/
|
||||||
|
public badgeContext = Context.MyDSpaceDeclined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The workflowitem object that belonging to the result object
|
* The workflowitem object that belonging to the result object
|
||||||
*/
|
*/
|
||||||
|
@@ -36,9 +36,9 @@ export class ClaimedSearchResultListElementComponent extends SearchResultListEle
|
|||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceValidation;
|
public badgeContext = Context.MyDSpaceValidation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The item object that belonging to the result object
|
* The item object that belonging to the result object
|
||||||
|
@@ -20,9 +20,9 @@ import { SearchResultListElementComponent } from '../../search-result-list-eleme
|
|||||||
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.Workflow)
|
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.Workflow)
|
||||||
export class ItemSearchResultListElementSubmissionComponent extends SearchResultListElementComponent<ItemSearchResult, Item> implements OnInit {
|
export class ItemSearchResultListElementSubmissionComponent extends SearchResultListElementComponent<ItemSearchResult, Item> implements OnInit {
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceArchived;
|
public badgeContext = Context.MyDSpaceArchived;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -41,9 +41,9 @@ export class PoolSearchResultListElementComponent extends SearchResultListElemen
|
|||||||
public showSubmitter = true;
|
public showSubmitter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child Context
|
* Represents the badge Context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceWaitingController;
|
public badgeContext = Context.MyDSpaceWaitingController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The item object that belonging to the result object
|
* The item object that belonging to the result object
|
||||||
|
@@ -40,9 +40,9 @@ export class WorkflowItemSearchResultListElementComponent extends SearchResultLi
|
|||||||
derivedSearchResult$: Observable<ItemSearchResult>;
|
derivedSearchResult$: Observable<ItemSearchResult>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceWorkflow;
|
public badgeContext = Context.MyDSpaceWorkflow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display thumbnails if required by configuration
|
* Display thumbnails if required by configuration
|
||||||
|
@@ -40,9 +40,9 @@ export class WorkspaceItemSearchResultListElementComponent extends SearchResult
|
|||||||
derivedSearchResult$: Observable<ItemSearchResult>;
|
derivedSearchResult$: Observable<ItemSearchResult>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent child context
|
* Represents the badge context
|
||||||
*/
|
*/
|
||||||
public childContext = Context.MyDSpaceWorkspace;
|
public badgeContext = Context.MyDSpaceWorkspace;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display thumbnails if required by configuration
|
* Display thumbnails if required by configuration
|
||||||
|
Reference in New Issue
Block a user