mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Use DSONameService to display DSpaceObjects names
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<tbody>
|
||||
<tr *ngFor="let collection of collectionsRD?.payload?.page">
|
||||
<td><input class="collection-checkbox" [ngModel]="getSelected(collection.id) | async" (change)="switch(collection.id)" type="checkbox" name="{{collection.id}}"></td>
|
||||
<td><a [routerLink]="['/collections', collection.id]">{{collection.name}}</a></td>
|
||||
<td><a [routerLink]="['/collections', collection.id]">{{ dsoNameService.getName(collection) }}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@@ -0,0 +1,3 @@
|
||||
table tr th:first-of-type, table tr td:first-of-type, {
|
||||
width: 1rem !important;
|
||||
}
|
@@ -4,10 +4,12 @@ import { ObjectSelectComponent } from '../object-select/object-select.component'
|
||||
import { isNotEmpty } from '../../empty.util';
|
||||
import { ObjectSelectService } from '../object-select.service';
|
||||
import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service';
|
||||
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-collection-select',
|
||||
templateUrl: './collection-select.component.html'
|
||||
templateUrl: './collection-select.component.html',
|
||||
styleUrls: ['./collection-select.component.scss'],
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -15,8 +17,11 @@ import { AuthorizationDataService } from '../../../core/data/feature-authorizati
|
||||
*/
|
||||
export class CollectionSelectComponent extends ObjectSelectComponent<Collection> {
|
||||
|
||||
constructor(protected objectSelectService: ObjectSelectService,
|
||||
protected authorizationService: AuthorizationDataService) {
|
||||
constructor(
|
||||
protected objectSelectService: ObjectSelectService,
|
||||
protected authorizationService: AuthorizationDataService,
|
||||
public dsoNameService: DSONameService,
|
||||
) {
|
||||
super(objectSelectService, authorizationService);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user