New search functionality, plus views and likes

Several small updates and improvements:

  • New search resource type options:
    We've added to the search parameters to include "all with text" (which includes text AND text+match resources) and "all with match" (which includes match AND text+match resources).
    This means it is now possible to search through all resources that have a text, rather than doing a text search and a text+match search separately. Similarly with vocab / matching resources.

  • New search order options:
    We've added views and likes to the search by options. These search by most viewed and most liked respectively. (And then by most recent.)

  • Views and likes:
    We've started counting views and likes.
    Likes are based on logged-in users clicking on the "favourite" icon for a resource.
    Views are based on a resource being accessed by any user. (Repeat views with a 15 minute period are not counted.)
    Users can search by most liked and most viewed. Numbers for views and likes will also appear in the resource info for all resources, accessible via the +i icon, as well as in the Public and My resources lists.
    (Clearly, views and likes are not retrospective. All counts started on 16th May 2017.)

  • Recent and Favourite resources increased to 100:
    Previously, we only stored info for the 10 most recent / favourite resources. We've increased it to 100.