@@ -88,12 +75,8 @@ var ByCategory = React.createClass({
Kategorija - {this.state.category.get('name')}
Number of items in this category: {this.state.items.length}
- {this.appliedCategoryFiltersArray().map(function(acf) {
- return (
- {acf.name} : {acf.value}
-
- )
- })}
+
+
diff --git a/front-ui/app/components/browsing/filterCriteriaSelector.js b/front-ui/app/components/browsing/filterCriteriaSelector.js
new file mode 100644
index 0000000..9c2e185
--- /dev/null
+++ b/front-ui/app/components/browsing/filterCriteriaSelector.js
@@ -0,0 +1,28 @@
+var React = require('react'),
+ Router = require('react-router');
+
+var FilterCriteriaSelector = React.createClass({
+ render : function() {
+ var self = this;
+ return (
+
+ {this.props.filterCriterias.map(function(fc) {
+ return (
+
+
{fc.title}
+
+ {fc.filter_criteria_values.map(function(fcv) {
+ return (-
+ {fcv.filter_text}
+
)
+ })}
+
+
)
+ })}
+
+
)
+
+ }
+});
+
+module.exports = FilterCriteriaSelector;