item-page.module.ts (dspace-angular-dspace-7.0) | : | item-page.module.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
import { ItemPageComponent } from './simple/item-page.component'; | import { ItemPageComponent } from './simple/item-page.component'; | |||
import { ItemPageRoutingModule } from './item-page-routing.module'; | import { ItemPageRoutingModule } from './item-page-routing.module'; | |||
import { MetadataUriValuesComponent } from './field-components/metadata-uri-valu es/metadata-uri-values.component'; | import { MetadataUriValuesComponent } from './field-components/metadata-uri-valu es/metadata-uri-values.component'; | |||
import { ItemPageAuthorFieldComponent } from './simple/field-components/specific -field/author/item-page-author-field.component'; | import { ItemPageAuthorFieldComponent } from './simple/field-components/specific -field/author/item-page-author-field.component'; | |||
import { ItemPageDateFieldComponent } from './simple/field-components/specific-f ield/date/item-page-date-field.component'; | import { ItemPageDateFieldComponent } from './simple/field-components/specific-f ield/date/item-page-date-field.component'; | |||
import { ItemPageAbstractFieldComponent } from './simple/field-components/specif ic-field/abstract/item-page-abstract-field.component'; | import { ItemPageAbstractFieldComponent } from './simple/field-components/specif ic-field/abstract/item-page-abstract-field.component'; | |||
import { ItemPageUriFieldComponent } from './simple/field-components/specific-fi eld/uri/item-page-uri-field.component'; | import { ItemPageUriFieldComponent } from './simple/field-components/specific-fi eld/uri/item-page-uri-field.component'; | |||
import { ItemPageTitleFieldComponent } from './simple/field-components/specific- field/title/item-page-title-field.component'; | import { ItemPageTitleFieldComponent } from './simple/field-components/specific- field/title/item-page-title-field.component'; | |||
import { ItemPageFieldComponent } from './simple/field-components/specific-field /item-page-field.component'; | import { ItemPageFieldComponent } from './simple/field-components/specific-field /item-page-field.component'; | |||
import { FileSectionComponent } from './simple/field-components/file-section/fil e-section.component'; | ||||
import { CollectionsComponent } from './field-components/collections/collections .component'; | import { CollectionsComponent } from './field-components/collections/collections .component'; | |||
import { FullItemPageComponent } from './full/full-item-page.component'; | import { FullItemPageComponent } from './full/full-item-page.component'; | |||
import { FullFileSectionComponent } from './full/field-components/file-section/f ull-file-section.component'; | import { FullFileSectionComponent } from './full/field-components/file-section/f ull-file-section.component'; | |||
import { PublicationComponent } from './simple/item-types/publication/publicatio n.component'; | import { PublicationComponent } from './simple/item-types/publication/publicatio n.component'; | |||
import { ItemComponent } from './simple/item-types/shared/item.component'; | import { ItemComponent } from './simple/item-types/shared/item.component'; | |||
import { EditItemPageModule } from './edit-item-page/edit-item-page.module'; | import { EditItemPageModule } from './edit-item-page/edit-item-page.module'; | |||
import { UploadBitstreamComponent } from './bitstreams/upload/upload-bitstream.c omponent'; | import { UploadBitstreamComponent } from './bitstreams/upload/upload-bitstream.c omponent'; | |||
import { StatisticsModule } from '../statistics/statistics.module'; | import { StatisticsModule } from '../statistics/statistics.module'; | |||
import { AbstractIncrementalListComponent } from './simple/abstract-incremental- list/abstract-incremental-list.component'; | import { AbstractIncrementalListComponent } from './simple/abstract-incremental- list/abstract-incremental-list.component'; | |||
import { UntypedItemComponent } from './simple/item-types/untyped-item/untyped-i tem.component'; | import { UntypedItemComponent } from './simple/item-types/untyped-item/untyped-i tem.component'; | |||
import { JournalEntitiesModule } from '../entity-groups/journal-entities/journal -entities.module'; | import { JournalEntitiesModule } from '../entity-groups/journal-entities/journal -entities.module'; | |||
import { ResearchEntitiesModule } from '../entity-groups/research-entities/resea rch-entities.module'; | import { ResearchEntitiesModule } from '../entity-groups/research-entities/resea rch-entities.module'; | |||
import { ThemedItemPageComponent } from './simple/themed-item-page.component'; | import { ThemedItemPageComponent } from './simple/themed-item-page.component'; | |||
import { ThemedFullItemPageComponent } from './full/themed-full-item-page.compon ent'; | import { ThemedFullItemPageComponent } from './full/themed-full-item-page.compon ent'; | |||
import { MediaViewerComponent } from './media-viewer/media-viewer.component'; | import { MediaViewerComponent } from './media-viewer/media-viewer.component'; | |||
import { MediaViewerVideoComponent } from './media-viewer/media-viewer-video/med ia-viewer-video.component'; | import { MediaViewerVideoComponent } from './media-viewer/media-viewer-video/med ia-viewer-video.component'; | |||
import { MediaViewerImageComponent } from './media-viewer/media-viewer-image/med ia-viewer-image.component'; | import { MediaViewerImageComponent } from './media-viewer/media-viewer-image/med ia-viewer-image.component'; | |||
import { NgxGalleryModule } from '@kolkov/ngx-gallery'; | import { NgxGalleryModule } from '@kolkov/ngx-gallery'; | |||
import { MiradorViewerComponent } from './mirador-viewer/mirador-viewer.componen | ||||
t'; | ||||
import { VersionPageComponent } from './version-page/version-page/version-page.c | ||||
omponent'; | ||||
import { VersionedItemComponent } from './simple/item-types/versioned-item/versi | ||||
oned-item.component'; | ||||
import { ThemedFileSectionComponent} from './simple/field-components/file-sectio | ||||
n/themed-file-section.component'; | ||||
const ENTRY_COMPONENTS = [ | const ENTRY_COMPONENTS = [ | |||
// put only entry components that use custom decorator | // put only entry components that use custom decorator | |||
PublicationComponent, | PublicationComponent, | |||
UntypedItemComponent | UntypedItemComponent | |||
]; | ]; | |||
const DECLARATIONS = [ | const DECLARATIONS = [ | |||
ThemedFileSectionComponent, | ||||
ItemPageComponent, | ItemPageComponent, | |||
ThemedItemPageComponent, | ThemedItemPageComponent, | |||
FullItemPageComponent, | FullItemPageComponent, | |||
ThemedFullItemPageComponent, | ThemedFullItemPageComponent, | |||
MetadataUriValuesComponent, | MetadataUriValuesComponent, | |||
ItemPageAuthorFieldComponent, | ItemPageAuthorFieldComponent, | |||
ItemPageDateFieldComponent, | ItemPageDateFieldComponent, | |||
ItemPageAbstractFieldComponent, | ItemPageAbstractFieldComponent, | |||
ItemPageUriFieldComponent, | ItemPageUriFieldComponent, | |||
ItemPageTitleFieldComponent, | ItemPageTitleFieldComponent, | |||
ItemPageFieldComponent, | ItemPageFieldComponent, | |||
FileSectionComponent, | ||||
CollectionsComponent, | CollectionsComponent, | |||
FullFileSectionComponent, | FullFileSectionComponent, | |||
PublicationComponent, | PublicationComponent, | |||
UntypedItemComponent, | UntypedItemComponent, | |||
ItemComponent, | ItemComponent, | |||
UploadBitstreamComponent, | UploadBitstreamComponent, | |||
AbstractIncrementalListComponent, | AbstractIncrementalListComponent, | |||
MediaViewerComponent, | MediaViewerComponent, | |||
MediaViewerVideoComponent, | MediaViewerVideoComponent, | |||
MediaViewerImageComponent | MediaViewerImageComponent, | |||
MiradorViewerComponent, | ||||
VersionPageComponent, | ||||
]; | ]; | |||
@NgModule({ | @NgModule({ | |||
imports: [ | imports: [ | |||
CommonModule, | CommonModule, | |||
SharedModule.withEntryComponents(), | SharedModule.withEntryComponents(), | |||
ItemPageRoutingModule, | ItemPageRoutingModule, | |||
EditItemPageModule, | EditItemPageModule, | |||
StatisticsModule.forRoot(), | StatisticsModule.forRoot(), | |||
JournalEntitiesModule.withEntryComponents(), | JournalEntitiesModule.withEntryComponents(), | |||
ResearchEntitiesModule.withEntryComponents(), | ResearchEntitiesModule.withEntryComponents(), | |||
NgxGalleryModule, | NgxGalleryModule, | |||
], | ], | |||
declarations: [ | declarations: [ | |||
...DECLARATIONS | ...DECLARATIONS, | |||
VersionedItemComponent | ||||
], | ], | |||
exports: [ | exports: [ | |||
...DECLARATIONS | ...DECLARATIONS | |||
] | ] | |||
}) | }) | |||
export class ItemPageModule { | export class ItemPageModule { | |||
/** | /** | |||
* NOTE: this method allows to resolve issue with components that using a cust om decorator | * NOTE: this method allows to resolve issue with components that using a cust om decorator | |||
* which are not loaded during CSR otherwise | * which are not loaded during CSR otherwise | |||
*/ | */ | |||
End of changes. 7 change blocks. | ||||
5 lines changed or deleted | 15 lines changed or added |