Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <remarks></remarks>
        /// <seealso cref=""/>
        /// <param>NA</param>
        /// <returns></returns>
        private SearchModel initDefault()
        {
            SearchModel model = new SearchModel();

            //facets
            model.SearchComponent.Facets = SearchConfig.getFacets().ToList();

            //properties
            model.SearchComponent.Properties = new List <Property>(SearchConfig.getProperties());

            //categories
            model.SearchComponent.Categories = new List <Category>(SearchConfig.getCategories());

            //Textvalues
            model.SearchComponent.TextBoxSearchValues = new List <TextValue>();

            /// Add the general searchable properties, these are usually not visible through the UI.
            /// Here, there is one built-in field that is used to filter public datasets
            ///
            model.SearchComponent.Generals = new List <General>()
            {
                new General()
                {
                    Name = "gen_isPublic", DefaultValue = "FALSE", DisplayName = "Is dataset public", Value = "FALSE", IsVisible = false
                },
                new General()
                {
                    Name = "gen_entity_name", DefaultValue = "", DisplayName = "Type", Value = "", IsVisible = true
                }
            };

            return(model);
            //throw new NotImplementedException();
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <remarks></remarks>
        /// <seealso cref=""/>
        /// <param>NA</param>
        /// <returns></returns>
        private SearchModel initDefault()
        {
            SearchModel model = new SearchModel();

            //facets
            model.SearchComponent.Facets = SearchConfig.getFacets().ToList();

            //properties
            model.SearchComponent.Properties = new List <Property>(SearchConfig.getProperties());

            //categories
            model.SearchComponent.Categories = new List <Category>(SearchConfig.getCategories());

            //Textvalues
            model.SearchComponent.TextBoxSearchValues = new List <TextValue>();

            return(model);
            //throw new NotImplementedException();
        }