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

  <browser:page
      name="app-image-bank"
      for="ploneintranet.imagebank.interfaces.IImageBankApp"
      class=".app.ImageBankAppView"
      template="templates/app_image_bank.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="app-image-bank-private"
      for="ploneintranet.imagebank.interfaces.IImageBankApp"
      class=".app.ImageBankAppPrivateView"
      template="templates/app_image_bank.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="app-image-bank-navigation"
      for="ploneintranet.imagebank.interfaces.IImageBankApp"
      class=".app.ImageBankAppView"
      template="templates/app_image_bank_navigation.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="app-image-bank-collection"
      for="ploneintranet.imagebank.interfaces.IImageBankCollection"
      class=".collection.ImageBankCollectionView"
      template="templates/app_image_bank_collection.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="app-image-bank-collection"
      for="ploneintranet.imagebank.interfaces.IImageBankFolder"
      class=".folder.ImageBankFolderView"
      template="templates/app_image_bank_collection.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="panel-image-bank-image"
      for="plone.app.contenttypes.interfaces.IImage"
      class=".panel.PanelImageBankImageView"
      template="templates/panel-image-bank-image.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="image_view"
      for="plone.app.contenttypes.interfaces.IImage"
      class=".panel.PanelImageBankImageView"
      template="templates/panel-image-bank-image.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      menu="plone_displayviews"
      title="View Image"
      />

  <browser:page
      name="menu-image-bank"
      for="ploneintranet.imagebank.interfaces.IImageBankAlbum"
      class=".menu.ImageBankCollectionMenuView"
      template="templates/menu_image_bank_collection.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="menu-image-bank"
      for="plone.app.contenttypes.interfaces.IImage"
      class=".menu.ImageBankImageMenuView"
      template="templates/menu_image_bank_image.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="panel-image-bank-transfer"
      for="plone.app.contenttypes.interfaces.IImage"
      class=".panel.PanelImageBankTransferView"
      template="templates/panel-image-bank-transfer.pt"
      permission="zope2.DeleteObjects"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="panel-image-bank-delete-confirmation"
      for="plone.app.contenttypes.interfaces.IImage"
      class=".panel.PanelImageBankDeleteConfirmationView"
      template="templates/panel-image-bank-delete-confirmation.pt"
      permission="zope2.DeleteObjects"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="panel-image-bank-image-edit"
      for="plone.app.contenttypes.interfaces.IImage"
      class=".panel.PanelEditImageView"
      template="templates/panel-image-bank-image-edit.pt"
      permission="cmf.ModifyPortalContent"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="image-bank-upload-form"
      for="ploneintranet.imagebank.interfaces.IImageBankFolder"
      class=".folder.ImageBankFolderUploadForm"
      template="templates/image_bank_upload_form.pt"
      permission="cmf.AddPortalContent"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="panel-create-collection"
      for="plone.dexterity.interfaces.IDexterityContainer"
      class=".panel.PanelCreateCollectionView"
      template="templates/panel-create-collection.pt"
      permission="cmf.AddPortalContent"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <adapter
      factory=".panel.CollectionSchemaAdapter"
      for="ploneintranet.imagebank.interfaces.IImageBankAlbum"
      />

  <browser:page
      name="panel-edit-collection"
      for="ploneintranet.imagebank.interfaces.IImageBankAlbum"
      class=".panel.PanelEditCollectionView"
      template="templates/panel-edit-collection.pt"
      permission="cmf.ModifyPortalContent"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <!-- Aliases for the default Plone views -->
  <browser:page
      name="listing_view"
      for="ploneintranet.imagebank.interfaces.IImageBankCollectionContainer"
      class=".base.CollectionContainerListingView"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="listing_view"
      for="ploneintranet.imagebank.interfaces.IImageBankCollection"
      class=".base.CollectionListingView"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="listing_view"
      for="ploneintranet.imagebank.interfaces.IImageBankFolder"
      class=".base.CollectionListingView"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

</configure>
