-
-
Save rafaelpezzuto/00a6c59378f90f7889a5a3c204b00baf to your computer and use it in GitHub Desktop.
GetRecord_scielo e oai_scielo_common (versões em alteração conforme campos JATS e SPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:include href="oai_scielo_common.xsl"/> | |
<xsl:output method="xml" encoding="UTF-8" version="1.0" indent="yes" omit-xml-declaration="yes"/> | |
<xsl:template match="ERROR"> | |
<error code="idDoesNotExist">No matching identifier</error> | |
</xsl:template> | |
<xsl:template match="SERIAL"> | |
<GetRecord> | |
<record> | |
<header> | |
<identifier type="publisher-id"> | |
<xsl:value-of select="ISSUE/ARTICLE/@PID"/> | |
</identifier> | |
<issn> | |
<xsl:value-of select="ISSN" /> | |
</issn> | |
<xsl:if test="ISSUE/ARTICLE/@PROCESSDATE != ''"> | |
<xsl:apply-templates select="ISSUE/ARTICLE/@PROCESSDATE" mode="date"> | |
<xsl:with-param name="type">process-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:value-of select="ISSUE/ARTICLE/@PROCESSDATE"/></xsl:with-param> | |
</xsl:apply-templates> | |
</xsl:if> | |
</header> | |
<metadata> | |
<xsl:if test="ISSUE/ARTICLE/@DOI"> | |
<identifier type="doi"> | |
<xsl:value-of select="ISSUE/ARTICLE/@DOI"/> | |
</identifier> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@oldpid"> | |
<identifier type="old-publisher-id"> | |
<xsl:value-of select="ISSUE/ARTICLE/@oldpid"/> | |
</identifier> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@RECEIVED_DATE != ''"> | |
<xsl:apply-templates select="ISSUE/ARTICLE/@RECEIVED_DATE" mode="date"> | |
<xsl:with-param name="type">received-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:value-of select="ISSUE/ARTICLE/@RECEIVED_DATE"/></xsl:with-param> | |
</xsl:apply-templates> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@ACCEPTED_DATE != ''"> | |
<xsl:apply-templates select="ISSUE/ARTICLE/@ACCEPTED_DATE" mode="date"> | |
<xsl:with-param name="type">accepted-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:value-of select="ISSUE/ARTICLE/@ACCEPTED_DATE"/></xsl:with-param> | |
</xsl:apply-templates> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@REVIEWED_DATE != ''"> | |
<xsl:apply-templates select="ISSUE/ARTICLE/@REVIEWED_DATE" mode="date"> | |
<xsl:with-param name="type">reviewed-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:value-of select="ISSUE/ARTICLE/@REVIEWED_DATE"/></xsl:with-param> | |
</xsl:apply-templates> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@ahpdate != ''"> | |
<xsl:apply-templates select="ISSUE/ARTICLE/@ahpdate" mode="date"> | |
<xsl:with-param name="type">ahead-of-print-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:value-of select="ISSUE/ARTICLE/@ahpdate"/></xsl:with-param> | |
</xsl:apply-templates> | |
</xsl:if> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">dc:language</xsl:with-param> | |
<xsl:with-param name="value" select="ISSUE/ARTICLE/@TEXT_LANG"/> | |
</xsl:call-template> | |
<documentType> | |
<xsl:value-of select="ISSUE/ARTICLE/@DOCTYPE"/> | |
</documentType> | |
<originalLanguage> | |
<xsl:value-of select="ISSUE/ARTICLE/@ORIGINALLANG"/> | |
</originalLanguage> | |
<xsl:if test="ISSUE/ARTICLE/TITLE != ''"> | |
<title> | |
<xsl:if test="ISSUE/ARTICLE/@ORIGINALLANG != ''"> | |
<xsl:attribute name="lang"> | |
<xsl:value-of select="ISSUE/ARTICLE/@ORIGINALLANG"/> | |
</xsl:attribute> | |
</xsl:if> | |
<xsl:apply-templates mode="cdata" select="ISSUE/ARTICLE/TITLE"/> | |
</title> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/trans-title != ''"> | |
<xsl:apply-templates select="ISSUE/ARTICLE/trans-title" /> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/SUBTITLE != ''"> | |
<subtitle> | |
<xsl:value-of select="ISSUE/ARTICLE/SUBTITLE" /> | |
</subtitle> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@FPAGE != ''"> | |
<fpage> | |
<xsl:value-of select="ISSUE/ARTICLE/@FPAGE"/> | |
</fpage> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@LPAGE != ''"> | |
<lpage> | |
<xsl:value-of select="ISSUE/ARTICLE/@LPAGE"/> | |
</lpage> | |
</xsl:if> | |
<xsl:if test="ISSUE/ARTICLE/@ELOCATION_ID != ''"> | |
<elocation-id> | |
<xsl:value-of select="ISSUE/ARTICLE/@ELOCATION_ID"/> | |
</elocation-id> | |
</xsl:if> | |
<xsl:apply-templates select="ISSUE/ARTICLE/ABSTRACT"/> | |
<xsl:apply-templates select="ISSUE/ARTICLE/KEYWORD"/> | |
<xsl:apply-templates select="ISSUE/ARTICLE/LANGUAGES/PDF_LANGS"/> | |
<xsl:apply-templates select="ISSUE/ARTICLE/AUTHORS" mode="pers" /> | |
<xsl:apply-templates select="ISSUE/ARTICLE/LATTES/AUTHOR" mode="lattes" /> | |
<xsl:apply-templates select="ISSUE/ARTICLE/AFFILIATIONS" /> | |
<xsl:if test="ISSUE/ARTICLE/REFERENCES"> | |
<ref-list> | |
<xsl:for-each select="ISSUE/ARTICLE/REFERENCES/REFERENCE"> | |
<ref> | |
<xsl:if test="@NUM != ''"> | |
<xsl:attribute name="id"><xsl:value-of select="@NUM"/></xsl:attribute> | |
</xsl:if> | |
<xsl:call-template name="format_reference"/> | |
</ref> | |
</xsl:for-each> | |
</ref-list> | |
</xsl:if> | |
<!-- <ref-list>--> | |
<!-- <xsl:apply-templates select="ISSUE/ARTICLE/REFERENCES" />--> | |
<!-- </ref-list>--> | |
</metadata> | |
</record> | |
</GetRecord> | |
</xsl:template> | |
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="text()" mode="cdata"> | |
<xsl:value-of select=" concat( '<![CDATA[', . , ']]>' ) " disable-output-escaping="yes"/> | |
</xsl:template> | |
<xsl:template name="escaped_element"> | |
<xsl:param name="name"/> | |
<xsl:param name="value"/> | |
<xsl:if test="$value != ''"> | |
<xsl:value-of select=" concat( '<', $name, '>', $value, '</', $name, '>' )" disable-output-escaping="yes"/> | |
</xsl:if> | |
</xsl:template> | |
<xsl:template name="parameterized_escaped_element"> | |
<xsl:param name="name"/> | |
<xsl:param name="value"/> | |
<xsl:param name="param_name"/> | |
<xsl:param name="param_value"/> | |
<xsl:if test="$value != ''"> | |
<xsl:value-of select=" concat( '<', $name, ' ', $param_name, '= "', $param_value, '" >', $value, '</', $name, '>' )" disable-output-escaping="yes"/> | |
</xsl:if> | |
</xsl:template> | |
<xsl:template name="format_date"> | |
<xsl:param name="date"/> | |
<xsl:if test="$date"> | |
<xsl:variable name="complete_date"><xsl:value-of select="$date"/>00000000</xsl:variable> | |
<xsl:variable name="fixed_month_and_day"> | |
<xsl:choose> | |
<xsl:when test="substring($complete_date,5,2)='00'">01</xsl:when> | |
<xsl:otherwise> | |
<xsl:value-of select="substring($complete_date,5,2)"/> | |
</xsl:otherwise> | |
</xsl:choose> | |
<xsl:choose> | |
<xsl:when test="substring($complete_date,7,2)='00'">01</xsl:when> | |
<xsl:otherwise> | |
<xsl:value-of select="substring($complete_date,7,2)"/> | |
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:variable> | |
<xsl:value-of select="concat(substring($complete_date,1,4), '-', substring($fixed_month_and_day,1,2), '-', substring($fixed_month_and_day,3,2)) "/> | |
</xsl:if> | |
</xsl:template> | |
<xsl:template name="format_reference"> | |
<element_citation> | |
<xsl:attribute name="publication-type"><xsl:value-of select="PUBLICATION_TYPE_REFERENCE"/></xsl:attribute> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'journal'"> | |
<xsl:call-template name="format_reference_journal"/> | |
</xsl:if> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'conference'"> | |
<xsl:call-template name="format_reference_conference"/> | |
</xsl:if> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'thesis'"> | |
<xsl:call-template name="format_reference_thesis"/> | |
</xsl:if> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'patent'"> | |
<xsl:call-template name="format_reference_patent"/> | |
</xsl:if> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'book'"> | |
<xsl:call-template name="format_reference_book"/> | |
</xsl:if> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'link'"> | |
<xsl:call-template name="format_reference_link"/> | |
</xsl:if> | |
<xsl:if test="PUBLICATION_TYPE_REFERENCE = 'undefined'"> | |
<xsl:call-template name="format_reference_undefined"/> | |
</xsl:if> | |
</element_citation> | |
</xsl:template> | |
<xsl:template name="format_reference_journal"> | |
<source><xsl:value-of select="SOURCE_REFERENCE"/></source> | |
</xsl:template> | |
<xsl:template name="format_reference_conference"> | |
<source><xsl:value-of select="SOURCE_REFERENCE"/></source> | |
</xsl:template> | |
<xsl:template name="format_reference_thesis"> | |
</xsl:template> | |
<xsl:template name="format_reference_patent"> | |
<xsl:call-template name="parameterized_escaped_element"> | |
<xsl:with-param name="name">patent</xsl:with-param> | |
<xsl:with-param name="param_name">country</xsl:with-param> | |
<xsl:with-param name="param_value"><xsl:value-of select="PATENT_COUNTRY_REFERENCE"/></xsl:with-param> | |
<xsl:with-param name="value"> | |
<xsl:apply-templates mode="cdata" select="PATENT_NAME_REFERENCE"/> | |
</xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">source</xsl:with-param> | |
<xsl:with-param name="value"> | |
<xsl:apply-templates mode="cdata" select="SOURCE_REFERENCE"/> | |
</xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="parameterized_escaped_element"> | |
<xsl:with-param name="name">named-content</xsl:with-param> | |
<xsl:with-param name="param_name">content-type</xsl:with-param> | |
<xsl:with-param name="param_value">orgname</xsl:with-param> | |
<xsl:with-param name="value"> | |
<xsl:apply-templates mode="cdata" select="PATENT_ORGNAME_REFERENCE"/> | |
</xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">date</xsl:with-param> | |
<xsl:with-param name="value"> | |
<xsl:call-template name="format_date"> | |
<xsl:with-param name="date"><xsl:value-of select="PATENT_DATE_REFERENCE"/></xsl:with-param> | |
</xsl:call-template> | |
</xsl:with-param> | |
</xsl:call-template> | |
</xsl:template> | |
<xsl:template name="format_reference_book"> | |
</xsl:template> | |
<xsl:template name="format_reference_link"> | |
</xsl:template> | |
<xsl:template name="format_reference_undefined"> | |
</xsl:template> | |
<xsl:template match="@PROCESSDATE|@REVIEWED_DATE|@ACCEPTED_DATE|@RECEIVED_DATE|@ahpdate" mode="date"> | |
<xsl:param name="type"/> | |
<xsl:param name="value"/> | |
<date> | |
<xsl:attribute name="type"><xsl:value-of select="$type"/></xsl:attribute> | |
<xsl:call-template name="format_date"><xsl:with-param name="date" select="$value"/></xsl:call-template> | |
</date> | |
</xsl:template> | |
<xsl:template name="OAI_DC_Header"> | |
<xsl:variable name="oai-dc">xmlns:oai-dc="http://www.openarchives.org/OAI/2.0/oai_dc/"</xsl:variable> | |
<xsl:variable name="dc">xmlns:dc="http://purl.org/dc/elements/1.1/"</xsl:variable> | |
<xsl:variable name="xsi">xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</xsl:variable> | |
<xsl:variable name="schemaLocation">xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"</xsl:variable> | |
<xsl:value-of select=" concat( '<oai-dc:dc ', $oai-dc, ' ', $dc, ' ', $xsi, ' ', $schemaLocation, '>' )" disable-output-escaping="yes" /> | |
</xsl:template> | |
<xsl:template name="OAI_DC_Footer"> | |
<xsl:value-of select=" '</oai-dc:dc>' " disable-output-escaping="yes" /> | |
</xsl:template> | |
<xsl:template match="AUTHORS"> | |
<xsl:apply-templates select="AUTH_PERS/AUTHOR" mode="pers"/> | |
</xsl:template> | |
<xsl:template match="AUTHOR" mode="pers"> | |
<author> | |
<xsl:if test="ORCID"> | |
<xsl:attribute name="orcid"> | |
<xsl:value-of select="ORCID"/> | |
</xsl:attribute> | |
</xsl:if> | |
<xsl:if test="AFF"> | |
<xsl:attribute name="affid"> | |
<xsl:value-of select="AFF/@xref"/> | |
</xsl:attribute> | |
</xsl:if> | |
<xsl:value-of select="concat( '<![CDATA[ ', SURNAME , ', ' , NAME , ' ]]>' )"/> | |
</author> | |
</xsl:template> | |
<xsl:template match="AUTHOR" mode="lattes"> | |
<lattes> | |
<xsl:attribute name="fullname"> | |
<xsl:value-of select="."/> | |
</xsl:attribute> | |
<xsl:value-of select="concat( '<![CDATA[', @HREF ,']]>' )"/> | |
</lattes> | |
</xsl:template> | |
<xsl:template match="AUTHOR" mode="reference"> | |
<author><xsl:value-of select="concat( '<![CDATA[ ', SURNAME, ', ', NAME, ' ]]>')"/></author> | |
</xsl:template> | |
<xsl:template match="ORGNAME" mode="reference"> | |
<orgname><xsl:value-of select="concat( '<![CDATA[ ', ., ' ]]>' )"/></orgname> | |
</xsl:template> | |
<xsl:template match="ISSUE/ARTICLE/KEYWORD"> | |
<keyword> | |
<xsl:attribute name="lang"> | |
<xsl:value-of select="@LANG"/> | |
</xsl:attribute> | |
<xsl:apply-templates select="KEY" /> | |
<xsl:if test="SUBKEY">/</xsl:if> | |
<xsl:apply-templates select="SUBKEY" /> | |
</keyword> | |
</xsl:template> | |
<xsl:template match="ISSUE/ARTICLE/AFFILIATIONS/AFFILIATION"> | |
<affiliation> | |
<xsl:attribute name="id"> | |
<xsl:value-of select="@ID"/> | |
</xsl:attribute> | |
<xsl:if test="E-MAIL != ''"> | |
<email> | |
<xsl:apply-templates mode="cdata" select="E-MAIL"/> | |
</email> | |
</xsl:if> | |
<xsl:if test="ORGNAME != ''"> | |
<orgname> | |
<xsl:apply-templates mode="cdata" select="ORGNAME"/> | |
</orgname> | |
</xsl:if> | |
<xsl:if test="ORDDIV != ''"> | |
<orgdiv> | |
<xsl:apply-templates mode="cdata" select="ORDDIV"/> | |
</orgdiv> | |
</xsl:if> | |
<xsl:if test="CITY != ''"> | |
<city> | |
<xsl:apply-templates mode="cdata" select="CITY"/> | |
</city> | |
</xsl:if> | |
<xsl:if test="STATE != ''"> | |
<state> | |
<xsl:apply-templates mode="cdata" select="STATE"/> | |
</state> | |
</xsl:if> | |
<xsl:if test="COUNTRY != ''"> | |
<country> | |
<xsl:apply-templates mode="cdata" select="COUNTRY"/> | |
</country> | |
</xsl:if> | |
</affiliation> | |
</xsl:template> | |
<xsl:template match="KEY | SUBKEY"> | |
<xsl:apply-templates select="text()" mode="cdata"/> | |
</xsl:template> | |
<xsl:template match="ISSUE/ARTICLE/ABSTRACT"> | |
<description> | |
<xsl:attribute name="lang"> | |
<xsl:value-of select="@LANG"/> | |
</xsl:attribute> | |
<xsl:value-of disable-output-escaping="yes" select="concat( '<![CDATA[', . , ']]>' )"/> | |
</description> | |
</xsl:template> | |
<xsl:template match="ISSUE/ARTICLE/LANGUAGES/PDF_LANGS/LANG"> | |
<pdfPath> | |
<xsl:attribute name="lang"> | |
<xsl:value-of select="."/> | |
</xsl:attribute> | |
<xsl:value-of select="@TRANSLATION"/> | |
</pdfPath> | |
</xsl:template> | |
<xsl:template match="ISSUE/ARTICLE/trans-title"> | |
<title> | |
<xsl:attribute name="lang"> | |
<xsl:value-of select="@xml:lang"/> | |
</xsl:attribute> | |
<xsl:value-of select="."/> | |
</title> | |
</xsl:template> | |
<xsl:template match="ISSUE/ARTICLE/REFERENCES/REFERENCE"> | |
<ref> | |
<xsl:if test="@NUM != ''"> | |
<xsl:attribute name="id"><xsl:value-of select="@NUM"/></xsl:attribute> | |
</xsl:if> | |
<element-citation> | |
<xsl:attribute name="publication-type"> | |
<xsl:value-of select="SOURCE_REFERENCE/@TYPE"/> | |
</xsl:attribute> | |
<xsl:if test="TITLE_REFERENCE"> | |
<title> | |
<xsl:if test="TITLE_REFERENCE/@LANG != ''"> | |
<xsl:attribute name="lang"> | |
<xsl:value-of select="TITLE_REFERENCE/@LANG"/> | |
</xsl:attribute> | |
</xsl:if> | |
<xsl:apply-templates mode="cdata" select="TITLE_REFERENCE"/> | |
</title> | |
</xsl:if> | |
<authors> | |
<xsl:variable name="author_type"><xsl:value-of select="AUTHORS_REFERENCE/@TYPE"/></xsl:variable> | |
<xsl:attribute name="type"><xsl:value-of select="$author_type"/></xsl:attribute> | |
<xsl:if test="(($author_type='analytic') or ($author_type='monographic-person') or ($author_type='secondary'))"> | |
<xsl:apply-templates select="AUTHORS_REFERENCE/AUTHOR" mode="reference"/> | |
</xsl:if> | |
<xsl:if test="(($author_type='corporative') or ($author_type='monographic-institution'))"> | |
<xsl:apply-templates select="AUTHORS_REFERENCE/ORGNAME" mode="reference"/> | |
</xsl:if> | |
</authors> | |
<source> | |
<xsl:apply-templates mode="cdata" select="SOURCE_REFERENCE"/> | |
</source> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">volume</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="VOLUME_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">pages</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="PAGE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">year</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="YEAR_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">url</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="URL_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">issn</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ISSN_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">isbn</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ISBN_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">doi</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="DOI_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">accessDate</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ACCESS_DATE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">linkAccessDate</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="LINK_ACCESS_DATE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">conferenceSponsor</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_SPONSOR_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">conferenceName</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_NAME_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">conferenceEdition</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_EDITION_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">conferenceDate</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_DATE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:if test="CONFERENCE_ADDRESS_REFERENCE"> | |
<conferenceAddress> | |
<xsl:call-template name="escaped_element" > | |
<xsl:with-param name="name">city</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_ADDRESS_REFERENCE/CITY" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">state</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_ADDRESS_REFERENCE/STATE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">country</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="CONFERENCE_ADDRESS_REFERENCE/COUNTRY" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
</conferenceAddress> | |
</xsl:if> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">edition</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="EDITION_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">thesis-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="THESIS_DATE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">thesis-institution</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="THESIS_INSTITUTION_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">thesis-institution-department</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="THESIS_INSTITUTION_DEPARTMENT" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">thesis-degree</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="THESIS_DEGREE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:if test="THESIS_ADDRESS_REFERENCE"> | |
<thesis-publisher-loc> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">city</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates mode="cdata" select="THESIS_ADDRESS_REFERENCE/CITY"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">state</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates mode="cdata" select="THESIS_ADDRESS_REFERENCE/STATE"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">country</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates mode="cdata" select="THESIS_ADDRESS_REFERENCE/COUNTRY"/></xsl:with-param> | |
</xsl:call-template> | |
</thesis-publisher-loc> | |
</xsl:if> | |
<xsl:call-template name="parameterized_escaped_element"> | |
<xsl:with-param name="name">patent-patent</xsl:with-param> | |
<xsl:with-param name="param_name">country</xsl:with-param> | |
<xsl:with-param name="param_value"><xsl:value-of select="concat('"', PATENT_COUNTRY_REFERENCE, '"')"/></xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="PATENT_NAME_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">patent-source</xsl:with-param> | |
<xsl:with-param name="value"> | |
<xsl:apply-templates select="PATENT_ORGNAME_REFERENCE" mode="cdata"/> | |
</xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">patent-date</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="PATENT_DATE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">issue</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ISSUE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">issueTitle</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ISSUE_TITLE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">issuePart</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ISSUE_PART_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">serie</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="SERIE_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">serieVolume</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="SERIE_VOLUME" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">analyticVolume</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="ANALYTIC_VOLUME" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">monographicVolume</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="MONOGRAPHIC_VOLUME" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:if test="EXTENT_REFERENCE"> | |
<extent> | |
<xsl:if test="EXTENT_REFERENCE/@TYPE != ''"> | |
<xsl:attribute name="type"><xsl:value-of select="EXTENT_REFERENCE/@TYPE"/></xsl:attribute> | |
</xsl:if> | |
<xsl:apply-templates mode="cdata" select="EXTENT_REFERENCE"/> | |
</extent> | |
</xsl:if> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">tome</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="TOME_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:if test="PUBLISHER_REFERENCE != ''"> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">publisher-name</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="PUBLISHER_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
</xsl:if> | |
<xsl:if test="PUBLISHER_ADDRESS_REFERENCE != ''"> | |
<publisher-loc> | |
<xsl:if test="PUBLISHER_ADDRESS_REFERENCE"> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">city</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates mode="cdata" select="PUBLISHER_ADDRESS_REFERENCE/CITY"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">state</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates mode="cdata" select="PUBLISHER_ADDRESS_REFERENCE/STATE"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">country</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates mode="cdata" select="PUBLISHER_ADDRESS_REFERENCE/COUNTRY"/></xsl:with-param> | |
</xsl:call-template> | |
</xsl:if> | |
</publisher-loc> | |
</xsl:if> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">sponsor</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="SPONSOR_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">editor</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="EDITOR_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">comment</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="COMMENT_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">version</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="VERSION_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">pmid</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="PMID_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
<xsl:call-template name="escaped_element"> | |
<xsl:with-param name="name">pmcid</xsl:with-param> | |
<xsl:with-param name="value"><xsl:apply-templates select="PMCID_REFERENCE" mode="cdata"/></xsl:with-param> | |
</xsl:call-template> | |
</element-citation> | |
</ref> | |
</xsl:template> | |
<xsl:template match="RESUME"> | |
<xsl:variable name="from"> | |
<xsl:call-template name="format_date"> | |
<xsl:with-param name="date" select="@FROM"/> | |
</xsl:call-template> | |
</xsl:variable> | |
<xsl:variable name="until"> | |
<xsl:call-template name="format_date"> | |
<xsl:with-param name="date" select="@UNTIL"/> | |
</xsl:call-template> | |
</xsl:variable> | |
<xsl:variable name="resumptionToken"> | |
<xsl:if test="@CONTROL"> | |
<xsl:value-of select="@CONTROL"/>:<xsl:value-of select="@SET"/>:<xsl:value-of select="$from"/>:<xsl:value-of select="$until"/>:<xsl:value-of select="@METADATAPREFIX"/> | |
</xsl:if> | |
</xsl:variable> | |
<resumptionToken><xsl:value-of select="normalize-space($resumptionToken)"/></resumptionToken> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment