Hello everybody,
We are implementing a new schema plugin for our project in GeoNetwork. For some elements, e.g. block_responsible_contact we want to use directory entries similar to gmd:citedResponsibleParty of schema ISO19139. Hence, in file schemas/new_schema/src/main/plugin/phenoroam/layout/config-editor.xml we inserted the following configuration for the field:
<directiveAttributes
data-template-add-action=“true”
data-search-action=“true”
data-popup-action=“false”
data-insert-modes=“”
data-template-type=“pr:block_person”
data-filter=‘{“_root”: “pr:block_person”}’/>
An example for the corresponding directory entry (subtemplate) is:
<?xml version="1.0" encoding="UTF-8"?>
<pr:block_person xmlns:pr=“http://www.phenorob.de/”>
pr:item_nameMax</pr:item_name>
pr:item_surnameMueller</pr:item_surname>
pr:item_emailmail@anonymised.com</pr:item_email>
pr:item_affiliationSome Affiliation</pr:item_affiliation>
</pr:block_person>
A snippet of a record is:
<?xml version="1.0" encoding="UTF-8"?>
…
…
pr:item_nameMax</pr:item_name>
pr:item_surnameMueller</pr:item_surname>
pr:item_emailmail@anonymised.com</pr:item_email>
pr:item_affiliationSome Affiliation</pr:item_affiliation>
</pr:block_person>
</pr:block_responsible_contact>
…
</pr:block_general>
…
Further, we adapted the index-subtemplate.xsl and schema-ident.xml.
The problem arises in the editor: the directory entries are found and suggested in the drop down menu, but they are not inserted into the record when pressing the xlink add or the xml add button.
Is there any other file or anything else we need to consider or adapt in order to get the data-gn-directory-selector to work for our implementation?
Best wishes,
- Bonerath