Sorting resources
In general we don't filter resources out based on any user properties, but rather sort the results.
Translations of a resource are all shown.
Calculating points for resources
- Pieces
-
- 1 point for each time piece used in a resource
- 1 point if piece has a non-default title
- 1 point if piece has tags
- 1 point if piece has a description
- Learning resources
-
- 1 point for each member that has this resource in his collections
- 10 points for each tip for use that has this resource
- Activities
-
- 1 point for each member that has this resource in his collections
- 10 points for each tip for use that has this resource
- Tools
-
- 1 point for each member that has this resource in his collections
- 10 points for each tip for use that has this resource
- Members
-
- 1 point for each piece added
- 10 points for each learning resource, activity, and tool added
- 10 points for each tip for use written
- 1 point for each blog entry
- 1 point for every member who has contacted this person
- Groups
-
- 1 point for each member
- 1 point for each blog entry
- 1 point for each assigned learning resource
If action is older than month, points are divided by every full month+1. (So, two month old edit is worth 1/3 point.)
Sorting browse and search results
- Content
-
- Sort by type
- Materials
- Pieces
- References
- Print resources
- Sort by language
- first by selected user interface language
- then by user profile's language selections
- then English
- then others
- Sort by state
- first published
- then drafts
- Sort by score
- Sort by modification date
- newest before
- Sort by type
- Methods and tools
-
- Sort by language
- first by selected user interface language
- then by user profile's language selections
- then English
- then others
- Sort by cover image
- first with cover image
- then without cover image
- Sort by score
- Sort by modification date
- newest before
- Sort by language
- People
-
- Sort by photo
- first users who have photo
- then users without photo
- Sort by score
- Sort by last name
- Sort by photo
- Groups
-
- Sort by cover image
- first groups with cover image
- then without cover image
- Sort by score
- Sort by name
- Sort by cover image
When using advanced search then only ordering by score.
Calculating sizes of resources in tag clouds
- For each tag:
- calculate the sum of the points of all resources that have the tag
- take a log of the sum
- Assign the largest font size to the resource with the largest logsum
Selecting featured resources
Select randomly 3 from:
- published resources within the section
- that have a cover image
- and that are in the top-N list in points
- where N is 10% of the total amount of resources in the section (ie. with 100 resources, select from top-10, with 5000, select from top 500)
