mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Merge pull request #907 from EKT/DS-2534
[DS-2534] Fix a bug in the "Jump to" browse feature
This commit is contained in:
@@ -32,6 +32,8 @@ import org.dspace.utils.DSpace;
|
|||||||
*
|
*
|
||||||
* @author Andrea Bollini (CILEA)
|
* @author Andrea Bollini (CILEA)
|
||||||
* @author Adán Román Ruiz at arvo.es (bugfix)
|
* @author Adán Román Ruiz at arvo.es (bugfix)
|
||||||
|
* @author Panagiotis Koutsourakis (National Documentation Centre) (bugfix)
|
||||||
|
* @author Kostas Stamatis (National Documentation Centre) (bugfix)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SolrBrowseDAO implements BrowseDAO
|
public class SolrBrowseDAO implements BrowseDAO
|
||||||
@@ -336,6 +338,22 @@ public class SolrBrowseDAO implements BrowseDAO
|
|||||||
addStatusFilter(query);
|
addStatusFilter(query);
|
||||||
query.setMaxResults(0);
|
query.setMaxResults(0);
|
||||||
query.addFilterQueries("search.resourcetype:" + Constants.ITEM);
|
query.addFilterQueries("search.resourcetype:" + Constants.ITEM);
|
||||||
|
|
||||||
|
// We need to take into account the fact that we may be in a subset of the items
|
||||||
|
if (authority != null)
|
||||||
|
{
|
||||||
|
query.addFilterQueries("{!field f="+facetField + "_authority_filter}"
|
||||||
|
+ authority);
|
||||||
|
}
|
||||||
|
else if (this.value != null && !valuePartial)
|
||||||
|
{
|
||||||
|
query.addFilterQueries("{!field f="+facetField + "_value_filter}" + this.value);
|
||||||
|
}
|
||||||
|
else if (valuePartial)
|
||||||
|
{
|
||||||
|
query.addFilterQueries("{!field f="+facetField + "_partial}" + this.value);
|
||||||
|
}
|
||||||
|
|
||||||
if (isAscending)
|
if (isAscending)
|
||||||
{
|
{
|
||||||
query.setQuery("bi_"+column + "_sort" + ": [* TO \"" + value + "\"}");
|
query.setQuery("bi_"+column + "_sort" + ": [* TO \"" + value + "\"}");
|
||||||
|
Reference in New Issue
Block a user