Voile.Analytics.Dashboard (Voile v0.1.26)

Copy Markdown View Source

Dashboard analytics context for retrieving GLAM system statistics.

Summary

Functions

Get category breakdown of collections by resource class (GLAM type).

Get comprehensive dashboard statistics.

Get favorite books based on most recent activity or some criteria. For now, we'll get recently added items that are books.

Get most active users based on recent activity. For now, we'll get recently registered users as a placeholder.

Get new books/items added recently.

Get total count of node collections across all nodes.

Get collection count per node with node details.

Get total count of items across all collections.

Functions

get_collection_categories()

Get category breakdown of collections by resource class (GLAM type).

get_dashboard_stats()

Get comprehensive dashboard statistics.

get_favorite_books(limit \\ 5)

Get favorite books based on most recent activity or some criteria. For now, we'll get recently added items that are books.

get_most_active_users(limit \\ 5)

Get most active users based on recent activity. For now, we'll get recently registered users as a placeholder.

get_new_books(limit \\ 5)

Get new books/items added recently.

get_node_collection_count()

Get total count of node collections across all nodes.

get_node_collection_counts()

Get collection count per node with node details.

get_total_item_count()

Get total count of items across all collections.