diff --git a/application/view/common/advanced-search.phtml b/application/view/common/advanced-search.phtml index 39ce0774da..aa04eea9ca 100644 --- a/application/view/common/advanced-search.phtml +++ b/application/view/common/advanced-search.phtml @@ -13,11 +13,16 @@ $partials = [ if ($this->status()->isAdminRequest()) { $partials[] = 'common/advanced-search/resource-template'; } -if ('item' === $resourceType) { - $partials[] = 'common/advanced-search/item-sets'; -} -if ($this->status()->isAdminRequest() && 'item' === $resourceType) { - $partials[] = 'common/advanced-search/site-pool'; +switch ($resourceType) { + case 'item': + $partials[] = 'common/advanced-search/item-sets'; + if ($this->status()->isAdminRequest()) { + $partials[] = 'common/advanced-search/site-pool'; + } + break; + case 'media': + $partials[] = 'common/advanced-search/media-type'; + break; } if ($this->status()->isSiteRequest()) { $partials[] = 'common/advanced-search/resource-template-restrict'; diff --git a/application/view/common/advanced-search/media-type.phtml b/application/view/common/advanced-search/media-type.phtml new file mode 100644 index 0000000000..03bf9b2526 --- /dev/null +++ b/application/view/common/advanced-search/media-type.phtml @@ -0,0 +1,11 @@ + +