Hi Agustin,
What I'm trying to say is you have to make sure the custom metadata field or any metadata fields you included in your input form should exist first in the metadata registry. For example, in one of the repositories that I'm working on, the submitter is required to provide the thesis degree name, level, discipline, adviser, committee chair, and committee member(s) when he/she chose the "Thesis" type. So in my input-forms.xml, I have this configuration:
<field>
<dc-schema>dc</dc-schema>
<dc-element>contributor</dc-element>
<dc-qualifier>chair</dc-qualifier>
<repeatable>true</repeatable>
<label>Committee chair</label>
<type-bind>Thesis,Dissertation</type-bind>
<input-type>name</input-type>
<hint></hint>
</field>
<field>
<dc-schema>dc</dc-schema>
<dc-element>contributor</dc-element>
<dc-qualifier>committeemember</dc-qualifier>
<repeatable>true</repeatable>
<label>Committee member</label>
<type-bind>Thesis,Dissertation</type-bind>
<input-type>name</input-type>
<hint></hint>
</field>
<field>
<dc-schema>thesis</dc-schema>
<dc-element>degree</dc-element>
<dc-qualifier>name</dc-qualifier>
<label>Degree</label>
<type-bind>Thesis,Dissertation</type-bind>
<input-type>onebox</input-type>
<hint>Name of the degree associated with the work as it appears within the work. (example: Masters of Arts in Education)</hint>
<required>You must enter the Degree's name.</required>
</field>
<field>
<dc-schema>thesis</dc-schema>
<dc-element>degree</dc-element>
<dc-qualifier>level</dc-qualifier>
<repeatable>false</repeatable>
<label>Level</label>
<type-bind>Thesis,Dissertation</type-bind>
<input-type>onebox</input-type>
<hint>Level of education associated with the document. (e.g., Undergraduate, Masters, Doctoral, Postdoctoral)</hint>
<required>You must enter the Degree level for this item</required>
</field>
<field>
<dc-schema>thesis</dc-schema>
<dc-element>degree</dc-element>
<dc-qualifier>discipline</dc-qualifier>
<repeatable>false</repeatable>
<label>Discipline</label>
<type-bind>Thesis,Dissertation</type-bind>
<input-type>onebox</input-type>
<hint>Area of study of the intellectual content of the document. Usually, this will be the name of a program or department.</hint>
<required>You must enter the Degree discipline for this item</required>
</field>
<field>
<dc-schema>thesis</dc-schema>
<dc-element>degree</dc-element>
<dc-qualifier>grantor</dc-qualifier>
<repeatable>true</repeatable>
<label>Degree Grantor</label>
<type-bind>Thesis,Dissertation</type-bind>
<input-type>onebox</input-type>
<hint>Institution granting the degree associated with the work.</hint>
<required>You must enter the Degree grantor for this item</required>
</field>
Notice that I have custom metadata fields not included by default in the metadata registry especially those with the "thesis" schema. So I have to create the thesis schema first:
and then 'register' these fields:
For other metadata fields such as dc.contributor.chair and dc.contributor.
committeemember, I just added them in the 'dc' schema. So when a submitter chose the type 'Thesis', in the next page, it will display these fields specific only for the thesis type:
The metadata registry can be found from this page: http://[your.repository.baseurl]/admin/metadata-registry. If any metadata fields were not found in the metadata registry, the system has no way where to put them after your user clicks the "Add" button or the "Next" button.
Hope this helps,
euler