<?xml version="1.0"?>
<object name="Book"
        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="">Book</property>
  <property name="description" i18n:translate=""></property>
  <property name="content_meta_type">Book</property>
  <property name="content_icon">++resource++ftw.book-resources/icon_book.gif</property>
  <property name="product">ftw.book</property>
  <property name="factory">addBook</property>

  <property name="global_allow">true</property>
  <property name="filter_content_types">True</property>
  <property name="allowed_content_types">
    <element value="Chapter"/>
  </property>
  <property name="allow_discussion">False</property>

  <property name="immediate_view">atct_edit</property>
  <property name="default_view">book_view</property>
  <property name="view_methods">
    <element value="book_view" />
    <element value="tabbed_view" />
  </property>

  <alias from="(Default)" to="(dynamic view)" />
  <alias from="edit" to="atct_edit" />
  <alias from="sharing" to="@@sharing" />
  <alias from="view" to="(selected layout)" />

  <action title="View" action_id="view" category="object" condition_expr=""
          url_expr="string:${object_url}/" visible="True">
    <permission value="View" />
  </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="Edit" action_id="edit" category="object" condition_expr=""
          url_expr="string:${object_url}/edit" visible="True">
    <permission value="Modify portal content" />
  </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>
  <!-- ftw.tabbedview tabs on Book -->
  <action action_id="index"
         visible="True"
         url_expr="string:${object_url}#index"
         title="Index"
         category="tabbedview-tabs"
         condition_expr="">
     <permission value="View"/>
  </action>
  <action action_id="bookdocuments"
         visible="True"
         url_expr="string:${object_url}#bookdocuments"
         title="BookDocuments"
         category="tabbedview-tabs"
         condition_expr="">
     <permission value="View"/>
  </action>
  <action action_id="keywords"
         visible="True"
         url_expr="string:${object_url}#keywords"
         title="BookKeywords"
         category="tabbedview-tabs"
         condition_expr="here/getUse_index">
     <permission value="View"/>
  </action>
</object>
