mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
show entity time on item pages and in search results
This commit is contained in:
@@ -288,6 +288,7 @@
|
|||||||
},
|
},
|
||||||
"person": {
|
"person": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Person: ",
|
||||||
"jobtitle": "Job Title",
|
"jobtitle": "Job Title",
|
||||||
"lastname": "Last Name",
|
"lastname": "Last Name",
|
||||||
"firstname": "First Name",
|
"firstname": "First Name",
|
||||||
@@ -298,56 +299,83 @@
|
|||||||
"link": {
|
"link": {
|
||||||
"full": "Show all metadata"
|
"full": "Show all metadata"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Person"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Research Project: ",
|
||||||
"status": "Status",
|
"status": "Status",
|
||||||
"id": "ID",
|
"id": "ID",
|
||||||
"expectedcompletion": "Expected Completion",
|
"expectedcompletion": "Expected Completion",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"keyword": "Keywords"
|
"keyword": "Keywords"
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Research Project"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"orgunit": {
|
"orgunit": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Organizational Unit: ",
|
||||||
"dateestablished": "Date established",
|
"dateestablished": "Date established",
|
||||||
"city": "City",
|
"city": "City",
|
||||||
"country": "Country",
|
"country": "Country",
|
||||||
"id": "ID",
|
"id": "ID",
|
||||||
"description": "Description"
|
"description": "Description"
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Organizational Unit"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"journal": {
|
"journal": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Journal: ",
|
||||||
"issn": "ISSN",
|
"issn": "ISSN",
|
||||||
"publisher": "Publisher",
|
"publisher": "Publisher",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"editor": "Editor-in-Chief"
|
"editor": "Editor-in-Chief"
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Journal"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"journalvolume": {
|
"journalvolume": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Journal Volume: ",
|
||||||
"volume": "Volume",
|
"volume": "Volume",
|
||||||
"issuedate": "Issue Date",
|
"issuedate": "Issue Date",
|
||||||
"description": "Description"
|
"description": "Description"
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Journal Volume"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"journalissue": {
|
"journalissue": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Journal Issue: ",
|
||||||
"number": "Number",
|
"number": "Number",
|
||||||
"issuedate": "Issue Date",
|
"issuedate": "Issue Date",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"keyword": "Keywords",
|
"keyword": "Keywords",
|
||||||
"journal-title": "Journal Title",
|
"journal-title": "Journal Title",
|
||||||
"journal-issn": "Journal ISSN"
|
"journal-issn": "Journal ISSN"
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Journal Issue"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publication": {
|
"publication": {
|
||||||
"page": {
|
"page": {
|
||||||
|
"titleprefix": "Publication: ",
|
||||||
"journal-title": "Journal Title",
|
"journal-title": "Journal Title",
|
||||||
"journal-issn": "Journal ISSN",
|
"journal-issn": "Journal ISSN",
|
||||||
"volume-title": "Volume Title"
|
"volume-title": "Volume Title"
|
||||||
|
},
|
||||||
|
"listelement": {
|
||||||
|
"badge": "Publication"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nav": {
|
"nav": {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
|
<div *ngIf="item.firstMetadataValue('relationship.type') as type">
|
||||||
|
{{ type.toLowerCase() + '.page.titleprefix' | translate }}
|
||||||
|
</div>
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(fields)"></ds-metadata-values>
|
<ds-metadata-values [mdValues]="item?.allMetadata(fields)"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
{{'journalissue.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
{{'journalvolume.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
{{'journal.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(['orgunit.identifier.name'])"></ds-metadata-values>
|
{{'orgunit.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['orgunit.identifier.name'])"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(['dc.contributor.author'])"></ds-metadata-values>
|
{{'person.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['dc.contributor.author'])"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<h2 class="item-page-title-field">
|
<h2 class="item-page-title-field">
|
||||||
<ds-metadata-values [mdValues]="item?.allMetadata(['project.identifier.name'])"></ds-metadata-values>
|
{{'project.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['project.identifier.name'])"></ds-metadata-values>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
<ds-item-page-title-field [item]="item"></ds-item-page-title-field>
|
<h2 class="item-page-title-field">
|
||||||
|
{{'publication.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="item?.allMetadata(['dc.title'])"></ds-metadata-values>
|
||||||
|
</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<ds-metadata-field-wrapper>
|
<ds-metadata-field-wrapper>
|
||||||
|
@@ -31,7 +31,7 @@ export class SearchResponseParsingService implements ResponseParsingService {
|
|||||||
|
|
||||||
const dsoSelfLinks = payload._embedded.objects
|
const dsoSelfLinks = payload._embedded.objects
|
||||||
.filter((object) => hasValue(object._embedded))
|
.filter((object) => hasValue(object._embedded))
|
||||||
.map((object) => object._embedded.dspaceObject)
|
.map((object) => object._embedded.indexableObject)
|
||||||
// we don't need embedded collections, bitstreamformats, etc for search results.
|
// we don't need embedded collections, bitstreamformats, etc for search results.
|
||||||
// And parsing them all takes up a lot of time. Throw them away to improve performance
|
// And parsing them all takes up a lot of time. Throw them away to improve performance
|
||||||
// until objs until partial results are supported by the rest api
|
// until objs until partial results are supported by the rest api
|
||||||
|
@@ -1 +1,4 @@
|
|||||||
|
<div *ngIf="object && object.dspaceObject && object.dspaceObject.firstMetadataValue('relationship.type') as type">
|
||||||
|
<span class="badge badge-light">{{ type.toLowerCase() + '.listelement.badge' | translate }}</span>
|
||||||
|
</div>
|
||||||
<ds-item-type-switcher [object]="object" [viewMode]="viewMode"></ds-item-type-switcher>
|
<ds-item-type-switcher [object]="object" [viewMode]="viewMode"></ds-item-type-switcher>
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
|
||||||
import { Item } from '../../../../core/shared/item.model';
|
import { Item } from '../../../../core/shared/item.model';
|
||||||
import { focusBackground } from '../../../animations/focus';
|
import { focusBackground } from '../../../animations/focus';
|
||||||
|
import { hasValue } from '../../../empty.util';
|
||||||
|
|
||||||
import { renderElementsFor } from '../../../object-collection/shared/dso-element-decorator';
|
import { renderElementsFor } from '../../../object-collection/shared/dso-element-decorator';
|
||||||
import { ItemSearchResult } from '../../../object-collection/shared/item-search-result.model';
|
import { ItemSearchResult } from '../../../object-collection/shared/item-search-result.model';
|
||||||
@@ -19,4 +21,5 @@ import { ItemViewMode } from '../../../items/item-type-decorator';
|
|||||||
@renderElementsFor(ItemSearchResult, SetViewMode.List)
|
@renderElementsFor(ItemSearchResult, SetViewMode.List)
|
||||||
export class ItemSearchResultListElementComponent extends SearchResultListElementComponent<ItemSearchResult, Item> {
|
export class ItemSearchResultListElementComponent extends SearchResultListElementComponent<ItemSearchResult, Item> {
|
||||||
viewMode = ItemViewMode.Element;
|
viewMode = ItemViewMode.Element;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user