Permalink
Browse files

Merge pull request #474 from KevinVdV/DS-1912

[DS-1912] Discovery facets do not always use the authority identifier
  • Loading branch information...
2 parents 0432f67 + f35b959 commit 8799f31e9b025850ac34b35a586fe35f090dcdef Hardy Pottinger committed Feb 19, 2014
@@ -425,7 +425,7 @@ private void renderFacetField(SearchFilterParam browseParams, DSpaceObject dso,
//Last add the current filter query
url += "&filtertype=" + facetField;
url += "&filter_relational_operator="+value.getFilterType();
- url += "&filter=" + URLEncoder.encode(displayedValue, "UTF-8");
+ url += "&filter=" + URLEncoder.encode(value.getAsFilterQuery(), "UTF-8");
cell.addXref(url, displayedValue + " (" + value.getCount() + ")"
);
}
@@ -232,7 +232,7 @@ public void addOptions(Options options) throws SAXException, WingException, SQLE
String displayedValue = value.getDisplayedValue();
String filterQuery = value.getAsFilterQuery();
String filterType = value.getFilterType();
- if (fqs.contains(getSearchService().toFilterQuery(context, field.getIndexFieldName(), "equals", value.getDisplayedValue()).getFilterQuery())) {
+ if (fqs.contains(getSearchService().toFilterQuery(context, field.getIndexFieldName(), value.getFilterType(), value.getAsFilterQuery()).getFilterQuery())) {
filterValsList.addItem(Math.random() + "", "selected").addContent(displayedValue + " (" + value.getCount() + ")");
} else {
String paramsQuery = retrieveParameters(request);

0 comments on commit 8799f31

Please sign in to comment.