Voile.Task.Catalog.Items (Voile v0.1.31)

Copy Markdown View Source

Task module for Items-related business logic and data operations.

Summary

Functions

Get unique filter options for items (availability, condition, location).

Load an item with its related data for the show page.

Load items with filtering, pagination, search, and sorting functionality.

Load related items for a given item (same collection, excluding the current item).

Functions

get_filter_options()

Get unique filter options for items (availability, condition, location).

load_item_with_related(id)

Load an item with its related data for the show page.

load_items(page, search_query, filters, sort_by, sort_order, per_page \\ 20)

Load items with filtering, pagination, search, and sorting functionality.