Skip to content

Conversation

kylehuynh205
Copy link
Contributor

What does this Pull Request do?

Provide a brief description of what the intended result of the PR will be and/or what
problem it solves.

  • Related GitHub Issue: (issue #72)

  • Other Relevant Links: (Google Groups discussion, related pull requests,
    Release pull requests, etc.)

What's new?

A in-depth description of the changes made by this PR. Technical details and
possible side effects.

This PR add additional settings for display mode at Search Results Pager Block (screenshot below), this will override global settings /admin/config/search/advanced:

image

How should this be tested?

In global settings at /admin/config/search/advanced, set display mode as
image

In an advanced search view, configure the Pager block ie https://sandbox.islandora.ca/admin/structure/block/manage/solrsearchcontentsearchresultspagerforblock, set something like this:

image

then, go back to Search view, ie. https://sandbox.islandora.ca/islandora/book-collection, expect there is no display mode options display and the default display is grid instead of list.

Documentation Status

  • Does this change existing behaviour that's currently documented?
  • Does this change require new pages or sections of documentation?
  • Who does this need to be documented for?
  • Associated documentation pull request(s): ___ or documentation issue ___

Additional Notes:

Any additional information that you think would be helpful when reviewing this
PR.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora/committers

Override display mode config for SearchResultsPagerBlock different from global advanced search.
Add a hidden option for default display mode if both Grid and View mode is inactive
Updated the Ajax js to handle the case of the display mode is override in the SearchResultPagerBlock.php against the Global Advanced Search setting (only for initial load)
@kylehuynh205
Copy link
Contributor Author

kylehuynh205 commented Jul 16, 2025

If it's possible, pls review and merge the PR #70, #71, before PR#73

Thanks.

Added handling display mode override from block instead global for ajax events
Fix a small bug, get the display mode text from type attribute instead of the tag's text, because it may got translated so it's not matched with 'list' or 'grid'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant