metacat icon indicating copy to clipboard operation
metacat copied to clipboard

View service incorrectly displays ISO* Party Individual and Role fields when empty in the XML

Open amoeba opened this issue 6 years ago • 0 comments

Was looking at https://search.dataone.org/view/10.24431/rw1k118

Saw

Screen Shot 2019-06-13 at 1 13 35 PM

The relevant XML shows two bugs:

  • 'Individual' is shown even when empty: Make the XSLT test this and act appropriately
  • 'Role' is shown when missing: Make the XSLt test for this and act appropriately
      <gmd:citedResponsibleParty>
            <gmd:CI_ResponsibleParty>
              <gmd:individualName gco:nilReason="template"/>
              <gmd:contactInfo>
                <gmd:CI_Contact>
                  <gmd:onlineResource>
                    <gmd:CI_OnlineResource>
                      <gmd:linkage>
                        <gmd:URL>https://wildlifecomputers.com/</gmd:URL>
                      </gmd:linkage>
                      <gmd:name>
                        <gco:CharacterString>Wildlife Computers</gco:CharacterString>
                      </gmd:name>
                      <gmd:description>
                        <gco:CharacterString>Wildlife Computers web page where additional details on the tag models, processing software, and data descriptors can be found</gco:CharacterString>
                      </gmd:description>
                    </gmd:CI_OnlineResource>
                  </gmd:onlineResource>
                </gmd:CI_Contact>
              </gmd:contactInfo>
              <gmd:role gco:nilReason="template"/>
            </gmd:CI_ResponsibleParty>
          </gmd:citedResponsibleParty>

amoeba avatar Jun 13 '19 21:06 amoeba