<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add some fields to dublincore.xsd in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328579#M15580</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Schemas are not overridden by default, and you indeed need to make sure your contribution is deployed after the default one (and you do not need the require on the target extension point "org.nuxeo.ecm.core.schema.TypeService" as it is implicitly required).&lt;/P&gt;
&lt;P&gt;Here's a sample configuration (not tested):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xml"&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="org.nuxeo.ecm.core.CoreExtensions.override"&amp;gt;
    &amp;lt;require&amp;gt;org.nuxeo.ecm.core.CoreExtensions&amp;lt;/require&amp;gt;

    &amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
        &amp;lt;schema name="dublincore" src="schemas/dublincore.xsd" override="true" /&amp;gt;
    &amp;lt;/extension&amp;gt;

&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 04 Nov 2016 15:46:11 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2016-11-04T15:46:11Z</dc:date>
    <item>
      <title>How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328577#M15578</link>
      <description>&lt;P&gt;I'm trying to add some fields to dublincore.xsd but without success.
I created two files and copied them under nxserver/config folder
The files contain:
dublincore.xsd&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xs:schema
  targetNamespace="http://www.nuxeo.org/ecm/schemas/dublincore/"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:nxs="http://www.nuxeo.org/ecm/schemas/dublincore/"&amp;gt;
           
  &amp;lt;xs:element name="note" type="xs:string" default="TEST"/&amp;gt;
  &amp;lt;xs:element name="noteExtended" type="xs:string" default="TEST"/&amp;gt;
&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and extension point extend-dublincore-config.xml&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="org.nuxeo.ecm.core.CoreExtensions.override"&amp;gt;
	&amp;lt;require&amp;gt;org.nuxeo.ecm.core.schema.TypeService&amp;lt;/require&amp;gt;

	&amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
		&amp;lt;schema name="dublincore" src="schemas/dublincore.xsd" /&amp;gt;
	&amp;lt;/extension&amp;gt;

&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What's wrong?
The fields in a REST AP are not visible&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:34:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328577#M15578</guid>
      <dc:creator>Antonio_Pescion</dc:creator>
      <dc:date>2016-11-04T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328578#M15579</link>
      <description>&lt;P&gt;You may need to require org.nuxeo.ecm.core.CoreExtensions in your contribution&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:41:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328578#M15579</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-11-04T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328579#M15580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Schemas are not overridden by default, and you indeed need to make sure your contribution is deployed after the default one (and you do not need the require on the target extension point "org.nuxeo.ecm.core.schema.TypeService" as it is implicitly required).&lt;/P&gt;
&lt;P&gt;Here's a sample configuration (not tested):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xml"&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="org.nuxeo.ecm.core.CoreExtensions.override"&amp;gt;
    &amp;lt;require&amp;gt;org.nuxeo.ecm.core.CoreExtensions&amp;lt;/require&amp;gt;

    &amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
        &amp;lt;schema name="dublincore" src="schemas/dublincore.xsd" override="true" /&amp;gt;
    &amp;lt;/extension&amp;gt;

&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:46:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328579#M15580</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2016-11-04T15:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328580#M15581</link>
      <description>&lt;P&gt;These errors are displyed&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:45:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328580#M15581</guid>
      <dc:creator>Antonio_Pescion</dc:creator>
      <dc:date>2016-11-04T16:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328581#M15582</link>
      <description>&lt;P&gt;I think you should not touch dublincore as a core schema and add a new scheme attached to your document types.
dublincore.xsd schema override is not suggested as it is used on dc:modified, creation etc.
Why do not you follow the proposed way, declare another schema and attached it to anywhere you like.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 17:03:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328581#M15582</guid>
      <dc:creator>Amir_Buzo</dc:creator>
      <dc:date>2016-11-04T17:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328582#M15583</link>
      <description>&lt;P&gt;Resolved. I have created a new schema called "extra" and added it to Picture and File type&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 07:59:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328582#M15583</guid>
      <dc:creator>Antonio_Pescion</dc:creator>
      <dc:date>2016-11-18T07:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some fields to dublincore.xsd</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328583#M15584</link>
      <description>&lt;P&gt;Well i am glad to hear that! That's is the best way and nuxeo compliant.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 08:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-some-fields-to-dublincore-xsd/m-p/328583#M15584</guid>
      <dc:creator>Amir_Buzo</dc:creator>
      <dc:date>2016-11-18T08:47:42Z</dc:date>
    </item>
  </channel>
</rss>

