<?xml version="1.0" encoding="UTF-8"?>

<!-- Operation Definitions -->
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="senaite.core">

    <record name="bika.lims.client.default_landing_page">
      <field type="plone.registry.field.Choice">
        <default>analysisrequests</default>
        <description i18n:translate="">Select the default landing page. This is used when a Client user logs into the system, or when a client is selected from the client folder listing.</description>
        <required>True</required>
        <title i18n:translate="">Client Landing Page</title>
          <values>
            <element>analysisrequests</element>
            <element>batches</element>
          </values>
      </field>
    </record>

    <record name="bika.lims.analysisrequest.default_arreport_template">
        <field type="plone.registry.field.Choice">
            <default>default.pt</default>
            <description i18n:translate="">Select the template which will be used, by default, when publishing ARs.</description>
            <required>True</required>
            <title i18n:translate="">Default ARReport Template</title>
            <vocabulary key="vocabulary">bika.lims.vocabularies.ARReportTemplates</vocabulary>
        </field>
    </record>

    <!-- Dashboard panels visibility -->
    <record name="bika.lims.dashboard_panels_visibility">
        <field type="plone.registry.field.Dict">
            <title>Dashboard panels visibility</title>
            <description>
                It is a dictionary with dashboard panel names as keys and
                strings as values. Values are strings containing the role and
                view permission for each role following this format:
                "role1,yes,role2,no,rol3,no"
            </description>
            <key_type type="plone.registry.field.TextLine" />
            <value_type type="plone.registry.field.TextLine" />
        </field>
        <value>
            <element key="analyses">null</element>
            <element key="analysisrequests">null</element>
            <element key="worksheets">null</element>
            <element key="samples">null</element>
        </value>
    </record>

  <!-- Hidden Attributes-->
  <record name="bika.lims.hiddenattributes">
     <field type="plone.registry.field.Tuple">
       <title>Site Hidden Attributes</title>
       <description>One item per class</description>
       <value_type type="plone.registry.field.List">
         <title>Field list</title>
         <description>First row is Class name followed by one Field name per row</description>
         <value_type type="plone.registry.field.TextLine">
           <title>Field Name</title>
         </value_type>
       </value_type>
     </field>
  </record>
</registry>
