mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
100414: Rename object to clickedObject
This commit is contained in:
@@ -334,9 +334,9 @@ export class SearchService implements OnDestroy {
|
||||
* Send search event to rest api using angularitics
|
||||
* @param config Paginated search options used
|
||||
* @param searchQueryResponse The response objects of the performed search
|
||||
* @param object Optional UUID of an object a search was performed and clicked for
|
||||
* @param clickedObject Optional UUID of an object a search was performed and clicked for
|
||||
*/
|
||||
trackSearch(config: PaginatedSearchOptions, searchQueryResponse: SearchObjects<DSpaceObject>, object?: string) {
|
||||
trackSearch(config: PaginatedSearchOptions, searchQueryResponse: SearchObjects<DSpaceObject>, clickedObject?: string) {
|
||||
const filters: { filter: string, operator: string, value: string, label: string; }[] = [];
|
||||
const appliedFilters = searchQueryResponse.appliedFilters || [];
|
||||
for (let i = 0, filtersLength = appliedFilters.length; i < filtersLength; i++) {
|
||||
@@ -358,7 +358,7 @@ export class SearchService implements OnDestroy {
|
||||
order: config.sort.direction
|
||||
},
|
||||
filters: filters,
|
||||
object,
|
||||
clickedObject,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user