mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Made community-list-element.component and collection-list-element.component themeable.
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
|
import {Collection} from '../../../../../../app/core/shared/collection.model';
|
||||||
|
import {
|
||||||
|
CollectionListElementComponent as BaseComponent
|
||||||
|
} from '../../../../../../app/shared/object-list/collection-list-element/collection-list-element.component';
|
||||||
|
import {ViewMode} from '../../../../../../app/core/shared/view-mode.model';
|
||||||
|
import {
|
||||||
|
listableObjectComponent
|
||||||
|
} from '../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||||
|
import {Context} from '../../../../../../app/core/shared/context.model';
|
||||||
|
|
||||||
|
@listableObjectComponent(Collection, ViewMode.ListElement, Context.Any, 'custom')
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-collection-list-element',
|
||||||
|
// styleUrls: ['./collection-list-element.component.scss'],
|
||||||
|
styleUrls: ['../../../../../../app/shared/object-list/collection-list-element/collection-list-element.component.scss'],
|
||||||
|
// templateUrl: './collection-list-element.component.html'
|
||||||
|
templateUrl: '../../../../../../app/shared/object-list/collection-list-element/collection-list-element.component.html'
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* Component representing list element for a collection
|
||||||
|
*/
|
||||||
|
export class CollectionListElementComponent extends BaseComponent {}
|
||||||
|
|
||||||
|
|
@@ -0,0 +1,23 @@
|
|||||||
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
|
import { Community } from '../../../../../../app/core/shared/community.model';
|
||||||
|
import {
|
||||||
|
CommunityListElementComponent as BaseComponent
|
||||||
|
} from '../../../../../../app/shared/object-list/community-list-element/community-list-element.component';
|
||||||
|
import { ViewMode } from '../../../../../../app/core/shared/view-mode.model';
|
||||||
|
import { listableObjectComponent } from '../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
|
||||||
|
import {Context} from '../../../../../../app/core/shared/context.model';
|
||||||
|
|
||||||
|
@listableObjectComponent(Community, ViewMode.ListElement, Context.Any, 'custom')
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-community-list-element',
|
||||||
|
// styleUrls: ['./community-list-element.component.scss'],
|
||||||
|
styleUrls: ['../../../../../../app/shared/object-list/community-list-element/community-list-element.component.scss'],
|
||||||
|
// templateUrl: './community-list-element.component.html'
|
||||||
|
templateUrl: '../../../../../../app/shared/object-list/community-list-element/community-list-element.component.html'
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* Component representing a list element for a community
|
||||||
|
*/
|
||||||
|
export class CommunityListElementComponent extends BaseComponent {}
|
@@ -40,6 +40,10 @@ import {
|
|||||||
EditItemSelectorComponent
|
EditItemSelectorComponent
|
||||||
} from './app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component';
|
} from './app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component';
|
||||||
|
|
||||||
|
import { CommunityListElementComponent } from './app/shared/object-list/community-list-element/community-list-element.component';
|
||||||
|
import { CollectionListElementComponent} from './app/shared/object-list/collection-list-element/collection-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.
|
||||||
* This will ensure that decorator gets picked up when the app loads
|
* This will ensure that decorator gets picked up when the app loads
|
||||||
@@ -50,6 +54,9 @@ const ENTRY_COMPONENTS = [
|
|||||||
JournalVolumeComponent,
|
JournalVolumeComponent,
|
||||||
PublicationComponent,
|
PublicationComponent,
|
||||||
UntypedItemComponent,
|
UntypedItemComponent,
|
||||||
|
|
||||||
|
CommunityListElementComponent,
|
||||||
|
CollectionListElementComponent,
|
||||||
];
|
];
|
||||||
|
|
||||||
const DECLARATIONS = [
|
const DECLARATIONS = [
|
||||||
|
Reference in New Issue
Block a user