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

<!-- Allow a catalog to be added to content space -->
<addMenuItem
    title="Catalog"
    description="A Catalog allows indexing and searching of objects"
    class="zope.app.catalog.catalog.Catalog"
    permission="zope.ManageContent"
    />

<icon
    name="zmi_icon"
    for="zope.app.catalog.interfaces.ICatalog"
    file="catalog_icon.gif"
    />

<containerViews
     for="..interfaces.ICatalog"
     contents="zope.ManageServices"
     index="zope.ManageServices"
     add="zope.ManageServices"
     />

<pages
    for="..interfaces.ICatalog"
    class=".catalog.Advanced"
    permission="zope.ManageContent">

  <page name="advanced.html" template="advanced.pt"
        menu="zmi_views" title="Advanced"/>
  <page name="reindex.html" attribute="reindex"/>
</pages>

<!-- Indexes -->

<addform
    name="AddFieldIndex"
    label="Add a field index"
    schema="..interfaces.IAttributeIndex"
    permission="zope.ManageServices"
    content_factory="..field.FieldIndex"
    arguments="field_name"
    keyword_arguments="interface field_callable"
    />

<addMenuItem
    title="Field Index"
    description="Index items based on an orderable field value"
    class="..field.FieldIndex"
    permission="zope.ManageServices"
    view="AddFieldIndex"
   />

<schemadisplay
    name="index.html"
    schema="..field.IFieldIndex"
    label="Field Index"
    fields="interface field_name field_callable"
    permission="zope.ManageServices"
    menu="zmi_views" title="Configuration"
    />

<addform
    name="AddTextIndex"
    label="Add a text index"
    schema="..interfaces.IAttributeIndex"
    permission="zope.ManageServices"
    content_factory="..text.TextIndex"
    arguments="field_name"
    keyword_arguments="interface field_callable"
    />

<addMenuItem
    title="Text Index"
    description="Index items based on multi-value fields with
                 orderable values"
    class="..text.TextIndex"
    permission="zope.ManageServices"
    view="AddTextIndex"
   />

<schemadisplay
    name="index.html"
    fields="interface field_name field_callable"
    schema="..text.ITextIndex"
    label="Text Index"
    permission="zope.ManageServices"
    menu="zmi_views" title="Configuration"
    />

</zope:configure>
