Platform Explorer / Nuxeo Platform 5.6

Component org.nuxeo.ecm.platform.faceted.search.dm.layouts

Services

Extension points

Contributions

XML source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.faceted.search.dm.layouts">

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgets">

    <widget name="text_search" type="faceted_search_wrapper">
      <labels>
        <label mode="any">label.faceted.search.textSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="ecm_fulltext" type="text">
          <labels>
            <label mode="any">label.faceted.search.fulltext</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:ecm_fulltext</field>
          </fields>
        </widget>
      </subWidgets>
    </widget>

    <widget name="date_search" type="faceted_search_wrapper">
      <labels>
        <label mode="any">label.faceted.search.dateSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="dc_created" type="date_range">
          <labels>
            <label mode="any">label.dublincore.creationDate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_created_min</field>
            <field>fsd:dc_created_max</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputTextDate</property>
            <property name="wrapperMode">row</property>
          </properties>
        </widget>

        <widget name="dc_modified" type="date_range">
          <labels>
            <label mode="any">label.dublincore.modificationDate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_modified_min</field>
            <field>fsd:dc_modified_max</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputTextDate</property>
            <property name="wrapperMode">row</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="people_search" type="faceted_search_wrapper">
      <labels>
        <label mode="any">label.faceted.search.peopleSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="dc_creator" type="faceted_search_users_suggestion">
          <labels>
            <label mode="any">label.dublincore.creator</label>
          </labels>
          <fields>
            <field>fsd:dc_creator</field>
          </fields>
          <properties widgetMode="any">
            <property name="userSuggestionSearchType">USER_TYPE</property>
            <property name="displayHorizontally">false</property>
            <property name="hideSearchTypeText">true</property>
            <property name="displayHelpLabel">false</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="categorization_search" type="faceted_search_wrapper">
      <labels>
        <label mode="any">label.faceted.search.categorizationSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="dc_nature" type="selectManyDirectory">
          <labels>
            <label mode="any">label.dublincore.nature</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_nature</field>
          </fields>
          <properties widgetMode="any">
            <property name="directoryName">nature</property>
            <property name="localize">true</property>
          </properties>
          <properties widgetMode="edit">
            <property name="wrapperMode">row</property>
          </properties>
        </widget>
        <widget name="dc_coverage" type="faceted_search_directory_tree">
          <labels>
            <label mode="any">label.faceted.search.coverage</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_coverage</field>
          </fields>
          <properties widgetMode="any">
            <property name="directoryTreeName">byCoverageNavigation</property>
            <property name="wrapperMode">noLabel</property>
          </properties>
        </widget>
        <widget name="dc_subjects" type="faceted_search_directory_tree">
          <labels>
            <label mode="any">label.faceted.search.subjects</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_subjects</field>
          </fields>
          <properties widgetMode="any">
            <property name="directoryTreeName">bySubjectsNavigation</property>
            <property name="wrapperMode">noLabel</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="path_search" type="faceted_search_wrapper">
      <labels>
        <label mode="any">label.faceted.search.pathSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="ecm_path" type="select_path_tree">
          <labels>
            <label mode="any">label.faceted.search.path</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:ecm_path</field>
          </fields>
          <properties widgetMode="any">
            <property name="wrapperMode">noLabel</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="faceted_searches_selector" type="faceted_searches_selector">
      <widgetModes>
        <!-- not shown in edit and view modes -->
        <mode value="view">hidden</mode>
        <mode value="edit">hidden</mode>
      </widgetModes>
    </widget>

    <widget name="saved_faceted_searches_selector" type="saved_faceted_searches_selector">
      <widgetModes>
        <!-- not shown in edit and view modes -->
        <mode value="view">hidden</mode>
        <mode value="edit">hidden</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="outcome">faceted_search_results</property>
      </properties>
    </widget>

    <widget name="actions_bar" type="template">
      <properties widgetMode="any">
        <property name="template">
          /widgets/faceted_search_actions_widget_template.xhtml
        </property>
      </properties>
      <widgetModes>
        <!-- not shown in edit and view modes -->
        <mode value="view">hidden</mode>
        <mode value="edit">hidden</mode>
      </widgetModes>
    </widget>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="layouts">

    <layout name="faceted_search_default">
      <templates>
        <template mode="any">
          /layouts/layout_faceted_search_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>faceted_searches_selector</widget>
        </row>
        <row>
          <widget>saved_faceted_searches_selector</widget>
        </row>
        <row>
          <widget>actions_bar</widget>
        </row>
        <row>
          <widget>text_search</widget>
        </row>
        <row>
          <widget>date_search</widget>
        </row>
        <row>
          <widget>people_search</widget>
        </row>
        <row>
          <widget>categorization_search</widget>
        </row>
        <row>
          <widget>path_search</widget>
        </row>
        <row>
          <widget>actions_bar</widget>
        </row>
      </rows>
    </layout>

    <!-- FIXME: what differs from the default summary here? -->
    <layout name="faceted_search_summary_layout">
      <templates>
        <template mode="any">/layouts/layout_summary_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>summary_current_document_description</widget>
          <widget>summary_current_document_view</widget>
        </row>
        <row>
          <widget>summary_current_document_lc_and_version</widget>
          <widget>summary_current_document_actions</widget>
          <widget>summary_current_document_tagging</widget>
          <widget>summary_current_document_relations</widget>
        </row>
      </rows>
    </layout>

  </extension>

</component>

Documentation