8000 Advanced Search Event request · Issue #2303 · omeka/omeka-s · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Advanced Search Event request #2303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexdryden opened this issue May 14, 2025 · 1 comment
Closed

Advanced Search Event request #2303

alexdryden opened this issue May 14, 2025 · 1 comment

Comments

@alexdryden
Copy link
Contributor

I am trying to reuse the advanced search side view in one of my modules, and it would be useful to be able to modify the query passed to each of the partials. There is already an event, but you can only modify the list of partials, not the query:

$filterResults = $this->trigger(
'view.advanced_search',
[
'query' => $query,
'resourceType' => $resourceType,
'partials' => $partials,
],
true
);
$partials = $filterResults['partials'];
?>
<div class="advanced-search-content">
<?php
foreach ($partials as $partial) {
echo $this->partial($partial, ['query' => $query, 'resourceType' => $resourceType]);
}
?>

What I would need is something along the lines of :

$query = $filterResults['query'];

If I could add a query parameter, it would help me reuse the advanced search form in places I want to control which options the resource template select and item set select elements inside the advanced search form elements display.

@alexdryden
Copy link
Contributor Author

Ack, never mind! The query isn't used used when calling the item set select or resource template select elements.

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

No branches or pull requests

1 participant
0