Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.diff.service.DiffDisplayService.contrib--diffBlock

This contribution is part of XML component org.nuxeo.ecm.diff.service.DiffDisplayService.contrib inside nuxeo-diff-jsf-7.10-HF03.jar /OSGI-INF/diff-display-contrib.xml

Extension point

Extension point diffBlock of component DiffDisplayService.

Contributed items

  • <diffBlock name="dublincore">
          <properties mode="any">
            <property name="label">label.diffBlock.dublincore</property>
          </properties>
          <fields>
            <field name="description" schema="dublincore"/>
            <!-- Display the "dam_common" schema fields in case the DAM package 
              is installed -->
            <field name="author" schema="dam_common"/>
            <field name="authoringDate" schema="dam_common"/>
            <field name="nature" schema="dublincore"/>
            <field name="subjects" schema="dublincore"/>
            <field name="rights" schema="dublincore"/>
            <field name="source" schema="dublincore"/>
            <field name="coverage" schema="dublincore"/>
            <field name="created" schema="dublincore"/>
            <field name="modified" schema="dublincore"/>
            <field name="format" schema="dublincore"/>
            <field name="language" schema="dublincore"/>
            <field name="expired" schema="dublincore"/>
            <field name="creator" schema="dublincore"/>
            <field name="contributors" schema="dublincore"/>
            <field name="lastContributor" schema="dublincore"/>
          </fields>
          <templates>
            <template mode="any">/layouts/layout_diff_template.xhtml
            </template>
          </templates>
        </diffBlock>
  • <diffBlock name="files">
          <properties mode="any">
            <property name="label">label.diffBlock.files</property>
          </properties>
          <fields>
            <field displayContentDiffLinks="true" name="content" schema="file"/>
            <field name="files" schema="files">
              <items>
                <!-- Display the file only, not the filename which is managed 
                  by the file widget type -->
                <item displayContentDiffLinks="true" name="file"/>
              </items>
            </field>
          </fields>
          <templates>
            <template mode="any">/layouts/layout_diff_template.xhtml
            </template>
          </templates>
        </diffBlock>
  • <diffBlock name="note">
          <properties mode="any">
            <property name="label">label.diffBlock.note</property>
          </properties>
          <fields>
            <field displayContentDiffLinks="true" name="note" schema="note"/>
          </fields>
          <templates>
            <template mode="any">/layouts/layout_diff_template.xhtml
            </template>
          </templates>
        </diffBlock>

XML source

<extension point="diffBlock" target="org.nuxeo.ecm.diff.service.DiffDisplayService">

    <diffBlock name="dublincore">
      <properties mode="any">
        <property name="label">label.diffBlock.dublincore</property>
      </properties>
      <fields>
        <field name="description" schema="dublincore"/>
        <!-- Display the "dam_common" schema fields in case the DAM package 
          is installed -->
        <field name="author" schema="dam_common"/>
        <field name="authoringDate" schema="dam_common"/>
        <field name="nature" schema="dublincore"/>
        <field name="subjects" schema="dublincore"/>
        <field name="rights" schema="dublincore"/>
        <field name="source" schema="dublincore"/>
        <field name="coverage" schema="dublincore"/>
        <field name="created" schema="dublincore"/>
        <field name="modified" schema="dublincore"/>
        <field name="format" schema="dublincore"/>
        <field name="language" schema="dublincore"/>
        <field name="expired" schema="dublincore"/>
        <field name="creator" schema="dublincore"/>
        <field name="contributors" schema="dublincore"/>
        <field name="lastContributor" schema="dublincore"/>
      </fields>
      <templates>
        <template mode="any">/layouts/layout_diff_template.xhtml
        </template>
      </templates>
    </diffBlock>

    <diffBlock name="files">
      <properties mode="any">
        <property name="label">label.diffBlock.files</property>
      </properties>
      <fields>
        <field displayContentDiffLinks="true" name="content" schema="file"/>
        <field name="files" schema="files">
          <items>
            <!-- Display the file only, not the filename which is managed 
              by the file widget type -->
            <item displayContentDiffLinks="true" name="file"/>
          </items>
        </field>
      </fields>
      <templates>
        <template mode="any">/layouts/layout_diff_template.xhtml
        </template>
      </templates>
    </diffBlock>

    <diffBlock name="note">
      <properties mode="any">
        <property name="label">label.diffBlock.note</property>
      </properties>
      <fields>
        <field displayContentDiffLinks="true" name="note" schema="note"/>
      </fields>
      <templates>
        <template mode="any">/layouts/layout_diff_template.xhtml
        </template>
      </templates>
    </diffBlock>

  </extension>