mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Issues 252,253: Browse by title and browse by metadata (author)
This commit is contained in:
27
src/app/shared/browse-by/browse-by.component.ts
Normal file
27
src/app/shared/browse-by/browse-by.component.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { RemoteData } from '../../core/data/remote-data';
|
||||
import { PaginatedList } from '../../core/data/paginated-list';
|
||||
import { PaginationComponentOptions } from '../pagination/pagination-component-options.model';
|
||||
import { SortOptions } from '../../core/cache/models/sort-options.model';
|
||||
import { fadeIn, fadeInOut } from '../animations/fade';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Item } from '../../core/shared/item.model';
|
||||
import { ListableObject } from '../object-collection/shared/listable-object.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-browse-by',
|
||||
styleUrls: ['./browse-by.component.scss'],
|
||||
templateUrl: './browse-by.component.html',
|
||||
animations: [
|
||||
fadeIn,
|
||||
fadeInOut
|
||||
]
|
||||
})
|
||||
export class BrowseByComponent {
|
||||
@Input() title: string;
|
||||
@Input() objects$: Observable<RemoteData<PaginatedList<ListableObject>>>;
|
||||
@Input() paginationConfig: PaginationComponentOptions;
|
||||
@Input() sortConfig: SortOptions;
|
||||
@Input() currentUrl: string;
|
||||
query: string;
|
||||
}
|
Reference in New Issue
Block a user