fixed merging issues
This commit is contained in:
@@ -11,7 +11,7 @@ import { HttpHeaders } from '@angular/comm
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { CustomAuthorsListResponse } from '../model/models';
|
||||
import { CustomAuthorsListResponse } from '../model/custom-authors-list-response';
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
export interface TopicCount {
|
||||
/**
|
||||
* The topic display name.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The number of occurrences.
|
||||
*/
|
||||
count?: number;
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { TopicsByYear } from './topicsByYear';
|
||||
|
||||
|
||||
export interface TopicsByTime {
|
||||
/**
|
||||
* Topics grouped by year.
|
||||
*/
|
||||
elements?: Array<TopicsByYear>;
|
||||
/**
|
||||
* The number of years.
|
||||
*/
|
||||
total?: number;
|
||||
}
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { TopicCount } from './topicCount';
|
||||
|
||||
|
||||
export interface TopicsByYear {
|
||||
/**
|
||||
* The publication year.
|
||||
*/
|
||||
year: number;
|
||||
/**
|
||||
* The number of works in this year.
|
||||
*/
|
||||
publication_count?: number;
|
||||
/**
|
||||
* The topics in this year.
|
||||
*/
|
||||
topics?: Array<TopicCount>;
|
||||
/**
|
||||
* The primary topics in this year.
|
||||
*/
|
||||
primary_topics?: Array<TopicCount>;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { ActivatedRoute, ParamMap, Router } from '@angular/router';
|
||||
import { combineLatest, distinctUntilChanged, map } from 'rxjs';
|
||||
|
||||
import { TopicCount, TopicsByYear, WorksService } from '../../api';
|
||||
import { TopicCount,TopicsByYear } from '../../api';
|
||||
import { WorksService } from '../../api';
|
||||
import {
|
||||
ResearchTimelineComponent,
|
||||
TimelineViewMode,
|
||||
|
||||
@@ -46,7 +46,7 @@ export class AppSearchbarComponent {
|
||||
|
||||
constructor() {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const currentSearch = params.get('search') ?? '';
|
||||
const currentSearch = params.get('query') ?? '';
|
||||
this.searchControl.setValue(currentSearch, { emitEvent: false });
|
||||
|
||||
// Autocomplete suggestions
|
||||
@@ -100,7 +100,7 @@ export class AppSearchbarComponent {
|
||||
this.router.url.startsWith('/persons') ? [] : ['/persons'],
|
||||
{
|
||||
relativeTo: this.route,
|
||||
queryParams: { search: search || null, page: 0 },
|
||||
queryParams: { query: search || null, page: 1 },
|
||||
queryParamsHandling: 'merge',
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user