Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from atmire/w2p-32260_implement-item-view-pages
Browse files Browse the repository at this point in the history
author & simple-item-view.component
  • Loading branch information
DylanMeeus committed Apr 8, 2016
2 parents 823e62c + 106a243 commit 9127bef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
7 changes: 7 additions & 0 deletions src/app/dspace/components/item/authors.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import {DSpaceDirectory} from '../../dspace.directory';

import {DSpaceService} from '../../dspace.service';

/**
* Component for the authors of the simple-item-view.
* This component gets a list of all metadata, and filters for the appropriate date to be shown.
*/

@Component({
selector: 'item-authors',
inputs: ['metadataObject'],
Expand All @@ -23,6 +28,8 @@ export class AuthorsComponent {
*
* TODO: replace object with inheritance model. e.g. item extends dspaceObject
*/


item: Object;
public metadataObject : String;

Expand Down
17 changes: 1 addition & 16 deletions src/app/dspace/components/simple-item-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class SimpleItemViewComponent {
item: Object;


authors: Object;

/**
*
* @param params
Expand All @@ -91,25 +91,10 @@ export class SimpleItemViewComponent {
directory.loadObj('item', params.get("id")).then(item => {
this.item = item;
console.log(item);
this.parseItem();
breadcrumb.visit(this.item);
});
}


parseItem() : void{
// Split our item into multiple groups?
console.log("parsing item");
for(var x in this.item)
{
console.log("x: " + x);
for(var y in x)
{
console.log("y: " + y.value);
}
}

}
}


Expand Down

0 comments on commit 9127bef

Please sign in to comment.