mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
46063: clean up
This commit is contained in:
@@ -40,7 +40,7 @@ export class SearchService implements OnDestroy {
|
||||
totalPages = 5;
|
||||
mockedHighlights: string[] = new Array(
|
||||
'This is a <em>sample abstract</em>.',
|
||||
'This is a sample abstractabstractabstractabstractabstractabstractabstractabstract. But, to fill up some space, here\'s <em>"Hello"</em> in several different languages : ',
|
||||
'This is a sample abstract. But, to fill up some space, here\'s <em>"Hello"</em> in several different languages : ',
|
||||
'This is a Sample HTML webpage including several <em>images</em> and styles (CSS).',
|
||||
'This is <em>really</em> just a sample abstract. But, Í’vé thrown ïn a cõuple of spëciâl charactèrs för êxtrå fuñ!',
|
||||
'This abstract is <em>really quite great</em>',
|
||||
|
@@ -38,7 +38,7 @@ export function getBase() {
|
||||
}
|
||||
|
||||
export function getMetaReducers(config: GlobalConfig): Array<MetaReducer<AppState>> {
|
||||
const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers];
|
||||
const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers, storeFreeze];
|
||||
return config.debug ? [...metaReducers, ...debugMetaReducers] : metaReducers;
|
||||
}
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
(<span *ngIf="object.findMetadata('dc.publisher')" class="item-list-publisher">{{object.findMetadata("dc.publisher")}}, </span><span
|
||||
*ngIf="object.findMetadata('dc.date.issued')" class="item-list-date">{{object.findMetadata("dc.date.issued")}}</span>)
|
||||
</span>
|
||||
<div *ngIf="item.findMetadata('dc.description.abstract')" class="item-list-abstract">
|
||||
{{item.findMetadata("dc.description.abstract") | dsTruncate:[200] }}
|
||||
<div *ngIf="object.findMetadata('dc.description.abstract')" class="item-list-abstract">
|
||||
{{object.findMetadata("dc.description.abstract") | dsTruncate:[200] }}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,12 +1,10 @@
|
||||
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
|
||||
import { TruncatableService } from '../truncatable.service';
|
||||
import { cardExpand } from '../../animations/card-expand';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-truncatable-part',
|
||||
templateUrl: './truncatable-part.component.html',
|
||||
styleUrls: ['./truncatable-part.component.scss'],
|
||||
animations: [cardExpand]
|
||||
styleUrls: ['./truncatable-part.component.scss']
|
||||
})
|
||||
|
||||
export class TruncatablePartComponent implements OnInit, OnDestroy {
|
||||
|
@@ -2,8 +2,6 @@ import {
|
||||
Component, Input
|
||||
} from '@angular/core';
|
||||
import { TruncatableService } from './truncatable.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { cardExpand } from '../animations/card-expand';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-truncatable',
|
||||
|
10
src/app/typings.d.ts
vendored
10
src/app/typings.d.ts
vendored
@@ -82,13 +82,3 @@ declare module '*.json' {
|
||||
}
|
||||
|
||||
declare module 'reflect-metadata';
|
||||
|
||||
interface IShaveOptions {
|
||||
classname?: string,
|
||||
character?: string
|
||||
}
|
||||
|
||||
declare module 'shave' {
|
||||
export default function shave(selector: string | Node, maxHeight: number, options?: IShaveOptions): void;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user