Commit eeee6103 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Additional context for citation splitting

parent e21151ec
......@@ -147,11 +147,22 @@
<!-- MERIDIAN edit - this field will be used instead for holding an APA style citation.
To reduce the risk that our Discovery layer reads in 'citations' from things that are not actually citations,
I use a check for a controlled leading string that would be unlikely to be present in other records. -->
<citation>
<xsl:if test="./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString[starts-with(text(),'MERIDIAN-CITE-AS: ')]">
<xsl:value-of select="substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, ':')"/>
</xsl:if>
</citation>
<xsl:if test="./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString[starts-with(text(),'MERIDIAN-CITE-AS|')]">
<citationItalics>
<xsl:value-of select="substring-before(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|')"/>
</citationItalics>
<citationAuthorYear>
<xsl:value-of select="substring-before(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|')"/>
</citationAuthorYear>
<citationTitle>
<xsl:value-of select="substring-before(substring-after(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|'), '|')"/>
</citationTitle>
<citationRemainder>
<xsl:value-of select="substring-before(substring-after(substring-after(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|'), '|'), '|')"/>
</citationRemainder>
</xsl:if>
<uuid>
<xsl:value-of select="$identifier"/>
</uuid>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment