C# Class CkanDotNet.Web.Models.TagHelper

Show file Open project: opencolorado/.NET-Wrapper-for-CKAN-API

Public Methods

Method Description
ComputeTagScale ( List tags ) : List

Compute the relative size of each tag based on the total number of tags

FilterTags ( List tags ) : List

Remove tags that should be hidden

FilterTags ( List tags ) : List

Remove tags that should be hidden

LimitTags ( List tags, int limit ) : List

Limit tags to the top n tags with the largest count

Method Details

ComputeTagScale() public static method

Compute the relative size of each tag based on the total number of tags
public static ComputeTagScale ( List tags ) : List
tags List
return List

FilterTags() public static method

Remove tags that should be hidden
public static FilterTags ( List tags ) : List
tags List
return List

FilterTags() public static method

Remove tags that should be hidden
public static FilterTags ( List tags ) : List
tags List
return List

LimitTags() public static method

Limit tags to the top n tags with the largest count
public static LimitTags ( List tags, int limit ) : List
tags List
limit int
return List