41650: moved files and made small full item page changes

This commit is contained in:
Lotte Hofstede
2017-05-23 16:44:05 +02:00
parent 57f42549cd
commit 145b080854
29 changed files with 71 additions and 31 deletions

View File

@@ -0,0 +1,33 @@
import { Component, OnInit } from '@angular/core';
import { Item } from "../../core/shared/item.model";
import { RemoteData } from "../../core/data/remote-data";
import { Observable } from "rxjs";
import { Bitstream } from "../../core/shared/bitstream.model";
import { ItemPageComponent } from "../simple/item-page.component";
import { Metadatum } from "../../core/shared/metadatum.model";
/**
* This component renders a simple item page.
* The route parameter 'id' is used to request the item it represents.
* All fields of the item that should be displayed, are defined in its template.
*/
@Component({
selector: 'ds-full-item-page',
styleUrls: ['./full-item-page.component.css'],
templateUrl: './full-item-page.component.html',
})
export class FullItemPageComponent extends ItemPageComponent {
metadata: Array<Metadatum>;
universalInit() {
}
initialize(params) {
super.initialize(params);
this.metadata = this.item.payload.flatMap(i => i.metadata);
}
}