Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.81 KB

md-contact.md

File metadata and controls

32 lines (20 loc) · 1.81 KB

Metadata contact

Purpose: At least one point of contact must be given.

Prerequisites

Test method

The test first checks if a contact element is given. It then performs the following checks for every element at gmd:contact:

  • There must not be an empty characterstring at ./gmd:organisationName
  • There must not be an empty characterstring at ./gmd:contactInfo/*/gmd:address/*/gmd:electronicMailAddress. Check electronicMailAddress with the regular expresion ^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$. If the string does not match the regular expression, the test fails (note: regex built for case insensitive match).

Reference(s)

Test type: Automated

Notes

In the ETS, an updated regex '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$' has been used (regex are case sensitive and special characters like "." and "+" have to be escaped).

##Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression (relative to gmd:MD_Metadata)
Contact ./gmd:contact/gmd:CI_ResponsibleParty
Organisation Name ./gmd:organisationName
Electronic Mail Address ./gmd:contactInfo//gmd:address//gmd:electronicMailAddress