diff --git a/kahuna/public/js/components/gr-collections-panel/gr-collections-panel-node.html b/kahuna/public/js/components/gr-collections-panel/gr-collections-panel-node.html index bead53a5b1..45dc13418a 100644 --- a/kahuna/public/js/components/gr-collections-panel/gr-collections-panel-node.html +++ b/kahuna/public/js/components/gr-collections-panel/gr-collections-panel-node.html @@ -29,7 +29,8 @@ + ui-sref="search.results({query: ctrl.getCollectionQuery(node.data.data.pathId), nonFree: ctrl.srefNonfree()})" + ng-click="ctrl.searchWithModifiers($event, 'collection', node.data.data.pathId)"> {{:: node.data.data.description}} diff --git a/kahuna/public/js/components/gr-collections-panel/gr-collections-panel.js b/kahuna/public/js/components/gr-collections-panel/gr-collections-panel.js index b8729960f5..9a50ca7595 100644 --- a/kahuna/public/js/components/gr-collections-panel/gr-collections-panel.js +++ b/kahuna/public/js/components/gr-collections-panel/gr-collections-panel.js @@ -12,6 +12,7 @@ import './gr-collections-panel.css'; import {getCollection} from '../../search-query/query-syntax'; import nodeTemplate from './gr-collections-panel-node.html'; import '../../directives/gr-auto-focus'; +import '../../search/query-filter'; export var grCollectionsPanel = angular.module('grCollectionsPanel', [ 'kahuna.services.panel', @@ -92,8 +93,8 @@ grCollectionsPanel.controller('GrCollectionsPanelCtrl', [ }]); grCollectionsPanel.controller('GrNodeCtrl', - ['$scope', 'collections', 'subscribe$', 'inject$', 'onValChange', 'collectionsTreeState', 'storage', - function($scope, collections, subscribe$, inject$, onValChange, collectionsTreeState, storage) { + ['$scope', 'collections', 'subscribe$', 'inject$', 'onValChange', 'collectionsTreeState', 'storage', 'searchWithModifiers', + function($scope, collections, subscribe$, inject$, onValChange, collectionsTreeState, storage, searchWithModifiers) { const ctrl = this; @@ -186,6 +187,7 @@ grCollectionsPanel.controller('GrNodeCtrl', }; + ctrl.searchWithModifiers = searchWithModifiers; }; }]);