<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    >

  <browser:page
      name="search_macros"
      for="*"
      template="templates/search_macros.pt"
      permission="zope2.View"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search"
      for="plone.app.layout.navigation.interfaces.INavigationRoot"
      class=".searchresults.SearchUtilityView"
      permission="ploneintranet.viewsite"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search"
      for="ploneintranet.layout.app.IApp"
      class=".searchresults.SearchResultsView"
      template="templates/all_results.pt"
      permission="ploneintranet.viewsite"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class=".searchresults.UserSearchResultsView"
      template="templates/all_results.pt"
      permission="zope2.View"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search_tabs"
      for="*"
      class=".searchtabs.View"
      template="templates/search_tabs.pt"
      permission="zope2.View"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search_images"
      for="ploneintranet.layout.app.IApp"
      class=".searchresults.SearchResultsView"
      template="templates/image_results.pt"
      permission="ploneintranet.viewsite"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search_files"
      for="ploneintranet.layout.app.IApp"
      class=".searchresults.SearchResultsView"
      template="templates/file_results.pt"
      permission="ploneintranet.viewsite"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search_people_result"
      for="*"
      class=".searchresults.ContactSearchResultView"
      template="templates/people_result.pt"
      permission="ploneintranet.viewsite"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="search_people"
      for="ploneintranet.layout.app.IApp"
      class=".searchresults.SearchResultsView"
      template="templates/people_results.pt"
      permission="ploneintranet.viewsite"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:viewlet
      name="plone.searchbox"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      template="templates/plone.searchbox.pt"
      permission="zope2.View"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

</configure>
