mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
#0-remove
This commit is contained in:
@@ -12,3 +12,6 @@ trim_trailing_whitespace = true
|
|||||||
[*.md]
|
[*.md]
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[*.ts]
|
||||||
|
quote_type = single
|
||||||
|
@@ -16,7 +16,7 @@ import { hasValue } from '../../empty.util';
|
|||||||
templateUrl: './grid-thumbnail.component.html',
|
templateUrl: './grid-thumbnail.component.html',
|
||||||
})
|
})
|
||||||
export class GridThumbnailComponent implements OnInit {
|
export class GridThumbnailComponent implements OnInit {
|
||||||
@Input() thumbnail: string | Observable<RemoteData<Bitstream>>;
|
@Input() thumbnail: Bitstream | Observable<RemoteData<Bitstream>>;
|
||||||
|
|
||||||
data: any = {};
|
data: any = {};
|
||||||
|
|
||||||
@@ -39,9 +39,7 @@ export class GridThumbnailComponent implements OnInit {
|
|||||||
this.checkThumbnail(thumbnailRD.payload);
|
this.checkThumbnail(thumbnailRD.payload);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (this.thumbnail) {
|
this.checkThumbnail(this.thumbnail);
|
||||||
this.src$.next(this.thumbnail);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -169,6 +169,7 @@ export class ObjectGridComponent implements OnInit {
|
|||||||
this._objects$).pipe(map(([nbColumns, objects]) => {
|
this._objects$).pipe(map(([nbColumns, objects]) => {
|
||||||
if (hasValue(objects) && hasValue(objects.payload) && hasValue(objects.payload.page)) {
|
if (hasValue(objects) && hasValue(objects.payload) && hasValue(objects.payload.page)) {
|
||||||
const page = objects.payload.page;
|
const page = objects.payload.page;
|
||||||
|
console.log(page)
|
||||||
|
|
||||||
const result = [];
|
const result = [];
|
||||||
|
|
||||||
|
@@ -43,9 +43,7 @@ export class SearchResultGridElementComponent<T extends SearchResult<K>, K exten
|
|||||||
*/
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if (hasValue(this.object)) {
|
if (hasValue(this.object)) {
|
||||||
console.log(this.object)
|
|
||||||
this.dso = this.object.indexableObject;
|
this.dso = this.object.indexableObject;
|
||||||
console.log('this.dso',this.dso)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user