<?xml version="1.0"?>
<object name="Chapter"
        meta_type="Factory-based Type Information with dynamic views"
        i18n:domain="ftw.book" xmlns:i18n="http://xml.zope.org/namespaces/i18n">

  <property name="title" i18n:translate="">Chapter</property>
  <property name="description"></property>
  <property name="content_icon">++resource++ftw.book-resources/icon_chapter.gif</property>
  <property name="content_meta_type" i18n:translate="">Chapter</property>
  <property name="product">ftw.book</property>
  <property name="factory">addChapter</property>

  <property name="global_allow">False</property>
  <property name="filter_content_types">True</property>
  <property name="allowed_content_types" purge="False">
    <element value="BookTextBlock"/>
    <element value="Chapter"/>
    <element value="File"/>
    <element value="Link"/>
    <element value="Image"/>
    <element value="HTMLBlock"/>
    <element value="Remark"/>
    <element value="Table"/>
    <element value="ListingBlock" />
  </property>
  <property name="allow_discussion">False</property>

  <property name="immediate_view">simplelayout</property>
  <property name="default_view">simplelayout</property>
  <property name="view_methods">
    <element value="simplelayout"/>
  </property>
  <property name="default_view_fallback">False</property>

  <alias from="(Default)" to="(dynamic view)"/>
  <alias from="edit" to="base_edit"/>
  <alias from="properties" to="base_metadata"/>
  <alias from="sharing" to="folder_localrole_form"/>
  <alias from="view" to="(selected layout)"/>

  <action title="View" action_id="view" category="object" condition_expr=""
          url_expr="string:${object_url}/view" visible="True">
    <permission value="View"/>
  </action>

  <action title="Edit" action_id="edit" category="object"
          condition_expr="not:object/@@plone_lock_info/is_locked_for_current_user"
          url_expr="string:${object_url}/edit" visible="True">
    <permission value="Modify portal content"/>
  </action>

  <action title="Edit" action_id="sl-edit" category="sl-actions"
          condition_expr="" url_expr="string:${object_url}/edit" visible="True" icon_expr="string:edit.gif">
    <permission value="Modify portal content"/>
  </action>

  <action title="Delete" action_id="sl-delete" category="sl-actions"
          condition_expr=""
          url_expr="string:${here/absolute_url}/delete_confirmation" visible="True" icon_expr="string:delete_icon.gif">
    <permission value="Modify portal content"/>
  </action>

  <action title="PDF" action_id="pdf" category="object" condition_expr=""
          url_expr="string:${object_url}/export_pdf" visible="True">
    <permission value="View" />
  </action>

  <action title="Read Book" action_id="reader" category="object" condition_expr=""
          url_expr="string:${object_url}/@@book_reader_view" visible="True">
    <permission value="View" />
  </action>

</object>
