amalgame/commit
pass strategy when fetching concepts
author | Jacco van Ossenbruggen |
---|---|
Sun Aug 31 21:59:36 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Sun Aug 31 21:59:36 2014 +0200 | |
commit | 48213f170283a37a13e48366876d0534bac7a126 |
tree | bceb8b5708b45f70a1207c2d116b9520b9a0a307 |
parent | 3eae356a89fbd55bdcab1cc0b262ec05d9f1eb83 |
Diff style: patch stat
diff --git a/web/js/vocabulary.js b/web/js/vocabulary.js index 4c8f18a..d901884 100644 --- a/web/js/vocabulary.js +++ b/web/js/vocabulary.js @@ -65,6 +65,7 @@ YUI.add('vocabulary', function(Y) { _initBrowser : function() { var fetchConceptsURL = this.get("paths").concepts; + var strategy = this.get('strategy'); // We define a datasource to simplify // access to the vocabularys later and add caching support @@ -89,12 +90,12 @@ YUI.add('vocabulary', function(Y) { searchEnabled: false, columns: [ { request: fetchConceptsURL, - params: {type:'topconcept'}, + params: { type:'topconcept', strategy:strategy }, options: [{'value':'inscheme', 'label':'all concepts'}, {'value':'topconcept', 'selected':'true', 'label':'top concepts'}] }, { request: fetchConceptsURL, - params: {type:'child'}, + params: {type:'child', strategy:strategy }, repeat: true, options: [] }