Skip to content

[FEATURE] Improve single collection display and refactor collection retrieval#2045

Open
beatrycze-volk wants to merge 2 commits into
kitodo:mainfrom
beatrycze-volk:collectionplugin
Open

[FEATURE] Improve single collection display and refactor collection retrieval#2045
beatrycze-volk wants to merge 2 commits into
kitodo:mainfrom
beatrycze-volk:collectionplugin

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

The showSingle setting now ensures an immediate redirect to the first configured collection, bypassing the list view when a direct detail view is desired. This clarifies its intended behavior and prevents the list from displaying a single item unnecessarily.

The logic for fetching and sorting collections has been extracted into a new private method, getCollections(), enhancing the clarity and maintainability of the listAction.

@beatrycze-volk beatrycze-volk self-assigned this Jul 7, 2026
@beatrycze-volk beatrycze-volk added ↷ feature A new feature or enhancement. php Pull requests that update PHP code. labels Jul 7, 2026
@beatrycze-volk
beatrycze-volk force-pushed the collectionplugin branch 3 times, most recently from da1ddae to 663d9bf Compare July 7, 2026 09:08
…etrieval

The `showSingle` setting now ensures an immediate redirect to the first configured collection, bypassing the list view when a direct detail view is desired. This clarifies its intended behavior and prevents the list from displaying a single item unnecessarily.

The logic for fetching and sorting collections has been extracted into a new private method, `getCollections()`, enhancing the clarity and maintainability of the `listAction`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

↷ feature A new feature or enhancement. php Pull requests that update PHP code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants