mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 06:23:03 +00:00
97281: Added ItemSearchResultListElementComponent & PublicationSidebarSearchListElementComponent to custom theme
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import {
|
||||||
|
listableObjectComponent
|
||||||
|
} from '../../../../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||||
|
import { ViewMode } from '../../../../../../../../../app/core/shared/view-mode.model';
|
||||||
|
import {
|
||||||
|
ItemSearchResult
|
||||||
|
} from '../../../../../../../../../app/shared/object-collection/shared/item-search-result.model';
|
||||||
|
import {
|
||||||
|
ItemSearchResultListElementComponent as BaseComponent
|
||||||
|
} from '../../../../../../../../../app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||||
|
import { Context } from '../../../../../../../../../app/core/shared/context.model';
|
||||||
|
|
||||||
|
@listableObjectComponent('PublicationSearchResult', ViewMode.ListElement, Context.Any, 'custom')
|
||||||
|
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.Any, 'custom')
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-item-search-result-list-element',
|
||||||
|
// styleUrls: ['./item-search-result-list-element.component.scss'],
|
||||||
|
styleUrls: ['../../../../../../../../../app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.scss'],
|
||||||
|
// templateUrl: './item-search-result-list-element.component.html',
|
||||||
|
templateUrl: '../../../../../../../../../app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.html',
|
||||||
|
})
|
||||||
|
export class ItemSearchResultListElementComponent extends BaseComponent {
|
||||||
|
}
|
@@ -0,0 +1,20 @@
|
|||||||
|
import { listableObjectComponent } from '../../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||||
|
import { ViewMode } from '../../../../../../../app/core/shared/view-mode.model';
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { Context } from '../../../../../../../app/core/shared/context.model';
|
||||||
|
import { ItemSearchResult } from '../../../../../../../app/shared/object-collection/shared/item-search-result.model';
|
||||||
|
import {
|
||||||
|
PublicationSidebarSearchListElementComponent as BaseComponent
|
||||||
|
} from '../../../../../../../app/shared/object-list/sidebar-search-list-element/item-types/publication/publication-sidebar-search-list-element.component';
|
||||||
|
|
||||||
|
@listableObjectComponent('PublicationSearchResult', ViewMode.ListElement, Context.SideBarSearchModal, 'custom')
|
||||||
|
@listableObjectComponent('PublicationSearchResult', ViewMode.ListElement, Context.SideBarSearchModalCurrent, 'custom')
|
||||||
|
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.SideBarSearchModal, 'custom')
|
||||||
|
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.SideBarSearchModalCurrent, 'custom')
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-publication-sidebar-search-list-element',
|
||||||
|
// templateUrl: './publication-sidebar-search-list-element.component.html',
|
||||||
|
templateUrl: '../../../../../../../app/shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
|
||||||
|
})
|
||||||
|
export class PublicationSidebarSearchListElementComponent extends BaseComponent {
|
||||||
|
}
|
@@ -45,6 +45,12 @@ import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-b
|
|||||||
import { ResultsBackButtonModule } from '../../app/shared/results-back-button/results-back-button.module';
|
import { ResultsBackButtonModule } from '../../app/shared/results-back-button/results-back-button.module';
|
||||||
import { StartsWithDateComponent } from './app/shared/starts-with/date/starts-with-date.component';
|
import { StartsWithDateComponent } from './app/shared/starts-with/date/starts-with-date.component';
|
||||||
import { StartsWithTextComponent } from './app/shared/starts-with/text/starts-with-text.component';
|
import { StartsWithTextComponent } from './app/shared/starts-with/text/starts-with-text.component';
|
||||||
|
import {
|
||||||
|
PublicationSidebarSearchListElementComponent
|
||||||
|
} from './app/shared/object-list/sidebar-search-list-element/item-types/publication-sidebar-search-list-element.component';
|
||||||
|
import {
|
||||||
|
ItemSearchResultListElementComponent
|
||||||
|
} from './app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
|
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
|
||||||
@@ -61,6 +67,8 @@ const ENTRY_COMPONENTS = [
|
|||||||
CollectionDropdownComponent,
|
CollectionDropdownComponent,
|
||||||
StartsWithDateComponent,
|
StartsWithDateComponent,
|
||||||
StartsWithTextComponent,
|
StartsWithTextComponent,
|
||||||
|
PublicationSidebarSearchListElementComponent,
|
||||||
|
ItemSearchResultListElementComponent,
|
||||||
];
|
];
|
||||||
|
|
||||||
const DECLARATIONS = [
|
const DECLARATIONS = [
|
||||||
@@ -80,20 +88,20 @@ const DECLARATIONS = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
SharedModule,
|
SharedModule,
|
||||||
RootModule,
|
RootModule,
|
||||||
NavbarModule,
|
NavbarModule,
|
||||||
SharedBrowseByModule,
|
SharedBrowseByModule,
|
||||||
ResultsBackButtonModule,
|
ResultsBackButtonModule,
|
||||||
ItemPageModule,
|
ItemPageModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
],
|
],
|
||||||
declarations: DECLARATIONS,
|
declarations: DECLARATIONS,
|
||||||
providers: [
|
providers: [
|
||||||
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
|
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* This module is included in the main bundle that gets downloaded at first page load. So it should
|
* This module is included in the main bundle that gets downloaded at first page load. So it should
|
||||||
|
Reference in New Issue
Block a user