Hi,
I’m working with schema-suggestions.xml to limit the available options when editing a record. This is working fine up to a point, but I’ve reached a point where I am seeing unexpected behaviour.
The two elements I am trying to work with are described here https://www.agi.org.uk/agi-groups/standards-committee/uk-gemini/40-gemini/1062-gemini-datasets-and-data-series#25 and here https://www.agi.org.uk/agi-groups/standards-committee/uk-gemini/40-gemini/1062-gemini-datasets-and-data-series#26.
They both fall within gmd:resourceConstraints\gmd:MD_LegalConstraints blocks, but the guidelines state that they must be in separate gmd:resourceConstraints blocks.
I’m using the following in schema-suggestions.xml (adapted from ISO19139):
However the behaviour I see is that the button to add a new gmd:resourceConstraints block expands immediately to show empty gmd:accessConstraints, gmd:useConstraints elements (plus gmd:otherConstraints, which is behaving correctly), whereas the behaviour I want is a further option to choose from either gmd:accessConstraints or gmd:useConstraints, in the same way that gmd:otherConstraints offers the choice of either anchor or text.
Is this because gmd:resourceConstraints only contains one option? How can I work around this?
Thanks
Jo
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For urgent responses at that time, please visit support.astuntechnology.com or phone our office on 01372 744009
–
Sign up to our mailing list for updates on news, products, conferences, events and training
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18 7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
iShare - enterprise geographic intelligence platform
GeoServer, PostGIS and QGIS training
Helpdesk and customer portal
Company registration no. 5410695. Registered in England and Wales. Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no. 864201149.