mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
67611: Fixed radio button bug + hide pagintion details
This commit is contained in:
@@ -16,10 +16,13 @@
|
|||||||
<div id="external-source-entry-entities" class="mb-2">
|
<div id="external-source-entry-entities" class="mb-2">
|
||||||
<h5 class="font-weight-bold">{{ ('submission.sections.describe.relationship-lookup.external-source.import-modal.entities' | translate) }}</h5>
|
<h5 class="font-weight-bold">{{ ('submission.sections.describe.relationship-lookup.external-source.import-modal.entities' | translate) }}</h5>
|
||||||
|
|
||||||
<ds-search-results [searchResults]="(localEntitiesRD$ | async)"
|
<ds-search-results *ngIf="(localEntitiesRD$ | async)?.payload?.page?.length > 0"
|
||||||
|
[searchResults]="(localEntitiesRD$ | async)"
|
||||||
[sortConfig]="this.lookupRelationService.searchConfig?.sort"
|
[sortConfig]="this.lookupRelationService.searchConfig?.sort"
|
||||||
[searchConfig]="this.lookupRelationService.searchConfig"
|
[searchConfig]="this.lookupRelationService.searchConfig"
|
||||||
[selectable]="true"
|
[selectable]="true"
|
||||||
|
[disableHeader]="true"
|
||||||
|
[hidePaginationDetail]="true"
|
||||||
[selectionConfig]="{ repeatable: false, listId: entityListId }"
|
[selectionConfig]="{ repeatable: false, listId: entityListId }"
|
||||||
[linkType]="linkTypes.ExternalLink"
|
[linkType]="linkTypes.ExternalLink"
|
||||||
[context]="context"
|
[context]="context"
|
||||||
|
@@ -94,7 +94,7 @@ export class ExternalSourceEntryImportModalComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.uri = Metadata.first(this.externalSourceEntry.metadata, 'dc.identifier.uri');
|
this.uri = Metadata.first(this.externalSourceEntry.metadata, 'dc.identifier.uri');
|
||||||
this.searchOptions = Object.assign(new PaginatedSearchOptions({ query: this.externalSourceEntry.value }));
|
this.searchOptions = Object.assign(new PaginatedSearchOptions({ query: 'sarah' }));
|
||||||
this.localEntitiesRD$ = this.lookupRelationService.getLocalResults(this.relationship, this.searchOptions);
|
this.localEntitiesRD$ = this.lookupRelationService.getLocalResults(this.relationship, this.searchOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,8 +117,10 @@ export class ExternalSourceEntryImportModalComponent implements OnInit {
|
|||||||
* @param event
|
* @param event
|
||||||
*/
|
*/
|
||||||
deselectEntity(event) {
|
deselectEntity(event) {
|
||||||
|
if (this.selectedImportType === ImportType.LocalEntity) {
|
||||||
this.selectedImportType = ImportType.None;
|
this.selectedImportType = ImportType.None;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Selected a local entity
|
* Selected a local entity
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
[hideGear]="hideGear"
|
[hideGear]="hideGear"
|
||||||
[linkType]="linkType"
|
[linkType]="linkType"
|
||||||
[context]="context"
|
[context]="context"
|
||||||
|
[hidePaginationDetail]="hidePaginationDetail"
|
||||||
(paginationChange)="onPaginationChange($event)"
|
(paginationChange)="onPaginationChange($event)"
|
||||||
(pageChange)="onPageChange($event)"
|
(pageChange)="onPageChange($event)"
|
||||||
(pageSizeChange)="onPageSizeChange($event)"
|
(pageSizeChange)="onPageSizeChange($event)"
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
[hideGear]="hideGear"
|
[hideGear]="hideGear"
|
||||||
[linkType]="linkType"
|
[linkType]="linkType"
|
||||||
[context]="context"
|
[context]="context"
|
||||||
|
[hidePaginationDetail]="hidePaginationDetail"
|
||||||
(paginationChange)="onPaginationChange($event)"
|
(paginationChange)="onPaginationChange($event)"
|
||||||
(pageChange)="onPageChange($event)"
|
(pageChange)="onPageChange($event)"
|
||||||
(pageSizeChange)="onPageSizeChange($event)"
|
(pageSizeChange)="onPageSizeChange($event)"
|
||||||
@@ -37,6 +39,7 @@
|
|||||||
[hideGear]="hideGear"
|
[hideGear]="hideGear"
|
||||||
[linkType]="linkType"
|
[linkType]="linkType"
|
||||||
[context]="context"
|
[context]="context"
|
||||||
|
[hidePaginationDetail]="hidePaginationDetail"
|
||||||
*ngIf="(currentMode$ | async) === viewModeEnum.DetailedListElement">
|
*ngIf="(currentMode$ | async) === viewModeEnum.DetailedListElement">
|
||||||
</ds-object-detail>
|
</ds-object-detail>
|
||||||
|
|
||||||
|
@@ -63,6 +63,11 @@ export class ObjectCollectionComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
@Input() context: Context;
|
@Input() context: Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Option for hiding the pagination detail
|
||||||
|
*/
|
||||||
|
@Input() hidePaginationDetail = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the page info of the list
|
* the page info of the list
|
||||||
*/
|
*/
|
||||||
|
@@ -89,7 +89,7 @@ export class ObjectDetailComponent {
|
|||||||
/**
|
/**
|
||||||
* Option for hiding the pagination detail
|
* Option for hiding the pagination detail
|
||||||
*/
|
*/
|
||||||
public hidePaginationDetail = true;
|
@Input() hidePaginationDetail = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An event fired when the page is changed.
|
* An event fired when the page is changed.
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
[sortOptions]="sortConfig"
|
[sortOptions]="sortConfig"
|
||||||
[hideGear]="hideGear"
|
[hideGear]="hideGear"
|
||||||
[hidePagerWhenSinglePage]="hidePagerWhenSinglePage"
|
[hidePagerWhenSinglePage]="hidePagerWhenSinglePage"
|
||||||
|
[hidePaginationDetail]="hidePaginationDetail"
|
||||||
(pageChange)="onPageChange($event)"
|
(pageChange)="onPageChange($event)"
|
||||||
(pageSizeChange)="onPageSizeChange($event)"
|
(pageSizeChange)="onPageSizeChange($event)"
|
||||||
(sortDirectionChange)="onSortDirectionChange($event)"
|
(sortDirectionChange)="onSortDirectionChange($event)"
|
||||||
|
@@ -69,6 +69,11 @@ export class ObjectGridComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
@Input() context: Context;
|
@Input() context: Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Option for hiding the pagination detail
|
||||||
|
*/
|
||||||
|
@Input() hidePaginationDetail = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Behavior subject to output the current listable objects
|
* Behavior subject to output the current listable objects
|
||||||
*/
|
*/
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
[sortOptions]="sortConfig"
|
[sortOptions]="sortConfig"
|
||||||
[hideGear]="hideGear"
|
[hideGear]="hideGear"
|
||||||
[hidePagerWhenSinglePage]="hidePagerWhenSinglePage"
|
[hidePagerWhenSinglePage]="hidePagerWhenSinglePage"
|
||||||
|
[hidePaginationDetail]="hidePaginationDetail"
|
||||||
(pageChange)="onPageChange($event)"
|
(pageChange)="onPageChange($event)"
|
||||||
(pageSizeChange)="onPageSizeChange($event)"
|
(pageSizeChange)="onPageSizeChange($event)"
|
||||||
(sortDirectionChange)="onSortDirectionChange($event)"
|
(sortDirectionChange)="onSortDirectionChange($event)"
|
||||||
|
@@ -74,6 +74,11 @@ export class ObjectListComponent {
|
|||||||
*/
|
*/
|
||||||
@Input() context: Context;
|
@Input() context: Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Option for hiding the pagination detail
|
||||||
|
*/
|
||||||
|
@Input() hidePaginationDetail = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current listable objects
|
* The current listable objects
|
||||||
*/
|
*/
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<div *ngIf="currentPageState == undefined || currentPageState == currentPage">
|
<div *ngIf="currentPageState == undefined || currentPageState == currentPage">
|
||||||
<div class="pagination-masked clearfix top">
|
<div *ngIf="(!hidePaginationDetail && collectionSize > 0) || !hideGear" class="pagination-masked clearfix top">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div *ngIf="!hidePaginationDetail && collectionSize > 0" class="col-auto pagination-info">
|
<div *ngIf="!hidePaginationDetail && collectionSize > 0" class="col-auto pagination-info">
|
||||||
<span class="align-middle hidden-xs-down">{{ 'pagination.showing.label' | translate }}</span>
|
<span class="align-middle hidden-xs-down">{{ 'pagination.showing.label' | translate }}</span>
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
[selectable]="selectable"
|
[selectable]="selectable"
|
||||||
[selectionConfig]="selectionConfig"
|
[selectionConfig]="selectionConfig"
|
||||||
[context]="context"
|
[context]="context"
|
||||||
|
[hidePaginationDetail]="hidePaginationDetail"
|
||||||
(deselectObject)="deselectObject.emit($event)"
|
(deselectObject)="deselectObject.emit($event)"
|
||||||
(selectObject)="selectObject.emit($event)"
|
(selectObject)="selectObject.emit($event)"
|
||||||
>
|
>
|
||||||
|
@@ -67,6 +67,11 @@ export class SearchResultsComponent {
|
|||||||
|
|
||||||
@Input() context: Context;
|
@Input() context: Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Option for hiding the pagination detail
|
||||||
|
*/
|
||||||
|
@Input() hidePaginationDetail = false;
|
||||||
|
|
||||||
@Input() selectionConfig: {repeatable: boolean, listId: string};
|
@Input() selectionConfig: {repeatable: boolean, listId: string};
|
||||||
|
|
||||||
@Output() deselectObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
|
@Output() deselectObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
|
||||||
|
Reference in New Issue
Block a user