diff --git a/config/environment.default.js b/config/environment.default.js
index cddd204eea..b3f0756378 100644
--- a/config/environment.default.js
+++ b/config/environment.default.js
@@ -2,10 +2,10 @@ module.exports = {
// The REST API server settings.
"rest": {
"ssl": false,
- "address": "localhost",
- "port": 3000,
+ "address": "dspace7.4science.it",
+ "port": 80,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
- "nameSpace": "/api"
+ "nameSpace": "/dspace-spring-rest/api"
},
// Angular2 UI server settings.
"ui": {
diff --git a/resources/i18n/en.json b/resources/i18n/en.json
index 82a51f2ebd..9714640287 100644
--- a/resources/i18n/en.json
+++ b/resources/i18n/en.json
@@ -7,7 +7,12 @@
"collection": {
"page": {
"news": "News",
- "license": "License"
+ "license": "License",
+ "browse": {
+ "recent": {
+ "head": "Recent Submissions"
+ }
+ }
}
},
"community": {
@@ -45,6 +50,7 @@
},
"pagination": {
"results-per-page": "Results Per Page",
+ "sort-direction": "Sort Options",
"showing": {
"label": "Now showing items ",
"detail": "{{ range }} of {{ total }}"
diff --git a/src/app/collection-page/collection-page.component.html b/src/app/collection-page/collection-page.component.html
index 64520d3e84..a8345ef23d 100644
--- a/src/app/collection-page/collection-page.component.html
+++ b/src/app/collection-page/collection-page.component.html
@@ -1,32 +1,44 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
+
+
+
+
+
{{'collection.page.browse.recent.head' | translate}}
+
+
diff --git a/src/app/collection-page/collection-page.component.ts b/src/app/collection-page/collection-page.component.ts
index a7148cbc74..f636f9dd51 100644
--- a/src/app/collection-page/collection-page.component.ts
+++ b/src/app/collection-page/collection-page.component.ts
@@ -1,4 +1,7 @@
-import { Component, OnDestroy, OnInit } from '@angular/core';
+import {
+ ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy,
+ OnInit
+} from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { Collection } from "../core/shared/collection.model";
@@ -6,36 +9,93 @@ import { Bitstream } from "../core/shared/bitstream.model";
import { RemoteData } from "../core/data/remote-data";
import { CollectionDataService } from "../core/data/collection-data.service";
import { Subscription } from "rxjs/Subscription";
+import { ItemDataService } from "../core/data/item-data.service";
+import { Item } from "../core/shared/item.model";
+import { SortOptions, SortDirection } from "../core/cache/models/sort-options.model";
+import { PaginationComponentOptions } from "../shared/pagination/pagination-component-options.model";
+import { Observable } from "rxjs/Observable";
+import { hasValue } from "../shared/empty.util";
@Component({
selector: 'ds-collection-page',
styleUrls: ['./collection-page.component.css'],
templateUrl: './collection-page.component.html',
+ changeDetection: ChangeDetectionStrategy.OnPush
})
export class CollectionPageComponent implements OnInit, OnDestroy {
collectionData: RemoteData