Package org.dspace.statistics.content.filter

Examples of org.dspace.statistics.content.filter.StatisticsSolrDateFilter


        //Check if we need our total
        if((getDatasetGenerators().get(0) != null && getDatasetGenerators().get(0).isIncludeTotal()) || (1 < getDatasetGenerators().size() && getDatasetGenerators().get(1) != null && getDatasetGenerators().get(1).isIncludeTotal()))
            showTotal = true;

        if(dateFacet != null && dateFacet.getActualStartDate() != null && dateFacet.getActualEndDate() != null){
            StatisticsSolrDateFilter dateFilter = new StatisticsSolrDateFilter();
            dateFilter.setStartDate(dateFacet.getActualStartDate());
            dateFilter.setEndDate(dateFacet.getActualEndDate());
            dateFilter.setTypeStr(dateFacet.getDateType());
            addFilters(dateFilter);
        } else if(dateFacet != null && dateFacet.getStartDate() != null && dateFacet.getEndDate() != null){
            StatisticsSolrDateFilter dateFilter = new StatisticsSolrDateFilter();
            dateFilter.setStartStr(dateFacet.getStartDate());
            dateFilter.setEndStr(dateFacet.getEndDate());
            dateFilter.setTypeStr(dateFacet.getDateType());
            addFilters(dateFilter);
        }

        //Determine our filterQuery
        String filterQuery = null;
View Full Code Here


        }

        if (dateFacet != null && dateFacet.getActualStartDate() != null
                && dateFacet.getActualEndDate() != null)
        {
            StatisticsSolrDateFilter dateFilter = new StatisticsSolrDateFilter();
            dateFilter.setStartDate(dateFacet.getActualStartDate());
            dateFilter.setEndDate(dateFacet.getActualEndDate());
            dateFilter.setTypeStr(dateFacet.getDateType());
            addFilters(dateFilter);
        }
        else if (dateFacet != null && dateFacet.getStartDate() != null
                && dateFacet.getEndDate() != null)
        {
            StatisticsSolrDateFilter dateFilter = new StatisticsSolrDateFilter();
            dateFilter.setStartStr(dateFacet.getStartDate());
            dateFilter.setEndStr(dateFacet.getEndDate());
            dateFilter.setTypeStr(dateFacet.getDateType());
            addFilters(dateFilter);
        }

        // Determine our filterQuery
        String filterQuery = "";
View Full Code Here

            Division workflowTermsDivision = mainDivision.addDivision("workflow-terms");
            workflowTermsDivision.setHead(T_title);
            addTimeFilter(workflowTermsDivision);

            //Retrieve the optional time filter
            StatisticsSolrDateFilter dateFilter = getDateFilter(selectedTimeFilter);



            int time_filter = -1;
            if(request.getParameter("time_filter") != null && !"".equals(request.getParameter("time_filter"))){
View Full Code Here

            Division searchTermsDivision = mainDivision.addDivision("search-terms");
            searchTermsDivision.setHead(T_search_terms_head);
            addTimeFilter(searchTermsDivision);

            //Retrieve the optional time filter
            StatisticsSolrDateFilter dateFilter = getDateFilter(selectedTimeFilter);


            StatisticsTable statisticsTable = new StatisticsTable(new StatisticsDataSearches(dso));

            DatasetSearchGenerator queryGenerator = new DatasetSearchGenerator();
View Full Code Here

    }

    protected StatisticsSolrDateFilter getDateFilter(String timeFilter){
        if(StringUtils.isNotEmpty(timeFilter))
        {
            StatisticsSolrDateFilter dateFilter = new StatisticsSolrDateFilter();
            dateFilter.setStartStr(timeFilter);
            dateFilter.setEndStr("0");
            dateFilter.setTypeStr("month");
            return dateFilter;
        }else{
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.statistics.content.filter.StatisticsSolrDateFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.