mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
[DURACOM-191] run migration script
This commit is contained in:
@@ -45,7 +45,7 @@ describe('LdnServicesOverviewComponent', () => {
|
||||
{ provide: PaginationService, useValue: paginationService },
|
||||
{
|
||||
provide: NgbModal, useValue: {
|
||||
open: () => { /*comment*/
|
||||
open: () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@@ -17,9 +17,7 @@ describe('NotificationsSuggestionTargetsPageComponent', () => {
|
||||
CommonModule,
|
||||
TranslateModule.forRoot()
|
||||
],
|
||||
declarations: [
|
||||
NotificationsSuggestionTargetsPageComponent
|
||||
],
|
||||
declarations: [NotificationsSuggestionTargetsPageComponent],
|
||||
providers: [
|
||||
NotificationsSuggestionTargetsPageComponent
|
||||
],
|
||||
|
@@ -46,8 +46,8 @@ describe('CollectionAdminSearchResultGridElementComponent', () => {
|
||||
NoopAnimationsModule,
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
CollectionAdminSearchResultGridElementComponent
|
||||
],
|
||||
declarations: [CollectionAdminSearchResultGridElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: BitstreamDataService, useValue: {} },
|
||||
|
@@ -10,12 +10,16 @@ import {
|
||||
SearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/search-result-grid-element.component';
|
||||
import { getCollectionEditRoute } from '../../../../../collection-page/collection-page-routing-paths';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { CollectionSearchResultGridElementComponent } from '../../../../../shared/object-grid/search-result-grid-element/collection-search-result/collection-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent(CollectionSearchResult, ViewMode.GridElement, Context.AdminSearch)
|
||||
@Component({
|
||||
selector: 'ds-collection-admin-search-result-list-element',
|
||||
styleUrls: ['./collection-admin-search-result-grid-element.component.scss'],
|
||||
templateUrl: './collection-admin-search-result-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [CollectionSearchResultGridElementComponent, RouterLink]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for a collection search result on the admin search page
|
||||
|
@@ -48,8 +48,8 @@ describe('CommunityAdminSearchResultGridElementComponent', () => {
|
||||
NoopAnimationsModule,
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
CommunityAdminSearchResultGridElementComponent
|
||||
],
|
||||
declarations: [CommunityAdminSearchResultGridElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: BitstreamDataService, useValue: {} },
|
||||
|
@@ -10,12 +10,16 @@ import {
|
||||
SearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/search-result-grid-element.component';
|
||||
import { getCommunityEditRoute } from '../../../../../community-page/community-page-routing-paths';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { CommunitySearchResultGridElementComponent } from '../../../../../shared/object-grid/search-result-grid-element/community-search-result/community-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent(CommunitySearchResult, ViewMode.GridElement, Context.AdminSearch)
|
||||
@Component({
|
||||
selector: 'ds-community-admin-search-result-grid-element',
|
||||
styleUrls: ['./community-admin-search-result-grid-element.component.scss'],
|
||||
templateUrl: './community-admin-search-result-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [CommunitySearchResultGridElementComponent, RouterLink]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for a community search result on the admin search page
|
||||
|
@@ -64,9 +64,9 @@ describe('ItemAdminSearchResultGridElementComponent', () => {
|
||||
NoopAnimationsModule,
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
ListableModule
|
||||
ListableModule,
|
||||
ItemAdminSearchResultGridElementComponent
|
||||
],
|
||||
declarations: [ItemAdminSearchResultGridElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: BitstreamDataService, useValue: mockBitstreamDataService },
|
||||
|
@@ -19,12 +19,15 @@ import {
|
||||
import { ThemeService } from '../../../../../shared/theme-support/theme.service';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { hasValue } from '../../../../../shared/empty.util';
|
||||
import { ItemAdminSearchResultActionsComponent } from '../../item-admin-search-result-actions.component';
|
||||
|
||||
@listableObjectComponent(ItemSearchResult, ViewMode.GridElement, Context.AdminSearch)
|
||||
@Component({
|
||||
selector: 'ds-item-admin-search-result-grid-element',
|
||||
styleUrls: ['./item-admin-search-result-grid-element.component.scss'],
|
||||
templateUrl: './item-admin-search-result-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [ItemAdminSearchResultActionsComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result on the admin search page
|
||||
|
@@ -40,8 +40,8 @@ describe('CollectionAdminSearchResultListElementComponent', () => {
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
CollectionAdminSearchResultListElementComponent
|
||||
],
|
||||
declarations: [CollectionAdminSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -10,12 +10,17 @@ import {
|
||||
import { CollectionSearchResult } from '../../../../../shared/object-collection/shared/collection-search-result.model';
|
||||
import { Collection } from '../../../../../core/shared/collection.model';
|
||||
import { getCollectionEditRoute } from '../../../../../collection-page/collection-page-routing-paths';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { CollectionSearchResultListElementComponent } from '../../../../../shared/object-list/search-result-list-element/collection-search-result/collection-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent(CollectionSearchResult, ViewMode.ListElement, Context.AdminSearch)
|
||||
@Component({
|
||||
selector: 'ds-collection-admin-search-result-list-element',
|
||||
styleUrls: ['./collection-admin-search-result-list-element.component.scss'],
|
||||
templateUrl: './collection-admin-search-result-list-element.component.html'
|
||||
templateUrl: './collection-admin-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [CollectionSearchResultListElementComponent, RouterLink, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for a collection search result on the admin search page
|
||||
|
@@ -36,12 +36,13 @@ describe('CommunityAdminSearchResultListElementComponent', () => {
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
CommunityAdminSearchResultListElementComponent
|
||||
],
|
||||
declarations: [CommunityAdminSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
{provide: APP_CONFIG, useValue: environment}],
|
||||
{ provide: APP_CONFIG, useValue: environment }
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
})
|
||||
.compileComponents();
|
||||
|
@@ -10,12 +10,17 @@ import {
|
||||
import { CommunitySearchResult } from '../../../../../shared/object-collection/shared/community-search-result.model';
|
||||
import { Community } from '../../../../../core/shared/community.model';
|
||||
import { getCommunityEditRoute } from '../../../../../community-page/community-page-routing-paths';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { CommunitySearchResultListElementComponent } from '../../../../../shared/object-list/search-result-list-element/community-search-result/community-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent(CommunitySearchResult, ViewMode.ListElement, Context.AdminSearch)
|
||||
@Component({
|
||||
selector: 'ds-community-admin-search-result-list-element',
|
||||
styleUrls: ['./community-admin-search-result-list-element.component.scss'],
|
||||
templateUrl: './community-admin-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [CommunitySearchResultListElementComponent, RouterLink, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for a community search result on the admin search page
|
||||
|
@@ -37,12 +37,13 @@ describe('ItemAdminSearchResultListElementComponent', () => {
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
ItemAdminSearchResultListElementComponent
|
||||
],
|
||||
declarations: [ItemAdminSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
{ provide: APP_CONFIG, useValue: environment }],
|
||||
{ provide: APP_CONFIG, useValue: environment }
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
})
|
||||
.overrideComponent(ItemAdminSearchResultListElementComponent, {
|
||||
|
@@ -9,12 +9,16 @@ import { ItemSearchResult } from '../../../../../shared/object-collection/shared
|
||||
import {
|
||||
SearchResultListElementComponent
|
||||
} from '../../../../../shared/object-list/search-result-list-element/search-result-list-element.component';
|
||||
import { ItemAdminSearchResultActionsComponent } from '../../item-admin-search-result-actions.component';
|
||||
import { ListableObjectComponentLoaderComponent } from '../../../../../shared/object-collection/shared/listable-object/listable-object-component-loader.component';
|
||||
|
||||
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.AdminSearch)
|
||||
@Component({
|
||||
selector: 'ds-item-admin-search-result-list-element',
|
||||
styleUrls: ['./item-admin-search-result-list-element.component.scss'],
|
||||
templateUrl: './item-admin-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [ListableObjectComponentLoaderComponent, ItemAdminSearchResultActionsComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result on the admin search page
|
||||
|
@@ -72,9 +72,9 @@ describe('WorkflowItemSearchResultAdminWorkflowGridElementComponent', () => {
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
ListableObjectDirective,
|
||||
ListableModule
|
||||
ListableModule,
|
||||
WorkflowItemSearchResultAdminWorkflowGridElementComponent
|
||||
],
|
||||
declarations: [WorkflowItemSearchResultAdminWorkflowGridElementComponent],
|
||||
providers: [
|
||||
{ provide: LinkService, useValue: linkService },
|
||||
{ provide: ThemeService, useValue: themeService },
|
||||
|
@@ -28,12 +28,17 @@ import {
|
||||
import { ThemeService } from '../../../../../shared/theme-support/theme.service';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { hasValue } from '../../../../../shared/empty.util';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { WorkflowItemAdminWorkflowActionsComponent } from '../../actions/workflow-item/workflow-item-admin-workflow-actions.component';
|
||||
import { NgIf } from '@angular/common';
|
||||
|
||||
@listableObjectComponent(WorkflowItemSearchResult, ViewMode.GridElement, Context.AdminWorkflowSearch)
|
||||
@Component({
|
||||
selector: 'ds-workflow-item-search-result-admin-workflow-grid-element',
|
||||
styleUrls: ['./workflow-item-search-result-admin-workflow-grid-element.component.scss'],
|
||||
templateUrl: './workflow-item-search-result-admin-workflow-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, WorkflowItemAdminWorkflowActionsComponent, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an workflow item on the admin workflow search page
|
||||
|
@@ -84,9 +84,9 @@ describe('WorkspaceItemSearchResultAdminWorkflowGridElementComponent', () => {
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
ListableModule,
|
||||
ListableObjectDirective
|
||||
ListableObjectDirective,
|
||||
WorkspaceItemSearchResultAdminWorkflowGridElementComponent
|
||||
],
|
||||
declarations: [WorkspaceItemSearchResultAdminWorkflowGridElementComponent],
|
||||
providers: [
|
||||
{ provide: LinkService, useValue: linkService },
|
||||
{ provide: ThemeService, useValue: themeService },
|
||||
|
@@ -36,12 +36,17 @@ import { PaginatedList } from '../../../../../core/data/paginated-list.model';
|
||||
import { SupervisionOrderDataService } from '../../../../../core/supervision-order/supervision-order-data.service';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { hasValue } from '../../../../../shared/empty.util';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
import { WorkspaceItemAdminWorkflowActionsComponent } from '../../actions/workspace-item/workspace-item-admin-workflow-actions.component';
|
||||
|
||||
@listableObjectComponent(WorkspaceItemSearchResult, ViewMode.GridElement, Context.AdminWorkflowSearch)
|
||||
@Component({
|
||||
selector: 'ds-workflow-item-search-result-admin-workflow-grid-element',
|
||||
styleUrls: ['./workspace-item-search-result-admin-workflow-grid-element.component.scss'],
|
||||
templateUrl: './workspace-item-search-result-admin-workflow-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [WorkspaceItemAdminWorkflowActionsComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an workflow item on the admin workflow search page
|
||||
|
@@ -57,8 +57,8 @@ describe('WorkflowItemSearchResultAdminWorkflowListElementComponent', () => {
|
||||
NoopAnimationsModule,
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
WorkflowItemSearchResultAdminWorkflowListElementComponent
|
||||
],
|
||||
declarations: [WorkflowItemSearchResultAdminWorkflowListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: LinkService, useValue: linkService },
|
||||
|
@@ -20,12 +20,18 @@ import {
|
||||
} from '../../../../../shared/object-collection/shared/workflow-item-search-result.model';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { WorkflowItemAdminWorkflowActionsComponent } from '../../actions/workflow-item/workflow-item-admin-workflow-actions.component';
|
||||
import { ListableObjectComponentLoaderComponent } from '../../../../../shared/object-collection/shared/listable-object/listable-object-component-loader.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent(WorkflowItemSearchResult, ViewMode.ListElement, Context.AdminWorkflowSearch)
|
||||
@Component({
|
||||
selector: 'ds-workflow-item-search-result-admin-workflow-list-element',
|
||||
styleUrls: ['./workflow-item-search-result-admin-workflow-list-element.component.scss'],
|
||||
templateUrl: './workflow-item-search-result-admin-workflow-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ListableObjectComponentLoaderComponent, WorkflowItemAdminWorkflowActionsComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for a workflow item on the admin workflow search page
|
||||
|
@@ -71,8 +71,8 @@ describe('WorkspaceItemSearchResultAdminWorkflowListElementComponent', () => {
|
||||
NoopAnimationsModule,
|
||||
TranslateModule.forRoot(),
|
||||
RouterTestingModule.withRoutes([]),
|
||||
WorkspaceItemSearchResultAdminWorkflowListElementComponent
|
||||
],
|
||||
declarations: [WorkspaceItemSearchResultAdminWorkflowListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: NotificationsService, useValue: new NotificationsServiceStub() },
|
||||
|
@@ -31,12 +31,18 @@ import { SupervisionOrder } from '../../../../../core/supervision-order/models/s
|
||||
import { SupervisionOrderDataService } from '../../../../../core/supervision-order/supervision-order-data.service';
|
||||
import { PaginatedList } from '../../../../../core/data/paginated-list.model';
|
||||
import { DSpaceObject } from '../../../../../core/shared/dspace-object.model';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { WorkspaceItemAdminWorkflowActionsComponent } from '../../actions/workspace-item/workspace-item-admin-workflow-actions.component';
|
||||
import { ListableObjectComponentLoaderComponent } from '../../../../../shared/object-collection/shared/listable-object/listable-object-component-loader.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent(WorkspaceItemSearchResult, ViewMode.ListElement, Context.AdminWorkflowSearch)
|
||||
@Component({
|
||||
selector: 'ds-workflow-item-search-result-admin-workflow-list-element',
|
||||
styleUrls: ['./workspace-item-search-result-admin-workflow-list-element.component.scss'],
|
||||
templateUrl: './workspace-item-search-result-admin-workflow-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ListableObjectComponentLoaderComponent, WorkspaceItemAdminWorkflowActionsComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for a workflow item on the admin workflow search page
|
||||
|
@@ -40,16 +40,14 @@ describe('BrowseByPageComponent', () => {
|
||||
themeService = getMockThemeService();
|
||||
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [
|
||||
BrowseByPageComponent,
|
||||
BrowseBySwitcherComponent,
|
||||
DynamicComponentLoaderDirective,
|
||||
],
|
||||
imports: [BrowseBySwitcherComponent],
|
||||
declarations: [BrowseByPageComponent,
|
||||
DynamicComponentLoaderDirective],
|
||||
providers: [
|
||||
BrowseByTestComponent,
|
||||
{ provide: ActivatedRoute, useValue: activatedRoute },
|
||||
{ provide: ThemeService, useValue: themeService },
|
||||
],
|
||||
]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(BrowseByPageComponent);
|
||||
|
@@ -14,12 +14,10 @@ describe('SubComColSectionComponent', () => {
|
||||
activatedRoute.parent = new ActivatedRouteStub();
|
||||
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [
|
||||
SubComColSectionComponent,
|
||||
],
|
||||
declarations: [SubComColSectionComponent],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: activatedRoute },
|
||||
],
|
||||
]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(SubComColSectionComponent);
|
||||
|
@@ -397,7 +397,6 @@ const ENTRY_COMPONENTS = [
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
declarations: [...ENTRY_COMPONENTS],
|
||||
exports: [...ENTRY_COMPONENTS],
|
||||
imports: [
|
||||
CommonModule,
|
||||
@@ -439,6 +438,7 @@ const ENTRY_COMPONENTS = [
|
||||
ItemPageAbstractFieldComponent,
|
||||
ItemPageUriFieldComponent,
|
||||
CollectionsComponent,
|
||||
...ENTRY_COMPONENTS
|
||||
]
|
||||
})
|
||||
export class ListableModule {
|
||||
|
@@ -49,8 +49,7 @@ describe('JournalIssueGridElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopAnimationsModule, TruncatePipe],
|
||||
declarations: [JournalIssueGridElementComponent],
|
||||
imports: [NoopAnimationsModule, TruncatePipe, JournalIssueGridElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: truncatableServiceStub },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { JournalIssueSearchResultGridElementComponent } from '../search-result-grid-elements/journal-issue/journal-issue-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent('JournalIssue', ViewMode.GridElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-issue-grid-element',
|
||||
styleUrls: ['./journal-issue-grid-element.component.scss'],
|
||||
templateUrl: './journal-issue-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [JournalIssueSearchResultGridElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item of the type Journal Issue
|
||||
|
@@ -58,8 +58,7 @@ describe('JournalVolumeGridElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopAnimationsModule, TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [JournalVolumeGridElementComponent],
|
||||
imports: [NoopAnimationsModule, TruncatePipe, TranslateModule.forRoot(), JournalVolumeGridElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: truncatableServiceStub },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { JournalVolumeSearchResultGridElementComponent } from '../search-result-grid-elements/journal-volume/journal-volume-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent('JournalVolume', ViewMode.GridElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-volume-grid-element',
|
||||
styleUrls: ['./journal-volume-grid-element.component.scss'],
|
||||
templateUrl: './journal-volume-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [JournalVolumeSearchResultGridElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item of the type Journal Volume
|
||||
|
@@ -54,8 +54,7 @@ describe('JournalGridElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopAnimationsModule, TruncatePipe],
|
||||
declarations: [JournalGridElementComponent],
|
||||
imports: [NoopAnimationsModule, TruncatePipe, JournalGridElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: truncatableServiceStub },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { JournalSearchResultGridElementComponent } from '../search-result-grid-elements/journal/journal-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent('Journal', ViewMode.GridElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-grid-element',
|
||||
styleUrls: ['./journal-grid-element.component.scss'],
|
||||
templateUrl: './journal-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [JournalSearchResultGridElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item of the type Journal
|
||||
|
@@ -7,6 +7,13 @@ import { focusShadow } from '../../../../../shared/animations/focus';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
|
||||
@listableObjectComponent('JournalIssueSearchResult', ViewMode.GridElement)
|
||||
@Component({
|
||||
@@ -14,6 +21,8 @@ import {
|
||||
styleUrls: ['./journal-issue-search-result-grid-element.component.scss'],
|
||||
templateUrl: './journal-issue-search-result-grid-element.component.html',
|
||||
animations: [focusShadow],
|
||||
standalone: true,
|
||||
imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item search result of the type Journal Issue
|
||||
|
@@ -7,6 +7,13 @@ import { focusShadow } from '../../../../../shared/animations/focus';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
|
||||
@listableObjectComponent('JournalVolumeSearchResult', ViewMode.GridElement)
|
||||
@Component({
|
||||
@@ -14,6 +21,8 @@ import {
|
||||
styleUrls: ['./journal-volume-search-result-grid-element.component.scss'],
|
||||
templateUrl: './journal-volume-search-result-grid-element.component.html',
|
||||
animations: [focusShadow],
|
||||
standalone: true,
|
||||
imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item search result of the type Journal Volume
|
||||
|
@@ -7,6 +7,13 @@ import { ViewMode } from '../../../../../core/shared/view-mode.model';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
|
||||
@listableObjectComponent('JournalSearchResult', ViewMode.GridElement)
|
||||
@Component({
|
||||
@@ -14,6 +21,8 @@ import {
|
||||
styleUrls: ['./journal-search-result-grid-element.component.scss'],
|
||||
templateUrl: './journal-search-result-grid-element.component.html',
|
||||
animations: [focusShadow],
|
||||
standalone: true,
|
||||
imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item search result of the type Journal
|
||||
|
@@ -50,8 +50,7 @@ describe('JournalIssueListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [JournalIssueListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), JournalIssueListElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { JournalIssueSearchResultListElementComponent } from '../search-result-list-elements/journal-issue/journal-issue-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent('JournalIssue', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-issue-list-element',
|
||||
styleUrls: ['./journal-issue-list-element.component.scss'],
|
||||
templateUrl: './journal-issue-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [JournalIssueSearchResultListElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item of the type Journal Issue
|
||||
|
@@ -46,8 +46,7 @@ describe('JournalVolumeListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [JournalVolumeListElementComponent],
|
||||
imports: [TruncatePipe, JournalVolumeListElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: truncatableServiceStub },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ViewMode } from '../../../../core/shared/view-mode.model';
|
||||
import { JournalVolumeSearchResultListElementComponent } from '../search-result-list-elements/journal-volume/journal-volume-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent('JournalVolume', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-volume-list-element',
|
||||
styleUrls: ['./journal-volume-list-element.component.scss'],
|
||||
templateUrl: './journal-volume-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [JournalVolumeSearchResultListElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item of the type Journal Volume
|
||||
|
@@ -49,8 +49,7 @@ describe('JournalListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
return TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [JournalListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), JournalListElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: truncatableServiceStub },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { JournalSearchResultListElementComponent } from '../search-result-list-elements/journal/journal-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent('Journal', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-list-element',
|
||||
styleUrls: ['./journal-list-element.component.scss'],
|
||||
templateUrl: './journal-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [JournalSearchResultListElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item of the type Journal
|
||||
|
@@ -81,9 +81,9 @@ describe('JournalIssueSearchResultListElementComponent', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
TruncatePipe
|
||||
TruncatePipe,
|
||||
JournalIssueSearchResultListElementComponent
|
||||
],
|
||||
declarations: [JournalIssueSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
@@ -172,8 +172,7 @@ describe('JournalIssueSearchResultListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(),],
|
||||
declarations: [JournalIssueSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), JournalIssueSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -6,12 +6,20 @@ import { ViewMode } from '../../../../../core/shared/view-mode.model';
|
||||
import {
|
||||
ItemSearchResultListElementComponent
|
||||
} from '../../../../../shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, NgClass, NgFor, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('JournalIssueSearchResult', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-issue-search-result-list-element',
|
||||
styleUrls: ['./journal-issue-search-result-list-element.component.scss'],
|
||||
templateUrl: './journal-issue-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, RouterLink, ThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result of the type Journal Issue
|
||||
|
@@ -83,8 +83,7 @@ const enviromentNoThumbs = {
|
||||
describe('JournalVolumeSearchResultListElementComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [JournalVolumeSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, JournalVolumeSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
@@ -172,8 +171,7 @@ describe('JournalVolumeSearchResultListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [JournalVolumeSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, JournalVolumeSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -6,12 +6,20 @@ import { ViewMode } from '../../../../../core/shared/view-mode.model';
|
||||
import {
|
||||
ItemSearchResultListElementComponent
|
||||
} from '../../../../../shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, NgClass, NgFor, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('JournalVolumeSearchResult', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-volume-search-result-list-element',
|
||||
styleUrls: ['./journal-volume-search-result-list-element.component.scss'],
|
||||
templateUrl: './journal-volume-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, RouterLink, ThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result of the type Journal Volume
|
||||
|
@@ -76,8 +76,7 @@ const enviromentNoThumbs = {
|
||||
describe('JournalSearchResultListElementComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [JournalSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), JournalSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
@@ -141,8 +140,7 @@ describe('JournalSearchResultListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [JournalSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), JournalSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -6,12 +6,20 @@ import { ViewMode } from '../../../../../core/shared/view-mode.model';
|
||||
import {
|
||||
ItemSearchResultListElementComponent
|
||||
} from '../../../../../shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, NgClass, NgFor, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('JournalSearchResult', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-journal-search-result-list-element',
|
||||
styleUrls: ['./journal-search-result-list-element.component.scss'],
|
||||
templateUrl: './journal-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, RouterLink, ThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result of the type Journal
|
||||
|
@@ -10,12 +10,17 @@ import {
|
||||
} from '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component';
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { isNotEmpty } from '../../../../../shared/empty.util';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
|
||||
@listableObjectComponent('JournalIssueSearchResult', ViewMode.ListElement, Context.SideBarSearchModal)
|
||||
@listableObjectComponent('JournalIssueSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent)
|
||||
@Component({
|
||||
selector: 'ds-journal-issue-sidebar-search-list-element',
|
||||
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* Component displaying a list element for a {@link ItemSearchResult} of type "JournalIssue" within the context of
|
||||
|
@@ -10,12 +10,17 @@ import {
|
||||
} from '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component';
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { isNotEmpty } from '../../../../../shared/empty.util';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
|
||||
@listableObjectComponent('JournalVolumeSearchResult', ViewMode.ListElement, Context.SideBarSearchModal)
|
||||
@listableObjectComponent('JournalVolumeSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent)
|
||||
@Component({
|
||||
selector: 'ds-journal-volume-sidebar-search-list-element',
|
||||
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* Component displaying a list element for a {@link ItemSearchResult} of type "JournalVolume" within the context of
|
||||
|
@@ -10,12 +10,17 @@ import {
|
||||
} from '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component';
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { isNotEmpty } from '../../../../../shared/empty.util';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
|
||||
@listableObjectComponent('JournalSearchResult', ViewMode.ListElement, Context.SideBarSearchModal)
|
||||
@listableObjectComponent('JournalSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent)
|
||||
@Component({
|
||||
selector: 'ds-journal-sidebar-search-list-element',
|
||||
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* Component displaying a list element for a {@link ItemSearchResult} of type "Journal" within the context of
|
||||
|
@@ -4,12 +4,24 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../../../../item-page/simple/item-types/shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { RelatedItemsComponent } from '../../../../item-page/simple/related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../../../item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('JournalIssue', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
selector: 'ds-journal-issue',
|
||||
styleUrls: ['./journal-issue.component.scss'],
|
||||
templateUrl: './journal-issue.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Journal Issue
|
||||
|
@@ -4,12 +4,24 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../../../../item-page/simple/item-types/shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { RelatedItemsComponent } from '../../../../item-page/simple/related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../../../item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('JournalVolume', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
selector: 'ds-journal-volume',
|
||||
styleUrls: ['./journal-volume.component.scss'],
|
||||
templateUrl: './journal-volume.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Journal Volume
|
||||
|
@@ -96,9 +96,7 @@ describe('JournalComponent', () => {
|
||||
}
|
||||
}),
|
||||
RouterTestingModule,
|
||||
GenericItemPageFieldComponent, TruncatePipe
|
||||
],
|
||||
declarations: [
|
||||
GenericItemPageFieldComponent, TruncatePipe,
|
||||
JournalComponent
|
||||
],
|
||||
providers: [
|
||||
|
@@ -4,12 +4,25 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../../../../item-page/simple/item-types/shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TabbedRelatedEntitiesSearchComponent } from '../../../../item-page/simple/related-entities/tabbed-related-entities-search/tabbed-related-entities-search.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { RelatedItemsComponent } from '../../../../item-page/simple/related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../../../item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('Journal', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
selector: 'ds-journal',
|
||||
styleUrls: ['./journal.component.scss'],
|
||||
templateUrl: './journal.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Journal
|
||||
|
@@ -61,9 +61,9 @@ describe('OrgUnitGridElementComponent', () => {
|
||||
imports: [
|
||||
NoopAnimationsModule,
|
||||
TruncatePipe,
|
||||
TranslateModule.forRoot()
|
||||
TranslateModule.forRoot(),
|
||||
OrgUnitGridElementComponent
|
||||
],
|
||||
declarations: [OrgUnitGridElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { OrgUnitSearchResultGridElementComponent } from '../search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent('OrgUnit', ViewMode.GridElement)
|
||||
@Component({
|
||||
selector: 'ds-org-unit-grid-element',
|
||||
styleUrls: ['./org-unit-grid-element.component.scss'],
|
||||
templateUrl: './org-unit-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [OrgUnitSearchResultGridElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item of the type Organisation Unit
|
||||
|
@@ -47,8 +47,7 @@ describe('PersonGridElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopAnimationsModule, TruncatePipe],
|
||||
declarations: [PersonGridElementComponent],
|
||||
imports: [NoopAnimationsModule, TruncatePipe, PersonGridElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: truncatableServiceStub },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { PersonSearchResultGridElementComponent } from '../search-result-grid-elements/person/person-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent('Person', ViewMode.GridElement)
|
||||
@Component({
|
||||
selector: 'ds-person-grid-element',
|
||||
styleUrls: ['./person-grid-element.component.scss'],
|
||||
templateUrl: './person-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [PersonSearchResultGridElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item of the type Person
|
||||
|
@@ -46,8 +46,7 @@ describe('ProjectGridElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopAnimationsModule, TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [ProjectGridElementComponent],
|
||||
imports: [NoopAnimationsModule, TruncatePipe, TranslateModule.forRoot(), ProjectGridElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { ProjectSearchResultGridElementComponent } from '../search-result-grid-elements/project/project-search-result-grid-element.component';
|
||||
|
||||
@listableObjectComponent('Project', ViewMode.GridElement)
|
||||
@Component({
|
||||
selector: 'ds-project-grid-element',
|
||||
styleUrls: ['./project-grid-element.component.scss'],
|
||||
templateUrl: './project-grid-element.component.html',
|
||||
standalone: true,
|
||||
imports: [ProjectSearchResultGridElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item of the type Project
|
||||
|
@@ -7,6 +7,13 @@ import { focusShadow } from '../../../../../shared/animations/focus';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
|
||||
@listableObjectComponent('OrgUnitSearchResult', ViewMode.GridElement)
|
||||
@Component({
|
||||
@@ -14,6 +21,8 @@ import {
|
||||
styleUrls: ['./org-unit-search-result-grid-element.component.scss'],
|
||||
templateUrl: './org-unit-search-result-grid-element.component.html',
|
||||
animations: [focusShadow],
|
||||
standalone: true,
|
||||
imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item search result of the type Organisation Unit
|
||||
|
@@ -7,6 +7,13 @@ import { focusShadow } from '../../../../../shared/animations/focus';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
|
||||
@listableObjectComponent('PersonSearchResult', ViewMode.GridElement)
|
||||
@Component({
|
||||
@@ -14,6 +21,8 @@ import {
|
||||
styleUrls: ['./person-search-result-grid-element.component.scss'],
|
||||
templateUrl: './person-search-result-grid-element.component.html',
|
||||
animations: [focusShadow],
|
||||
standalone: true,
|
||||
imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item search result of the type Person
|
||||
|
@@ -7,6 +7,13 @@ import { focusShadow } from '../../../../../shared/animations/focus';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../../../shared/object-grid/search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
|
||||
@listableObjectComponent('ProjectSearchResult', ViewMode.GridElement)
|
||||
@Component({
|
||||
@@ -14,6 +21,8 @@ import {
|
||||
styleUrls: ['./project-search-result-grid-element.component.scss'],
|
||||
templateUrl: './project-search-result-grid-element.component.html',
|
||||
animations: [focusShadow],
|
||||
standalone: true,
|
||||
imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a grid element for an item search result of the type Project
|
||||
|
@@ -45,8 +45,7 @@ describe('OrgUnitListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [OrgUnitListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), OrgUnitListElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { OrgUnitSearchResultListElementComponent } from '../search-result-list-elements/org-unit/org-unit-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent('OrgUnit', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-org-unit-list-element',
|
||||
styleUrls: ['./org-unit-list-element.component.scss'],
|
||||
templateUrl: './org-unit-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [OrgUnitSearchResultListElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item of the type Organisation Unit
|
||||
|
@@ -44,8 +44,7 @@ describe('PersonListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [PersonListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), PersonListElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
AbstractListableElementComponent
|
||||
} from '../../../../shared/object-collection/shared/object-collection-element/abstract-listable-element.component';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { PersonSearchResultListElementComponent } from '../search-result-list-elements/person/person-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent('Person', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-person-list-element',
|
||||
styleUrls: ['./person-list-element.component.scss'],
|
||||
templateUrl: './person-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [PersonSearchResultListElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item of the type Person
|
||||
|
@@ -38,8 +38,7 @@ describe('ProjectListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe, TranslateModule.forRoot()],
|
||||
declarations: [ProjectListElementComponent],
|
||||
imports: [TruncatePipe, TranslateModule.forRoot(), ProjectListElementComponent],
|
||||
providers: [
|
||||
{ provide: DSONameService, useValue: new DSONameServiceMock() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -7,12 +7,15 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ViewMode } from '../../../../core/shared/view-mode.model';
|
||||
import { ProjectSearchResultListElementComponent } from '../search-result-list-elements/project/project-search-result-list-element.component';
|
||||
|
||||
@listableObjectComponent('Project', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-project-list-element',
|
||||
styleUrls: ['./project-list-element.component.scss'],
|
||||
templateUrl: './project-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [ProjectSearchResultListElementComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item of the type Project
|
||||
|
@@ -81,8 +81,7 @@ describe('OrgUnitSearchResultListElementComponent', () => {
|
||||
provide: TranslateLoader,
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
}), TruncatePipe],
|
||||
declarations: [OrgUnitSearchResultListElementComponent],
|
||||
}), TruncatePipe, OrgUnitSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
||||
@@ -153,8 +152,7 @@ describe('OrgUnitSearchResultListElementComponent', () => {
|
||||
provide: TranslateLoader,
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
}), TruncatePipe],
|
||||
declarations: [OrgUnitSearchResultListElementComponent],
|
||||
}), TruncatePipe, OrgUnitSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -6,12 +6,21 @@ import {
|
||||
import {
|
||||
ItemSearchResultListElementComponent
|
||||
} from '../../../../../shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, NgClass, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('OrgUnitSearchResult', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-org-unit-search-result-list-element',
|
||||
styleUrls: ['./org-unit-search-result-list-element.component.scss'],
|
||||
templateUrl: './org-unit-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, RouterLink, ThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result of the type Organisation Unit
|
||||
|
@@ -81,8 +81,7 @@ describe('PersonSearchResultListElementComponent', () => {
|
||||
provide: TranslateLoader,
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
}), TruncatePipe],
|
||||
declarations: [PersonSearchResultListElementComponent],
|
||||
}), TruncatePipe, PersonSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -9,12 +9,21 @@ import {
|
||||
import { TruncatableService } from '../../../../../shared/truncatable/truncatable.service';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, NgClass, NgFor, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('PersonSearchResult', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-person-search-result-list-element',
|
||||
styleUrls: ['./person-search-result-list-element.component.scss'],
|
||||
templateUrl: './person-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, RouterLink, ThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result of the type Person
|
||||
|
@@ -72,8 +72,7 @@ const enviromentNoThumbs = {
|
||||
describe('ProjectSearchResultListElementComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [ProjectSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, ProjectSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
@@ -137,8 +136,7 @@ describe('ProjectSearchResultListElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [ProjectSearchResultListElementComponent],
|
||||
imports: [TruncatePipe, ProjectSearchResultListElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||
|
@@ -6,12 +6,19 @@ import { ViewMode } from '../../../../../core/shared/view-mode.model';
|
||||
import {
|
||||
ItemSearchResultListElementComponent
|
||||
} from '../../../../../shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||
import { ThemedBadgesComponent } from '../../../../../shared/object-collection/shared/badges/themed-badges.component';
|
||||
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { NgIf, NgClass, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('ProjectSearchResult', ViewMode.ListElement)
|
||||
@Component({
|
||||
selector: 'ds-project-search-result-list-element',
|
||||
styleUrls: ['./project-search-result-list-element.component.scss'],
|
||||
templateUrl: './project-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, RouterLink, ThumbnailComponent, NgClass, TruncatableComponent, ThemedBadgesComponent, AsyncPipe]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element for an item search result of the type Project
|
||||
|
@@ -9,12 +9,17 @@ import {
|
||||
SidebarSearchListElementComponent
|
||||
} from '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component';
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
|
||||
@listableObjectComponent('OrgUnitSearchResult', ViewMode.ListElement, Context.SideBarSearchModal)
|
||||
@listableObjectComponent('OrgUnitSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent)
|
||||
@Component({
|
||||
selector: 'ds-org-unit-sidebar-search-list-element',
|
||||
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* Component displaying a list element for a {@link ItemSearchResult} of type "OrgUnit" within the context of
|
||||
|
@@ -12,14 +12,18 @@ import { Item } from '../../../../../core/shared/item.model';
|
||||
import { isNotEmpty } from '../../../../../shared/empty.util';
|
||||
import { TruncatableService } from '../../../../../shared/truncatable/truncatable.service';
|
||||
import { LinkService } from '../../../../../core/cache/builders/link.service';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
|
||||
@listableObjectComponent('PersonSearchResult', ViewMode.ListElement, Context.SideBarSearchModal)
|
||||
@listableObjectComponent('PersonSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent)
|
||||
@Component({
|
||||
selector: 'ds-person-sidebar-search-list-element',
|
||||
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* Component displaying a list element for a {@link ItemSearchResult} of type "Person" within the context of
|
||||
|
@@ -9,12 +9,17 @@ import {
|
||||
SidebarSearchListElementComponent
|
||||
} from '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component';
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
|
||||
|
||||
@listableObjectComponent('ProjectSearchResult', ViewMode.ListElement, Context.SideBarSearchModal)
|
||||
@listableObjectComponent('ProjectSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent)
|
||||
@Component({
|
||||
selector: 'ds-project-sidebar-search-list-element',
|
||||
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* Component displaying a list element for a {@link ItemSearchResult} of type "Project" within the context of
|
||||
|
@@ -4,12 +4,25 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../../../../item-page/simple/item-types/shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TabbedRelatedEntitiesSearchComponent } from '../../../../item-page/simple/related-entities/tabbed-related-entities-search/tabbed-related-entities-search.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { RelatedItemsComponent } from '../../../../item-page/simple/related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../../../item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('OrgUnit', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
selector: 'ds-org-unit',
|
||||
styleUrls: ['./org-unit.component.scss'],
|
||||
templateUrl: './org-unit.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Organisation Unit
|
||||
|
@@ -4,12 +4,25 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../../../../item-page/simple/item-types/shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TabbedRelatedEntitiesSearchComponent } from '../../../../item-page/simple/related-entities/tabbed-related-entities-search/tabbed-related-entities-search.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { RelatedItemsComponent } from '../../../../item-page/simple/related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../../../item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('Person', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
selector: 'ds-person',
|
||||
styleUrls: ['./person.component.scss'],
|
||||
templateUrl: './person.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Person
|
||||
|
@@ -4,12 +4,25 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../../../../item-page/simple/item-types/shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { RelatedItemsComponent } from '../../../../item-page/simple/related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../../../item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedMetadataRepresentationListComponent } from '../../../../item-page/simple/metadata-representation-list/themed-metadata-representation-list.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('Project', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
selector: 'ds-project',
|
||||
styleUrls: ['./project.component.scss'],
|
||||
templateUrl: './project.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Project
|
||||
|
@@ -24,8 +24,7 @@ describe('ExternalSourceEntryListSubmissionElementComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TranslateModule.forRoot()],
|
||||
declarations: [ExternalSourceEntryListSubmissionElementComponent],
|
||||
imports: [TranslateModule.forRoot(), ExternalSourceEntryListSubmissionElementComponent],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
@@ -10,6 +10,7 @@ import { Context } from '../../../../../core/shared/context.model';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Metadata } from '../../../../../core/shared/metadata.utils';
|
||||
import { MetadataValue } from '../../../../../core/shared/metadata.models';
|
||||
import { NgIf } from '@angular/common';
|
||||
|
||||
@listableObjectComponent(ExternalSourceEntry, ViewMode.ListElement, Context.EntitySearchModal)
|
||||
@listableObjectComponent(ExternalSourceEntry, ViewMode.ListElement, Context.EntitySearchModalWithNameVariants)
|
||||
@@ -17,6 +18,8 @@ import { MetadataValue } from '../../../../../core/shared/metadata.models';
|
||||
selector: 'ds-external-source-entry-list-submission-element',
|
||||
styleUrls: ['./external-source-entry-list-submission-element.component.scss'],
|
||||
templateUrl: './external-source-entry-list-submission-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf]
|
||||
})
|
||||
/**
|
||||
* The component for displaying a list element of an external source entry
|
||||
|
@@ -101,8 +101,7 @@ describe('OrgUnitSearchResultListSubmissionElementComponent', () => {
|
||||
}
|
||||
};
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [OrgUnitSearchResultListSubmissionElementComponent],
|
||||
imports: [TruncatePipe, OrgUnitSearchResultListSubmissionElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
{ provide: RelationshipDataService, useValue: mockRelationshipService },
|
||||
|
@@ -22,6 +22,9 @@ import { SelectableListService } from '../../../../../shared/object-list/selecta
|
||||
import { NameVariantModalComponent } from '../../name-variant-modal/name-variant-modal.component';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { OrgUnitInputSuggestionsComponent } from './org-unit-suggestions/org-unit-input-suggestions.component';
|
||||
import { NgIf } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('OrgUnitSearchResult', ViewMode.ListElement, Context.EntitySearchModal)
|
||||
@listableObjectComponent('OrgUnitSearchResult', ViewMode.ListElement, Context.EntitySearchModalWithNameVariants)
|
||||
@@ -29,6 +32,8 @@ import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.inter
|
||||
selector: 'ds-person-search-result-list-submission-element',
|
||||
styleUrls: ['./org-unit-search-result-list-submission-element.component.scss'],
|
||||
templateUrl: './org-unit-search-result-list-submission-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, OrgUnitInputSuggestionsComponent, FormsModule]
|
||||
})
|
||||
|
||||
/**
|
||||
|
@@ -109,8 +109,7 @@ describe('PersonSearchResultListElementSubmissionComponent', () => {
|
||||
beforeEach(waitForAsync(async () => {
|
||||
init();
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [PersonSearchResultListSubmissionElementComponent],
|
||||
imports: [TruncatePipe, PersonSearchResultListSubmissionElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: {} },
|
||||
{ provide: RelationshipDataService, useValue: mockRelationshipService },
|
||||
@@ -209,8 +208,7 @@ describe('PersonSearchResultListElementSubmissionComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
init();
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TruncatePipe],
|
||||
declarations: [PersonSearchResultListSubmissionElementComponent],
|
||||
imports: [TruncatePipe, PersonSearchResultListSubmissionElementComponent],
|
||||
providers: [
|
||||
{ provide: TruncatableService, useValue: {} },
|
||||
{ provide: RelationshipDataService, useValue: mockRelationshipService },
|
||||
|
@@ -19,12 +19,18 @@ import { ItemDataService } from '../../../../../core/data/item-data.service';
|
||||
import { SelectableListService } from '../../../../../shared/object-list/selectable-list/selectable-list.service';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { PersonInputSuggestionsComponent } from './person-suggestions/person-input-suggestions.component';
|
||||
import { ThumbnailComponent } from '../../../../../thumbnail/thumbnail.component';
|
||||
import { NgIf, NgClass, NgFor, AsyncPipe } from '@angular/common';
|
||||
|
||||
@listableObjectComponent('PersonSearchResult', ViewMode.ListElement, Context.EntitySearchModalWithNameVariants)
|
||||
@Component({
|
||||
selector: 'ds-person-search-result-list-submission-element',
|
||||
styleUrls: ['./person-search-result-list-submission-element.component.scss'],
|
||||
templateUrl: './person-search-result-list-submission-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThumbnailComponent, NgClass, PersonInputSuggestionsComponent, FormsModule, NgFor, AsyncPipe]
|
||||
})
|
||||
|
||||
/**
|
||||
|
@@ -36,12 +36,12 @@ describe('ItemPageImgFieldComponent', () => {
|
||||
provide: TranslateLoader,
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
})],
|
||||
}), GenericItemPageFieldComponent, MetadataValuesComponent],
|
||||
providers: [
|
||||
{ provide: APP_CONFIG, useValue: environment },
|
||||
{ provide: BrowseDefinitionDataService, useValue: BrowseDefinitionDataServiceStub }
|
||||
],
|
||||
declarations: [ItemPageImgFieldComponent, GenericItemPageFieldComponent, MetadataValuesComponent],
|
||||
declarations: [ItemPageImgFieldComponent],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
})
|
||||
.overrideComponent(GenericItemPageFieldComponent, {
|
||||
|
@@ -76,9 +76,9 @@ describe('PublicationComponent', () => {
|
||||
}
|
||||
}),
|
||||
RouterTestingModule,
|
||||
GenericItemPageFieldComponent, TruncatePipe
|
||||
GenericItemPageFieldComponent, TruncatePipe,
|
||||
PublicationComponent
|
||||
],
|
||||
declarations: [PublicationComponent],
|
||||
providers: [
|
||||
{ provide: ItemDataService, useValue: {} },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -4,6 +4,24 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { CollectionsComponent } from '../../../field-components/collections/collections.component';
|
||||
import { ItemPageUriFieldComponent } from '../../field-components/specific-field/uri/item-page-uri-field.component';
|
||||
import { ItemPageAbstractFieldComponent } from '../../field-components/specific-field/abstract/item-page-abstract-field.component';
|
||||
import { RelatedItemsComponent } from '../../related-items/related-items-component';
|
||||
import { GenericItemPageFieldComponent } from '../../field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedMetadataRepresentationListComponent } from '../../metadata-representation-list/themed-metadata-representation-list.component';
|
||||
import { ItemPageDateFieldComponent } from '../../field-components/specific-field/date/item-page-date-field.component';
|
||||
import { ThemedFileSectionComponent } from '../../field-components/file-section/themed-file-section.component';
|
||||
import { ThemedMediaViewerComponent } from '../../../media-viewer/themed-media-viewer.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { MiradorViewerComponent } from '../../../mirador-viewer/mirador-viewer.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
/**
|
||||
* Component that represents a publication Item page
|
||||
@@ -14,7 +32,9 @@ import { ItemComponent } from '../shared/item.component';
|
||||
selector: 'ds-publication',
|
||||
styleUrls: ['./publication.component.scss'],
|
||||
templateUrl: './publication.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, RelatedItemsComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule]
|
||||
})
|
||||
export class PublicationComponent extends ItemComponent {
|
||||
|
||||
|
@@ -135,8 +135,8 @@ export function getItemPageFieldsTest(mockItem: Item, component) {
|
||||
GenericItemPageFieldComponent,
|
||||
TruncatePipe,
|
||||
AsyncPipe,
|
||||
component
|
||||
],
|
||||
declarations: [component],
|
||||
providers: [
|
||||
{
|
||||
provide: APP_CONFIG,
|
||||
@@ -172,7 +172,7 @@ export function getItemPageFieldsTest(mockItem: Item, component) {
|
||||
useValue: BrowseDefinitionDataServiceStub,
|
||||
},
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
})
|
||||
.overrideComponent(component, {
|
||||
remove: {
|
||||
|
@@ -77,9 +77,9 @@ describe('UntypedItemComponent', () => {
|
||||
}
|
||||
}),
|
||||
RouterTestingModule,
|
||||
GenericItemPageFieldComponent, TruncatePipe
|
||||
GenericItemPageFieldComponent, TruncatePipe,
|
||||
UntypedItemComponent
|
||||
],
|
||||
declarations: [UntypedItemComponent],
|
||||
providers: [
|
||||
{ provide: ItemDataService, useValue: {} },
|
||||
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||
|
@@ -5,6 +5,23 @@ import {
|
||||
listableObjectComponent
|
||||
} from '../../../../shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||
import { ItemComponent } from '../shared/item.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { CollectionsComponent } from '../../../field-components/collections/collections.component';
|
||||
import { ItemPageUriFieldComponent } from '../../field-components/specific-field/uri/item-page-uri-field.component';
|
||||
import { ItemPageAbstractFieldComponent } from '../../field-components/specific-field/abstract/item-page-abstract-field.component';
|
||||
import { GenericItemPageFieldComponent } from '../../field-components/specific-field/generic/generic-item-page-field.component';
|
||||
import { ThemedMetadataRepresentationListComponent } from '../../metadata-representation-list/themed-metadata-representation-list.component';
|
||||
import { ItemPageDateFieldComponent } from '../../field-components/specific-field/date/item-page-date-field.component';
|
||||
import { ThemedFileSectionComponent } from '../../field-components/file-section/themed-file-section.component';
|
||||
import { ThemedMediaViewerComponent } from '../../../media-viewer/themed-media-viewer.component';
|
||||
import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail.component';
|
||||
import { MetadataFieldWrapperComponent } from '../../../../shared/metadata-field-wrapper/metadata-field-wrapper.component';
|
||||
import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { MiradorViewerComponent } from '../../../mirador-viewer/mirador-viewer.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
|
||||
/**
|
||||
* Component that represents a publication Item page
|
||||
@@ -15,7 +32,9 @@ import { ItemComponent } from '../shared/item.component';
|
||||
selector: 'ds-untyped-item',
|
||||
styleUrls: ['./untyped-item.component.scss'],
|
||||
templateUrl: './untyped-item.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule]
|
||||
})
|
||||
export class UntypedItemComponent extends ItemComponent {
|
||||
|
||||
|
@@ -26,7 +26,7 @@ describe('RequestStatusAlertBoxComponent', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [TranslateModule.forRoot()],
|
||||
declarations: [RequestStatusAlertBoxComponent],
|
||||
declarations: [RequestStatusAlertBoxComponent]
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
|
@@ -47,7 +47,7 @@ describe('QaEventNotificationComponent', () => {
|
||||
ObjectCacheService,
|
||||
RemoteDataBuildService,
|
||||
provideMockStore({})
|
||||
],
|
||||
]
|
||||
})
|
||||
.compileComponents();
|
||||
fixture = TestBed.createComponent(QaEventNotificationComponent);
|
||||
|
@@ -18,9 +18,9 @@ describe('SuggestionListElementComponent', () => {
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot()
|
||||
TranslateModule.forRoot(),
|
||||
SuggestionListElementComponent
|
||||
],
|
||||
declarations: [SuggestionListElementComponent],
|
||||
providers: [
|
||||
NgbModal
|
||||
],
|
||||
|
@@ -34,7 +34,6 @@ describe('SuggestionsPopupComponent', () => {
|
||||
{ provide: SuggestionsService, useValue: suggestionService },
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
@@ -124,8 +124,8 @@ describe('ProcessOverviewTableComponent', () => {
|
||||
init();
|
||||
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [ProcessOverviewTableComponent, VarDirective, NgbCollapse],
|
||||
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([])],
|
||||
declarations: [ProcessOverviewTableComponent, NgbCollapse],
|
||||
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), VarDirective],
|
||||
providers: [
|
||||
{ provide: ProcessOverviewService, useValue: processOverviewService },
|
||||
{ provide: ProcessDataService, useValue: processService },
|
||||
@@ -135,7 +135,7 @@ describe('ProcessOverviewTableComponent', () => {
|
||||
{ provide: NgbModal, useValue: modalService },
|
||||
{ provide: AuthService, useValue: authService },
|
||||
{ provide: RouteService, useValue: routeService },
|
||||
],
|
||||
]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
|
@@ -18,9 +18,7 @@ describe('NotificationsSuggestionTargetsPageComponent', () => {
|
||||
CommonModule,
|
||||
TranslateModule.forRoot()
|
||||
],
|
||||
declarations: [
|
||||
NotificationsSuggestionTargetsPageComponent
|
||||
],
|
||||
declarations: [NotificationsSuggestionTargetsPageComponent],
|
||||
providers: [
|
||||
AdminNotificationsPublicationClaimPageComponent
|
||||
],
|
||||
|
@@ -8,7 +8,7 @@ describe('QualityAssuranceTopicsPageComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ QualityAssuranceTopicsPageComponent ],
|
||||
imports: [QualityAssuranceTopicsPageComponent],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
})
|
||||
.compileComponents();
|
||||
|
@@ -40,16 +40,14 @@ describe('ComcolBrowseByComponent', () => {
|
||||
themeService = getMockThemeService();
|
||||
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [
|
||||
ComcolBrowseByComponent,
|
||||
BrowseBySwitcherComponent,
|
||||
DynamicComponentLoaderDirective,
|
||||
],
|
||||
imports: [BrowseBySwitcherComponent],
|
||||
declarations: [ComcolBrowseByComponent,
|
||||
DynamicComponentLoaderDirective],
|
||||
providers: [
|
||||
BrowseByTestComponent,
|
||||
{ provide: ActivatedRoute, useValue: activatedRoute },
|
||||
{ provide: ThemeService, useValue: themeService },
|
||||
],
|
||||
]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ComcolBrowseByComponent);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user