mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
removed console logs and reinstated thumbnails
This commit is contained in:
@@ -233,10 +233,8 @@ export abstract class DataService<T extends CacheableObject> {
|
||||
getSucceededRemoteData(),
|
||||
getRemoteDataPayload(),
|
||||
mergeMap((oldVersion: T) => {
|
||||
console.log(oldVersion);
|
||||
const operations = this.comparator.diff(oldVersion, object);
|
||||
if (isNotEmpty(operations)) {
|
||||
console.log('operations', operations);
|
||||
this.objectCache.addPatch(object.self, operations);
|
||||
}
|
||||
return this.findByHref(object.self);
|
||||
|
@@ -357,7 +357,7 @@ export class RelationshipService extends DataService<Relationship> {
|
||||
);
|
||||
|
||||
update$.pipe(
|
||||
filter((relationshipRD: RemoteData<Relationship>) => relationshipRD.state === RemoteDataState.ResponsePending),
|
||||
filter((relationshipRD: RemoteData<Relationship>) => relationshipRD.state === RemoteDataState.RequestPending),
|
||||
take(1),
|
||||
).subscribe(() => {
|
||||
this.removeRelationshipItemsFromCache(item1);
|
||||
|
@@ -11,8 +11,5 @@ import { ItemMetadataRepresentationListElementComponent } from '../../../../shar
|
||||
/**
|
||||
* The component for displaying an item of the type Person as a metadata field
|
||||
*/
|
||||
export class PersonItemMetadataListElementComponent extends ItemMetadataRepresentationListElementComponent implements OnInit {
|
||||
ngOnInit(): void {
|
||||
console.log('this.metadataRepresentation', this.metadataRepresentation);
|
||||
}
|
||||
export class PersonItemMetadataListElementComponent extends ItemMetadataRepresentationListElementComponent {
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<div class="d-flex">
|
||||
<div class="person-thumbnail pr-2">
|
||||
<!-- <ds-thumbnail [thumbnail]="dso.getThumbnail() | async" [defaultImage]="'assets/images/orgunit-placeholder.svg'"></ds-thumbnail>-->
|
||||
<ds-thumbnail [thumbnail]="dso.getThumbnail() | async" [defaultImage]="'assets/images/orgunit-placeholder.svg'"></ds-thumbnail>
|
||||
</div>
|
||||
<div class="flex-grow-1">
|
||||
<ds-org-unit-input-suggestions [suggestions]="allSuggestions" [(ngModel)]="selectedName" (clickSuggestion)="select($event)"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<div class="d-flex">
|
||||
<div class="person-thumbnail pr-2">
|
||||
<!-- <ds-thumbnail [thumbnail]="dso.getThumbnail() | async" [defaultImage]="'assets/images/person-placeholder.svg'"></ds-thumbnail>-->
|
||||
<ds-thumbnail [thumbnail]="dso.getThumbnail() | async" [defaultImage]="'assets/images/person-placeholder.svg'"></ds-thumbnail>
|
||||
</div>
|
||||
<div class="flex-grow-1">
|
||||
<ds-person-input-suggestions [suggestions]="allSuggestions" [(ngModel)]="selectedName" (clickSuggestion)="select($event)" (submitSuggestion)="selectCustom($event)"></ds-person-input-suggestions>
|
||||
|
@@ -347,7 +347,6 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
|
||||
}
|
||||
);
|
||||
return observableCombineLatest(reorderables.map((rel: ReorderableRelationship) => {
|
||||
console.log(rel);
|
||||
if (rel.oldIndex !== rel.newIndex) {
|
||||
return this.relationshipService.updatePlace(rel);
|
||||
} else {
|
||||
|
@@ -51,7 +51,7 @@ export class ReorderableRelationship extends Reorderable {
|
||||
templateUrl: './existing-metadata-list-element.component.html',
|
||||
styleUrls: ['./existing-metadata-list-element.component.scss']
|
||||
})
|
||||
export class ExistingMetadataListElementComponent implements OnInit, OnChanges, OnDestroy {
|
||||
export class ExistingMetadataListElementComponent implements OnChanges, OnDestroy {
|
||||
@Input() listId: string;
|
||||
@Input() submissionItem: Item;
|
||||
@Input() reoRel: ReorderableRelationship;
|
||||
@@ -71,10 +71,6 @@ export class ExistingMetadataListElementComponent implements OnInit, OnChanges,
|
||||
) {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log('reoRel', this.reoRel);
|
||||
}
|
||||
|
||||
ngOnChanges() {
|
||||
const item$ = this.reoRel.useLeftItem ?
|
||||
this.reoRel.relationship.leftItem : this.reoRel.relationship.rightItem;
|
||||
|
Reference in New Issue
Block a user