diff --git a/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.ts b/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.ts index 77116d97d3..ba88ce4e6d 100644 --- a/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.ts +++ b/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.ts @@ -14,8 +14,8 @@ import { SEARCH_CONFIG_SERVICE } from '../../my-dspace-page/my-dspace-page.compo import { AdminNotifySearchConfigurationService } from './config/admin-notify-search-configuration.service'; import { AdminNotifySearchFilterService } from './config/admin-notify-filter-service'; import { AdminNotifySearchFilterConfig } from './config/admin-notify-search-filter-config'; -import { ViewMode } from "../../core/shared/view-mode.model"; -import { Router } from "@angular/router"; +import { ViewMode } from '../../core/shared/view-mode.model'; +import { Router } from '@angular/router'; export const FILTER_SEARCH: InjectionToken = new InjectionToken('searchFilterService'); diff --git a/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.html b/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.html index bc703576b2..89b2285422 100644 --- a/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.html +++ b/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.html @@ -1,4 +1,4 @@ -
+
@@ -11,21 +11,21 @@ - + diff --git a/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.ts b/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.ts index 3ee86eb3ea..93eca302c1 100644 --- a/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.ts +++ b/src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.ts @@ -5,11 +5,11 @@ import { Context } from '../../../core/shared/context.model'; import { AdminNotifyMessage } from '../models/admin-notify-message.model'; import { tabulatableObjectsComponent -} from "../../../shared/object-collection/shared/tabulatable-objects/tabulatable-objects.decorator"; +} from '../../../shared/object-collection/shared/tabulatable-objects/tabulatable-objects.decorator'; import { TabulatableResultListElementsComponent -} from "../../../shared/object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component"; -import { PaginatedList } from "../../../core/data/paginated-list.model"; +} from '../../../shared/object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component'; +import { PaginatedList } from '../../../core/data/paginated-list.model'; @tabulatableObjectsComponent(AdminNotifySearchResult, ViewMode.Table, Context.CoarNotify) @Component({ @@ -18,8 +18,8 @@ import { PaginatedList } from "../../../core/data/paginated-list.model"; styleUrls: ['./admin-notify-search-result.component.scss'] }) export class AdminNotifySearchResultComponent extends TabulatableResultListElementsComponent, AdminNotifyMessage> implements OnInit{ - public indexableObjects: AdminNotifyMessage[]; + public notifyMessages: AdminNotifyMessage[]; ngOnInit() { - this.indexableObjects = this.objects.page.map(object => object.indexableObject); + this.notifyMessages = this.objects.page.map(object => object.indexableObject); } } diff --git a/src/app/core/shared/search/search.service.ts b/src/app/core/shared/search/search.service.ts index 9d85d0db5f..986352f29f 100644 --- a/src/app/core/shared/search/search.service.ts +++ b/src/app/core/shared/search/search.service.ts @@ -188,11 +188,11 @@ export class SearchService implements OnDestroy { } /** - * Method to directly attach the indexableObjects to search results, instead of using RemoteData. + * Method to directly attach the notifyMessages to search results, instead of using RemoteData. * For compatibility with the way the search was written originally * * @param sqr$: a SearchObjects RemotaData Observable without its - * indexableObjects attached + * notifyMessages attached * @param useCachedVersionIfAvailable If this is true, the request will only be sent if there's * no valid cached version. Defaults to true * @param reRequestOnStale Whether or not the request should automatically be re- @@ -205,7 +205,7 @@ export class SearchService implements OnDestroy { return sqr$.pipe( switchMap((resultsRd: RemoteData>) => { if (hasValue(resultsRd.payload) && isNotEmpty(resultsRd.payload.page)) { - // retrieve the indexableObjects for all search results on the page + // retrieve the notifyMessages for all search results on the page const searchResult$Array: Observable>[] = resultsRd.payload.page.map((result: SearchResult) => this.dspaceObjectService.findByHref(result._links.indexableObject.href, useCachedVersionIfAvailable, reRequestOnStale, ...linksToFollow as any).pipe( getFirstCompletedRemoteData(), @@ -227,7 +227,7 @@ export class SearchService implements OnDestroy { ); // Swap the original page in the remoteData with the new one, now that the results have the - // correct types, and all indexableObjects are directly attached. + // correct types, and all notifyMessages are directly attached. return observableCombineLatest(searchResult$Array).pipe( map((page: SearchResult[]) => { diff --git a/src/app/shared/object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component.ts b/src/app/shared/object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component.ts index 57b7c39771..c6b6b1bb5b 100644 --- a/src/app/shared/object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component.ts +++ b/src/app/shared/object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component.ts @@ -1,12 +1,11 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; -import { ListableObject } from "../listable-object.model"; -import { CollectionElementLinkType } from "../../collection-element-link.type"; -import { Context } from "../../../../core/shared/context.model"; -import { ViewMode } from "../../../../core/shared/view-mode.model"; -import { DSpaceObject } from "../../../../core/shared/dspace-object.model"; -import { DSONameService } from "../../../../core/breadcrumbs/dso-name.service"; -import { RemoteData } from "../../../../core/data/remote-data"; -import { PaginatedList } from "../../../../core/data/paginated-list.model"; +import { ListableObject } from '../listable-object.model'; +import { CollectionElementLinkType } from '../../collection-element-link.type'; +import { Context } from '../../../../core/shared/context.model'; +import { ViewMode } from '../../../../core/shared/view-mode.model'; +import { DSONameService } from '../../../../core/breadcrumbs/dso-name.service'; +import { RemoteData } from '../../../../core/data/remote-data'; +import { PaginatedList } from '../../../../core/data/paginated-list.model'; @Component({ selector: 'ds-objects-collection-tabulatable', diff --git a/src/app/shared/object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component.ts b/src/app/shared/object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component.ts index b3c83294b4..1c68718bd6 100644 --- a/src/app/shared/object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component.ts +++ b/src/app/shared/object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component.ts @@ -11,18 +11,18 @@ import { SimpleChanges, ViewChild } from '@angular/core'; -import { ListableObject } from "../listable-object.model"; -import { ViewMode } from "../../../../core/shared/view-mode.model"; -import { Context } from "../../../../core/shared/context.model"; -import { CollectionElementLinkType } from "../../collection-element-link.type"; -import { combineLatest, Observable, of as observableOf, Subscription } from "rxjs"; -import { ThemeService } from "../../../theme-support/theme.service"; -import { hasNoValue, hasValue, isNotEmpty } from "../../../empty.util"; -import { take } from "rxjs/operators"; -import { GenericConstructor } from "../../../../core/shared/generic-constructor"; -import { TabulatableObjectsDirective } from "./tabulatable-objects.directive"; -import { PaginatedList } from "../../../../core/data/paginated-list.model"; -import { getTabulatableObjectsComponent } from "./tabulatable-objects.decorator"; +import { ListableObject } from '../listable-object.model'; +import { ViewMode } from '../../../../core/shared/view-mode.model'; +import { Context } from '../../../../core/shared/context.model'; +import { CollectionElementLinkType } from '../../collection-element-link.type'; +import { combineLatest, Observable, of as observableOf, Subscription } from 'rxjs'; +import { ThemeService } from '../../../theme-support/theme.service'; +import { hasNoValue, hasValue, isNotEmpty } from '../../../empty.util'; +import { take } from 'rxjs/operators'; +import { GenericConstructor } from '../../../../core/shared/generic-constructor'; +import { TabulatableObjectsDirective } from './tabulatable-objects.directive'; +import { PaginatedList } from '../../../../core/data/paginated-list.model'; +import { getTabulatableObjectsComponent } from './tabulatable-objects.decorator'; @Component({ selector: 'ds-tabulatable-objects-loader', diff --git a/src/app/shared/object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component.ts b/src/app/shared/object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component.ts index 5aa2ca84ee..ed30e78c73 100644 --- a/src/app/shared/object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component.ts +++ b/src/app/shared/object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component.ts @@ -1,12 +1,12 @@ -import { Component, Inject, OnInit } from '@angular/core'; +import { Component, Inject } from '@angular/core'; import { AbstractTabulatableElementComponent -} from "../../../object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component"; -import { DSpaceObject } from "../../../../core/shared/dspace-object.model"; -import { TruncatableService } from "../../../truncatable/truncatable.service"; -import { DSONameService } from "../../../../core/breadcrumbs/dso-name.service"; -import { APP_CONFIG, AppConfig } from "../../../../../config/app-config.interface"; -import { PaginatedList } from "../../../../core/data/paginated-list.model"; +} from '../../../object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component'; +import { DSpaceObject } from '../../../../core/shared/dspace-object.model'; +import { TruncatableService } from '../../../truncatable/truncatable.service'; +import { DSONameService } from '../../../../core/breadcrumbs/dso-name.service'; +import { APP_CONFIG, AppConfig } from '../../../../../config/app-config.interface'; +import { PaginatedList } from '../../../../core/data/paginated-list.model'; @Component({ selector: 'ds-search-result-list-element', diff --git a/src/app/shared/object-table/object-table.component.ts b/src/app/shared/object-table/object-table.component.ts index c202c0b865..b046818707 100644 --- a/src/app/shared/object-table/object-table.component.ts +++ b/src/app/shared/object-table/object-table.component.ts @@ -1,14 +1,14 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core'; -import { ViewMode } from "../../core/shared/view-mode.model"; -import { PaginationComponentOptions } from "../pagination/pagination-component-options.model"; -import { SortDirection, SortOptions } from "../../core/cache/models/sort-options.model"; -import { CollectionElementLinkType } from "../object-collection/collection-element-link.type"; -import { Context } from "../../core/shared/context.model"; -import { BehaviorSubject} from "rxjs"; -import { RemoteData } from "../../core/data/remote-data"; -import { PaginatedList } from "../../core/data/paginated-list.model"; -import { ListableObject } from "../object-collection/shared/listable-object.model"; -import { fadeIn } from "../animations/fade"; +import { ViewMode } from '../../core/shared/view-mode.model'; +import { PaginationComponentOptions } from '../pagination/pagination-component-options.model'; +import { SortDirection, SortOptions } from '../../core/cache/models/sort-options.model'; +import { CollectionElementLinkType } from '../object-collection/collection-element-link.type'; +import { Context } from '../../core/shared/context.model'; +import { BehaviorSubject} from 'rxjs'; +import { RemoteData } from '../../core/data/remote-data'; +import { PaginatedList } from '../../core/data/paginated-list.model'; +import { ListableObject } from '../object-collection/shared/listable-object.model'; +import { fadeIn } from '../animations/fade'; @Component({ @@ -151,7 +151,7 @@ export class ObjectTableComponent { * Initialize the instance variables */ ngOnInit(): void { - console.log('table rendered') + console.log('table rendered'); } /** diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts index ce4cb1ed06..7e95ba74ee 100644 --- a/src/app/shared/shared.module.ts +++ b/src/app/shared/shared.module.ts @@ -290,13 +290,13 @@ import { ObjectTableComponent } from './object-table/object-table.component'; import { TabulatableObjectsLoaderComponent } from './object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component'; import { TabulatableObjectsDirective -} from "./object-collection/shared/tabulatable-objects/tabulatable-objects.directive"; +} from './object-collection/shared/tabulatable-objects/tabulatable-objects.directive'; import { AbstractTabulatableElementComponent -} from "./object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component"; +} from './object-collection/shared/objects-collection-tabulatable/objects-collection-tabulatable.component'; import { TabulatableResultListElementsComponent -} from "./object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component"; +} from './object-list/search-result-list-element/tabulatable-search-result/tabulatable-result-list-elements.component'; const MODULES = [ CommonModule,
-
{{object.queueTimeout}}
+
{{message.queueTimeout}}
-
{{object.source}}
+
{{message.source}}
-
{{object.target}}
+
{{message.target}}
-
{{object.coarNotifyType}}
+
{{message.coarNotifyType}}
-
{{object.queueStatusLabel}}
+
{{message.queueStatusLabel}}