2022-12-01 10:01:11 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-11-07 12:55:02 +00:00
2022-11-25 11:34:57 +00:00
< xsl:stylesheet version = "3.0"
2022-11-16 12:30:56 +00:00
xmlns="http://www.openarchives.org/OAI/2.0/"
2022-11-25 11:34:57 +00:00
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2022-11-16 12:30:56 +00:00
xmlns:dc="http://purl.org/dc/elements/1.1/"
2022-11-25 11:34:57 +00:00
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
2022-11-16 12:30:56 +00:00
<!-- add include here for each new metadata format -->
< xsl:include href = "assets/oai_datacite.xslt" / >
< xsl:include href = "assets/oai_2_iso19139.xslt" / >
2022-12-02 11:26:25 +00:00
< xsl:output method = "xml" indent = "yes" encoding = "utf-8" / >
2022-11-16 12:30:56 +00:00
< xsl:param name = "responseDate" / >
< xsl:param name = "unixTimestamp" / >
< xsl:param name = "email" / >
< xsl:param name = "earliestDatestamp" / >
< xsl:param name = "repositoryName" / >
< xsl:param name = "repIdentifier" / >
< xsl:param name = "doiPrefix" / >
< xsl:param name = "sampleIdentifier" / >
< xsl:param name = "dateDelete" / >
< xsl:param name = "totalIds" / >
< xsl:param name = "res" / >
< xsl:param name = "cursor" / >
< xsl:param name = "oai_verb" / >
< xsl:param name = "oai_metadataPrefix" / >
< xsl:param name = "oai_error_code" / >
< xsl:param name = "oai_error_message" / >
< xsl:param name = "baseURL" / >
2022-11-29 10:37:20 +00:00
<!-- <xsl:param name="setPubType" />
2022-12-01 09:47:01 +00:00
< xsl:param name = "downloadLink" / >
< xsl:param name = "doiLink" / >
< xsl:param name = "docId" / >
< xsl:param name = "repURL" / >
< xsl:param name = "oai_resumptionToken" / >
< xsl:param name = "oai_identifier" / >
< xsl:param name = "oai_from" / >
< xsl:param name = "oai_until" / >
< xsl:param name = "oai_set" / > -->
2022-11-29 10:37:20 +00:00
< xsl:variable name = "langCodes" select = "document('assets/langCodeMap.xml')/langCodeMap/langCode" / >
2022-11-16 12:30:56 +00:00
2022-12-06 12:52:55 +00:00
<!-- Characters we'll support.
We could add control chars 0-31 and 127-159, but we won't. -->
< xsl:variable name = "ascii" > !"#$%& '()*+,-./0123456789:;< => ?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~< / xsl:variable >
< xsl:variable name = "latin1" >   ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ­ ® ¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ < / xsl:variable >
<!-- Characters that usually don't need to be escaped -->
< xsl:variable name = "safe" > !'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~< / xsl:variable >
< xsl:variable name = "hex" > 0123456789ABCDEF< / xsl:variable >
< xsl:template name = "url-encode" >
< xsl:param name = "str" / >
< xsl:if test = "$str" >
< xsl:variable name = "first-char" select = "substring($str,1,1)" / >
< xsl:choose >
< xsl:when test = "contains($safe,$first-char)" >
< xsl:value-of select = "$first-char" / >
< / xsl:when >
< xsl:otherwise >
< xsl:variable name = "codepoint" >
< xsl:choose >
< xsl:when test = "contains($ascii,$first-char)" >
< xsl:value-of select = "string-length(substring-before($ascii,$first-char)) + 32" / >
< / xsl:when >
< xsl:when test = "contains($latin1,$first-char)" >
< xsl:value-of select = "string-length(substring-before($latin1,$first-char)) + 160" / >
< / xsl:when >
< xsl:otherwise >
< xsl:message terminate = "no" > Warning: string contains a character that is out of range! Substituting "?".< / xsl:message >
< xsl:text > 63< / xsl:text >
< / xsl:otherwise >
< / xsl:choose >
< / xsl:variable >
< xsl:variable name = "hex-digit1" select = "substring($hex,floor($codepoint div 16) + 1,1)" / >
< xsl:variable name = "hex-digit2" select = "substring($hex,$codepoint mod 16 + 1,1)" / >
< xsl:value-of select = "concat('%',$hex-digit1,$hex-digit2)" / >
< / xsl:otherwise >
< / xsl:choose >
< xsl:if test = "string-length($str) > 1" >
< xsl:call-template name = "url-encode" >
< xsl:with-param name = "str" select = "substring($str,2)" / >
< / xsl:call-template >
< / xsl:if >
< / xsl:if >
< / xsl:template >
2022-11-16 12:30:56 +00:00
<!-- create the head of oai response -->
< xsl:template match = "/root" >
<!-- stylesheet for browser -->
< xsl:processing-instruction name = "xml-stylesheet" >
2022-12-06 12:52:55 +00:00
< xsl:text > type="text/xsl" href="assets/oai2_style.xslt"< / xsl:text >
2022-11-16 12:30:56 +00:00
< / xsl:processing-instruction >
2022-11-29 10:37:20 +00:00
< OAI-PMH xsi:schemaLocation = "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" >
2022-11-16 12:30:56 +00:00
< responseDate >
< xsl:value-of select = "$responseDate" / >
< / responseDate >
< request >
< xsl:if test = "$oai_verb != ''" >
< xsl:attribute name = "verb" >
< xsl:value-of select = "$oai_verb" / >
< / xsl:attribute >
< / xsl:if >
< xsl:if test = "$oai_metadataPrefix != ''" >
< xsl:attribute name = "metadataPrefix" >
< xsl:value-of select = "$oai_metadataPrefix" / >
< / xsl:attribute >
< / xsl:if >
< xsl:value-of select = "$baseURL" / >
< / request >
2022-11-25 12:45:26 +00:00
< xsl:if test = "string($oai_error_code) != ''" >
2022-11-16 12:30:56 +00:00
< error >
< xsl:attribute name = "code" >
2022-11-25 12:45:26 +00:00
< xsl:value-of select = "string($oai_error_code)" / >
2022-11-16 12:30:56 +00:00
< / xsl:attribute >
< xsl:value-of select = "$oai_error_message" / >
< / error >
< / xsl:if >
<!-- create the rest of oai response depending on oai_verb -->
< xsl:choose >
< xsl:when test = "$oai_verb='GetRecord'" >
< xsl:apply-templates select = "Datasets" mode = "GetRecord" / >
< / xsl:when >
< xsl:when test = "$oai_verb='Identify'" >
< xsl:apply-templates select = "Datasets" mode = "Identify" / >
< / xsl:when >
< xsl:when test = "$oai_verb='ListIdentifiers'" >
< xsl:apply-templates select = "Datasets" mode = "ListIdentifiers" / >
< / xsl:when >
< xsl:when test = "$oai_verb='ListMetadataFormats'" >
< xsl:apply-templates select = "Datasets" mode = "ListMetadataFormats" / >
< / xsl:when >
< xsl:when test = "$oai_verb='ListRecords'" >
< xsl:apply-templates select = "Datasets" mode = "ListRecords" / >
< / xsl:when >
< xsl:when test = "$oai_verb='ListSets'" >
< xsl:apply-templates select = "Datasets" mode = "ListSets" / >
< / xsl:when >
< / xsl:choose >
< / OAI-PMH >
< / xsl:template >
<!-- template for Identiy -->
< xsl:template match = "Datasets" mode = "Identify" >
< Identify >
< repositoryName >
< xsl:value-of select = "$repositoryName" / >
< / repositoryName >
< baseURL >
< xsl:value-of select = "$baseURL" / >
< / baseURL >
< protocolVersion >
< xsl:text > 2.0< / xsl:text >
< / protocolVersion >
< adminEmail >
< xsl:value-of select = "$email" / >
< / adminEmail >
< earliestDatestamp >
< xsl:value-of select = "$earliestDatestamp" / >
< / earliestDatestamp >
< deletedRecord >
< xsl:text > persistent< / xsl:text >
< / deletedRecord >
< granularity >
< xsl:text > YYYY-MM-DDThh:mm:ssZ< / xsl:text >
< / granularity >
< description >
< oai-identifier xmlns = "http://www.openarchives.org/OAI/2.0/oai-identifier" xsi:schemaLocation = "http://www.openarchives.org/OAI/2.0/oai-identifier http://www.openarchives.org/OAI/2.0/oai-identifier.xsd" >
< scheme >
< xsl:text > oai< / xsl:text >
< / scheme >
< repositoryIdentifier >
< xsl:value-of select = "$repIdentifier" / >
< / repositoryIdentifier >
< delimiter >
< xsl:text > :< / xsl:text >
< / delimiter >
< sampleIdentifier >
< xsl:value-of select = "$sampleIdentifier" / >
< / sampleIdentifier >
< / oai-identifier >
< / description >
2022-11-29 08:07:48 +00:00
<!-- <description>
2022-12-01 09:47:01 +00:00
< eprints xmlns = "http://www.openarchives.org/OAI/1.1/eprints" xsi:schemaLocation = "http://www.openarchives.org/OAI/1.1/eprints http://www.openarchives.org/OAI/1.1/eprints.xsd" >
< content >
< text >
Tethys RDR ist ein Datenverlag der Geologischen Bundesanstalt (GBA), der ausschließlich an der GBA generierte geowissenschaftliche Forschungsdaten publiziert.
Die Datenpublikationen können sowohl in deutscher, als auch in englischer Sprache publiziert werden.
Durch die Bereitstellung der Datenpublikation zusammen mit Metadaten nach standardisierten Schemata werden die Publikationen auffindbar und zitierbar.
< / text >
< URL > https://tethys.at/help< / URL >
< / content >
< metadataPolicy >
< text >
All bibliographic metadata provided via this interface, except abstracts, is hereby made available under CC0 license, free to share and re-use.
< / text >
< URL > http://creativecommons.org/publicdomain/zero/1.0/deed.de< / URL >
< / metadataPolicy >
< comment >
This institutional repository is powered by the Tethys repository software,
which is an enhancement of OPSUS4 (https://www.kobv.de/entwicklung/software/opus-4/).
See https://gitea.geologie.ac.at/geolba/tethys/ for more information.
< / comment >
< / eprints >
< / description > -->
< / Identify >
2022-11-16 12:30:56 +00:00
< / xsl:template >
<!-- template for ListMetadataFormats -->
< xsl:template match = "Datasets" mode = "ListMetadataFormats" >
< ListMetadataFormats >
< metadataFormat >
< metadataPrefix >
< xsl:text > oai_dc< / xsl:text >
< / metadataPrefix >
< schema >
< xsl:text > http://www.openarchives.org/OAI/2.0/oai_dc.xsd< / xsl:text >
< / schema >
< metadataNamespace >
< xsl:text > http://www.openarchives.org/OAI/2.0/oai_dc/< / xsl:text >
< / metadataNamespace >
< / metadataFormat >
< metadataFormat >
< metadataPrefix >
< xsl:text > oai_datacite< / xsl:text >
< / metadataPrefix >
< schema >
< xsl:text > http://schema.datacite.org/meta/kernel-4.3/metadata.xsd< / xsl:text >
< / schema >
< metadataNamespace >
< xsl:text > http://datacite.org/schema/kernel-4< / xsl:text >
< / metadataNamespace >
< / metadataFormat >
< metadataFormat >
< metadataPrefix > iso19139< / metadataPrefix >
< schema > http://www.isotc211.org/2005/gmd/gmd.xsd< / schema >
< metadataNamespace > http://www.isotc211.org/2005/gmd< / metadataNamespace >
< / metadataFormat >
< / ListMetadataFormats >
< / xsl:template >
< xsl:template match = "Datasets" mode = "ListSets" >
< ListSets >
< xsl:apply-templates select = "Rdr_Sets" / >
< / ListSets >
< / xsl:template >
< xsl:template match = "Rdr_Sets" >
< set >
< setSpec >
< xsl:value-of select = "@Type" / >
< / setSpec >
< setName >
< xsl:value-of select = "@TypeName" / >
< / setName >
< / set >
< / xsl:template >
< xsl:template match = "Datasets" mode = "ListIdentifiers" >
< xsl:if test = "count(Rdr_Dataset) > 0" >
< ListIdentifiers >
< xsl:apply-templates select = "Rdr_Dataset" / >
2022-11-25 12:45:26 +00:00
< xsl:if test = "number($totalIds) > 0" >
2022-11-16 12:30:56 +00:00
< resumptionToken >
< xsl:attribute name = "expirationDate" >
< xsl:value-of select = "$dateDelete" / >
< / xsl:attribute >
< xsl:attribute name = "completeListSize" >
< xsl:value-of select = "$totalIds" / >
< / xsl:attribute >
< xsl:attribute name = "cursor" >
< xsl:value-of select = "$cursor" / >
< / xsl:attribute >
< xsl:value-of select = "$res" / >
< / resumptionToken >
< / xsl:if >
< / ListIdentifiers >
2022-11-07 12:55:02 +00:00
< / xsl:if >
2022-11-16 12:30:56 +00:00
< / xsl:template >
< xsl:template match = "Datasets" mode = "ListRecords" >
< xsl:if test = "count(Rdr_Dataset) > 0" >
< ListRecords >
< xsl:apply-templates select = "Rdr_Dataset" / >
2022-11-25 12:45:26 +00:00
< xsl:if test = "number($totalIds) > 0" >
2022-11-16 12:30:56 +00:00
< resumptionToken >
< xsl:attribute name = "expirationDate" >
< xsl:value-of select = "$dateDelete" / >
< / xsl:attribute >
< xsl:attribute name = "completeListSize" >
< xsl:value-of select = "$totalIds" / >
< / xsl:attribute >
< xsl:attribute name = "cursor" >
< xsl:value-of select = "$cursor" / >
< / xsl:attribute >
< xsl:value-of select = "$res" / >
< / resumptionToken >
< / xsl:if >
< / ListRecords >
2022-11-07 12:55:02 +00:00
< / xsl:if >
2022-11-16 12:30:56 +00:00
< / xsl:template >
< xsl:template match = "Datasets" mode = "GetRecord" >
< GetRecord >
< xsl:apply-templates select = "Rdr_Dataset" / >
< / GetRecord >
< / xsl:template >
< xsl:template match = "Rdr_Dataset" >
< xsl:choose >
< xsl:when test = "$oai_verb='ListIdentifiers'" >
< xsl:call-template name = "Rdr_Dataset_Data" / >
< / xsl:when >
< xsl:otherwise >
< record >
< xsl:call-template name = "Rdr_Dataset_Data" / >
< / record >
< / xsl:otherwise >
< / xsl:choose >
< / xsl:template >
< xsl:template name = "Rdr_Dataset_Data" >
< header >
< xsl:if test = "@ServerState='deleted'" >
< xsl:attribute name = "status" >
< xsl:text > deleted< / xsl:text >
< / xsl:attribute >
< / xsl:if >
< identifier >
< xsl:text > oai:< / xsl:text >
< xsl:value-of select = "$repIdentifier" / >
< xsl:text > :< / xsl:text >
< xsl:value-of select = "@PublishId" / >
< / identifier >
< datestamp >
< xsl:choose >
< xsl:when test = "ServerDateModified" >
< xsl:variable name = "dateModified" select = "concat(
ServerDateModified/@Year, '-',
format-number(number(ServerDateModified/@Month),'00'), '-',
format-number(number(ServerDateModified/@Day),'00'), 'T',
format-number(number(ServerDateModified/@Hour),'00'), ':',
format-number(number(ServerDateModified/@Minute),'00'), ':',
format-number(number(ServerDateModified/@Second),'00'), 'Z'
)" />
< xsl:value-of select = "$dateModified" / >
< / xsl:when >
< xsl:otherwise >
< xsl:variable name = "datePublished" select = "concat(
ServerDatePublished/@Year, '-',
format-number(number(ServerDatePublished/@Month),'00'), '-',
format-number(number(ServerDatePublished/@Day),'00'), 'T',
format-number(number(ServerDatePublished/@Hour),'00'), ':',
format-number(number(ServerDatePublished/@Minute),'00'), ':',
format-number(number(ServerDatePublished/@Second),'00'), 'Z'
)" />
< xsl:value-of select = "$datePublished" / >
< / xsl:otherwise >
< / xsl:choose >
< / datestamp >
<!-- <setSpec>
< xsl:value-of select = "SetSpec/@Value" / >
< / setSpec > -->
<!-- loop -->
< xsl:apply-templates select = "SetSpec" / >
2022-11-25 11:34:57 +00:00
< setSpec >
< xsl:text > open_access< / xsl:text >
< / setSpec >
< setSpec >
< xsl:text > doc-type:ResearchData< / xsl:text >
< / setSpec >
2022-11-16 12:30:56 +00:00
< / header >
< xsl:choose >
<!-- nicht bei ListIdentifiers und auch nicht bei gelöschten Datensätzen -->
< xsl:when test = "$oai_verb!='ListIdentifiers' and @ServerState!='deleted'" >
< metadata >
<!-- <xsl:value - of select="$oai_metadataPrefix" /> -->
< xsl:choose >
< xsl:when test = "$oai_metadataPrefix='oai_dc'" >
< xsl:apply-templates select = "." mode = "oai_dc" / >
< / xsl:when >
< xsl:when test = "$oai_metadataPrefix='oai_datacite'" >
< xsl:apply-templates select = "." mode = "oai_datacite" / >
< / xsl:when >
< xsl:when test = "$oai_metadataPrefix='iso19139'" >
< xsl:apply-templates select = "." mode = "iso19139" / >
< / xsl:when >
< / xsl:choose >
< / metadata >
< / xsl:when >
< / xsl:choose >
< / xsl:template >
< xsl:template match = "SetSpec" >
< setSpec >
2022-11-28 09:34:34 +00:00
< xsl:value-of select = "@Value" / >
2022-11-16 12:30:56 +00:00
< / setSpec >
< / xsl:template >
2022-11-25 11:34:57 +00:00
2022-11-16 12:30:56 +00:00
< xsl:template match = "Rdr_Dataset" mode = "oai_dc" >
< oai_dc:dc xsi:schemaLocation = "http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd" >
<!-- dc:title -->
< xsl:apply-templates select = "TitleMain" mode = "oai_dc" / >
<!-- dc:title -->
< xsl:apply-templates select = "TitleAdditional" mode = "oai_dc" / >
<!-- <dc:creator> -->
<!-- Creator: Autor (falls vorhanden), sonst Herausgeber (falls vorhanden), sonst Urhebende Koerperschaft -->
< xsl:choose >
< xsl:when test = "PersonAuthor" >
2023-04-04 12:39:16 +00:00
< xsl:apply-templates select = "PersonAuthor" mode = "oai_dc" >
< xsl:sort select = "@SortOrder" / >
< / xsl:apply-templates >
2022-11-16 12:30:56 +00:00
< / xsl:when >
< xsl:when test = "@CreatingCorporation" >
< dc:creator >
< xsl:value-of select = "@CreatingCorporation" / >
< / dc:creator >
< / xsl:when >
< / xsl:choose >
<!-- dc:subject -->
< xsl:apply-templates select = "Subject" mode = "oai_dc" / >
2022-12-02 14:15:33 +00:00
< xsl:apply-templates select = "Collection" mode = "oai_dc" / >
2022-11-16 12:30:56 +00:00
<!-- dc:description -->
< xsl:apply-templates select = "TitleAbstract" mode = "oai_dc" / >
<!-- dc:description -->
< xsl:apply-templates select = "TitleAbstractAdditional" mode = "oai_dc" / >
<!-- dc:publisher -->
< dc:publisher >
<!-- <xsl:value - of select="@PublisherName" /> -->
< xsl:value-of select = "@CreatingCorporation" / >
< / dc:publisher >
<!-- dc:contributor -->
2023-04-04 12:39:16 +00:00
< xsl:apply-templates select = "PersonContributor" mode = "oai_dc" >
< xsl:sort select = "@SortOrder" / >
< / xsl:apply-templates >
2022-11-16 12:30:56 +00:00
<!-- dc:date (call - template, weil die 'Funktion' nur einmal aufgerufen werden soll, nicht einmal für jedes Date -->
< xsl:call-template name = "RdrDate" / >
<!-- dc:date: embargo date -->
< xsl:apply-templates select = "EmbargoDate" mode = "oai_dc" / >
2022-11-25 11:34:57 +00:00
<!-- dc:type -->
2022-11-25 13:35:37 +00:00
< dc:type > < xsl:text > Dataset< / xsl:text > < / dc:type >
2022-11-25 11:34:57 +00:00
< dc:type >
2022-11-25 13:35:37 +00:00
< xsl:text > doc-type:ResearchData< / xsl:text >
2022-11-25 11:34:57 +00:00
< / dc:type >
2022-11-16 12:30:56 +00:00
<!-- dc:format -->
2022-11-28 09:34:34 +00:00
< xsl:apply-templates select = "File/@MimeType" mode = "oai_dc" / >
2022-11-16 12:30:56 +00:00
<!-- <dc:format> -->
< xsl:apply-templates select = "File" mode = "oai_dc" / >
<!-- dc:identifier -->
<!-- <xsl:if test="Identifier">
< xsl:apply-templates select = "Identifier" mode = "oai_dc" / >
< / xsl:if > -->
< dc:identifier >
2022-12-06 12:52:55 +00:00
< xsl:value-of select = "string(@landingpage)" / >
<!-- <xsl:call - template name="url - encode">
2023-04-04 12:39:16 +00:00
< xsl:with-param name = "str" select = "@landingpage" / >
< / xsl:call-template > -->
< / dc:identifier >
2022-11-16 12:30:56 +00:00
<!-- dc:language -->
< xsl:apply-templates select = "@Language" mode = "oai_dc" / >
<!-- dc:relation -->
< xsl:if test = "Identifier" >
< xsl:apply-templates select = "Identifier" mode = "oai_dc" / >
< / xsl:if >
< xsl:apply-templates select = "Reference" mode = "oai_dc" / >
<!-- dc:coverage -->
< xsl:apply-templates select = "Coverage" mode = "oai_dc" / >
<!-- dc:rights -->
< xsl:apply-templates select = "Licence" mode = "oai_dc" / >
< xsl:if test = "EmbargoDate and ($unixTimestamp < EmbargoDate/@UnixTimestamp)" >
< dc:rights > embargo< / dc:rights >
< / xsl:if >
2022-12-02 11:26:25 +00:00
<!-- dc:source -->
< xsl:call-template name = "citation" / >
2022-11-16 12:30:56 +00:00
< / oai_dc:dc >
< / xsl:template >
2022-12-02 11:26:25 +00:00
< xsl:template name = "citation" >
< dc:source >
< xsl:variable name = "creatorName" >
< xsl:for-each select = "*[name() = 'PersonAuthor']" >
< xsl:variable name = "person" select = "." / >
< xsl:variable name = "uppercase" select = "'ABC..XYZ'" / >
< xsl:variable name = "lowercase" select = "'abc..zyz'" / >
< xsl:variable name = "authorName" >
< xsl:choose >
< xsl:when test = "string($person/@FirstName)" >
< xsl:variable name = "name" select = "concat(
$person/@LastName, ', ', concat(translate(substring($person/@FirstName, 1, 1), $lowercase, $uppercase), '.')
)" />
< xsl:value-of select = "$name" / >
< / xsl:when >
< xsl:otherwise >
< xsl:value-of select = "$person/@LastName" / >
< / xsl:otherwise >
< / xsl:choose >
< / xsl:variable >
< xsl:value-of select = "normalize-space($authorName)" / >
< xsl:choose >
< xsl:when test = "position() != last()" > ,< / xsl:when >
< / xsl:choose >
< / xsl:for-each >
< / xsl:variable >
< xsl:variable name = "year" select = "concat( ' (', string(ServerDatePublished/@Year), '): ' )" / >
< xsl:variable name = "mainTitle" select = "string(TitleMain/@Value)" / >
< xsl:variable name = "creatingCorporation" select = "concat('.', string(@CreatingCorporation), ', ')" / >
< xsl:variable name = "publisherName" select = "string(@PublisherName)" / >
< xsl:value-of select = "concat($creatorName, $year, $mainTitle, $creatingCorporation, $publisherName, ', Wien')" / >
< / dc:source >
< / xsl:template >
2022-11-16 12:30:56 +00:00
< xsl:template match = "Coverage" mode = "oai_dc" >
< dc:coverage >
< xsl:variable name = "geolocation" select = "concat(
'SOUTH-BOUND LATITUDE: ', @YMin,
' * WEST-BOUND LONGITUDE: ', @XMin,
' * NORTH-BOUND LATITUDE: ', @YMax,
' * EAST-BOUND LONGITUDE: ', @XMax
)" />
< xsl:value-of select = "$geolocation" / >
<!-- <xsl:text>
</xsl:text> -->
< xsl:if test = "@ElevationMin != '' and @ElevationMax != ''" >
< xsl:value-of select = "concat(' * ELEVATION MIN: ', @ElevationMin, ' * ELEVATION MAX: ', @ElevationMax)" / >
< / xsl:if >
< xsl:if test = "@ElevationAbsolut != ''" >
< xsl:value-of select = "concat(' * ELEVATION ABSOLUT: ', @ElevationAbsolut)" / >
< / xsl:if >
<!-- <xsl:text>
</xsl:text> -->
< xsl:if test = "@DepthMin != '' and @DepthMax != ''" >
< xsl:value-of select = "concat(' * DEPTH MIN: ', @DepthMin, ' * DEPTH MAX: ', @DepthMax)" / >
< / xsl:if >
< xsl:if test = "@DepthAbsolut != ''" >
< xsl:value-of select = "concat(' * DEPTH ABSOLUT: ', @DepthAbsolut)" / >
< / xsl:if >
<!-- <xsl:text>
</xsl:text> -->
< xsl:if test = "@TimeMin != '' and @TimeMax != ''" >
< xsl:value-of select = "concat(' * TIME MIN: ', @TimeMin, ' * TIME MAX: ', @TimeMax)" / >
< / xsl:if >
< xsl:if test = "@TimeAbsolut != ''" >
< xsl:value-of select = "concat(' * TIME ABSOLUT: ', @TimeAbsolut)" / >
< / xsl:if >
< / dc:coverage >
< / xsl:template >
< xsl:template match = "TitleMain" mode = "oai_dc" >
< dc:title >
< xsl:attribute name = "xml:lang" >
< xsl:value-of select = "@Language" / >
2022-11-07 12:55:02 +00:00
< / xsl:attribute >
2022-11-16 12:30:56 +00:00
< xsl:value-of select = "@Value" / >
< / dc:title >
< / xsl:template >
< xsl:template match = "TitleAdditional" mode = "oai_dc" >
< dc:title >
< xsl:attribute name = "xml:lang" >
< xsl:value-of select = "@Language" / >
2022-11-07 12:55:02 +00:00
< / xsl:attribute >
2022-11-16 12:30:56 +00:00
< xsl:value-of select = "@Value" / >
< / dc:title >
< / xsl:template >
< xsl:template match = "TitleAbstract" mode = "oai_dc" >
< dc:description >
< xsl:attribute name = "xml:lang" >
< xsl:value-of select = "@Language" / >
2022-11-07 12:55:02 +00:00
< / xsl:attribute >
2022-11-16 12:30:56 +00:00
< xsl:value-of select = "@Value" / >
< / dc:description >
< / xsl:template >
< xsl:template match = "TitleAbstractAdditional" mode = "oai_dc" >
< dc:description >
< xsl:attribute name = "xml:lang" >
< xsl:value-of select = "@Language" / >
2022-11-07 12:55:02 +00:00
< / xsl:attribute >
2022-11-16 12:30:56 +00:00
< xsl:value-of select = "@Value" / >
< / dc:description >
< / xsl:template >
< xsl:template match = "Subject" mode = "oai_dc" >
< dc:subject >
< xsl:if test = "@Language != ''" >
< xsl:attribute name = "xml:lang" >
< xsl:value-of select = "@Language" / >
< / xsl:attribute >
< / xsl:if >
< xsl:value-of select = "@Value" / >
< / dc:subject >
< / xsl:template >
2022-12-02 14:15:33 +00:00
< xsl:template match = "Collection" mode = "oai_dc" >
< dc:subject >
<!-- <xsl:if test="@Language != ''">
2022-12-06 12:52:55 +00:00
< xsl:attribute name = "xml:lang" >
< xsl:value-of select = "@Language" / >
< / xsl:attribute >
< / xsl:if > -->
2022-12-02 14:15:33 +00:00
< xsl:value-of select = "concat(string(@Collectionrole.Name), ':', string(@Number))" / >
< / dc:subject >
< / xsl:template >
2022-11-16 12:30:56 +00:00
< xsl:template match = "Reference" mode = "oai_dc" >
< dc:relation >
2022-12-06 12:52:55 +00:00
< xsl:value-of select = "string(@Value)" / >
<!-- <xsl:call - template name="url - encode">
2023-04-04 12:39:16 +00:00
< xsl:with-param name = "str" select = "@Value" / >
< / xsl:call-template > -->
< / dc:relation >
2022-11-16 12:30:56 +00:00
< / xsl:template >
< xsl:template match = "PersonAuthor|PersonEditor" mode = "oai_dc" >
< dc:creator >
< xsl:value-of select = "@LastName" / >
< xsl:if test = "@FirstName != ''" >
< xsl:text > , < / xsl:text >
< / xsl:if >
< xsl:value-of select = "@FirstName" / >
< xsl:if test = "@AcademicTitle != ''" >
< xsl:text > (< / xsl:text >
< xsl:value-of select = "@AcademicTitle" / >
< xsl:text > )< / xsl:text >
< / xsl:if >
< / dc:creator >
< / xsl:template >
< xsl:template match = "PersonContributor" mode = "oai_dc" >
< dc:contributor >
< xsl:value-of select = "@LastName" / >
< xsl:if test = "@FirstName != ''" >
< xsl:text > , < / xsl:text >
< / xsl:if >
< xsl:value-of select = "@FirstName" / >
< xsl:if test = "@AcademicTitle != ''" >
< xsl:text > (< / xsl:text >
< xsl:value-of select = "@AcademicTitle" / >
< xsl:text > )< / xsl:text >
< / xsl:if >
< / dc:contributor >
< / xsl:template >
< xsl:template name = "RdrDate" >
< dc:date >
< xsl:choose >
< xsl:when test = "PublishedDate" >
< xsl:variable name = "publishedDate" select = "concat(
PublishedDate/@Year, '-',
format-number(number(PublishedDate/@Month),'00'), '-',
format-number(number(PublishedDate/@Day),'00')
)" />
< xsl:value-of select = "$publishedDate" / >
< / xsl:when >
< xsl:otherwise >
< xsl:variable name = "serverDatePublished" select = "concat(
ServerDatePublished/@Year, '-',
format-number(number(ServerDatePublished/@Month),'00'), '-',
format-number(number(ServerDatePublished/@Day),'00')
)" />
< xsl:value-of select = "$serverDatePublished" / >
< / xsl:otherwise >
< / xsl:choose >
< / dc:date >
< / xsl:template >
< xsl:template match = "EmbargoDate" mode = "oai_dc" >
< xsl:if test = "$unixTimestamp < ./@UnixTimestamp" >
< dc:date >
< xsl:text > info:eu-repo/date/embargoEnd/< / xsl:text >
< xsl:value-of select = "./@Year" / >
-
< xsl:value-of select = "format-number(number(./@Month),'00')" / >
-
< xsl:value-of select = "format-number(number(./@Day),'00')" / >
< / dc:date >
2022-11-07 12:55:02 +00:00
< / xsl:if >
2022-11-16 12:30:56 +00:00
< / xsl:template >
<!-- für ListRecords -->
<!-- <xsl:template match="@Type" mode="oai_dc">
< dc:type >
< xsl:value-of select = "." / >
< / dc:type >
< dc:type >
< xsl:text > data-type:< / xsl:text >
< xsl:value-of select = "." / >
< / dc:type >
< / xsl:template > -->
< xsl:template match = "File/@MimeType" mode = "oai_dc" >
< dc:format >
< xsl:choose >
< xsl:when test = ". = 'application/x-sqlite3'" >
< xsl:text > application/geopackage+sqlite3< / xsl:text >
< / xsl:when >
< xsl:otherwise >
< xsl:value-of select = "." / >
< / xsl:otherwise >
< / xsl:choose >
< / dc:format >
< / xsl:template >
<!-- <xsl:template match="File" mode="oai_dc">
< dc:identifier >
< xsl:value-of select = "@PathName" / >
< xsl:value-of select = "concat($downloadLink, @Id)" / >
< / dc:identifier >
< / xsl:template > -->
< xsl:template match = "Identifier" mode = "oai_dc" >
< dc:relation >
<!-- <xsl:value - of select="concat($doiLink, @Value)" /> -->
2022-12-06 12:52:55 +00:00
< xsl:value-of select = "concat($doiPrefix, string(@Value))" / >
<!-- <xsl:call - template name="url - encode">
2023-04-04 12:39:16 +00:00
< xsl:with-param name = "str" select = "concat($doiPrefix, @Value)" / >
< / xsl:call-template > -->
< / dc:relation >
2022-11-16 12:30:56 +00:00
< / xsl:template >
< xsl:template match = "@CreatingCorporation" mode = "oai_dc" >
< dc:language >
< xsl:value-of select = "." / >
< / dc:language >
< / xsl:template >
< xsl:template match = "@Language" mode = "oai_dc" >
2022-11-29 10:37:20 +00:00
< xsl:variable name = "language" select = "string(.)" / >
2022-11-16 12:30:56 +00:00
< dc:language >
2022-11-29 10:37:20 +00:00
<!-- <xsl:value - of select="." /> -->
< xsl:value-of select = "$langCodes[@iso639-1 = $language]/@iso639-2" / >
2022-11-16 12:30:56 +00:00
< / dc:language >
< / xsl:template >
< xsl:template match = "Licence" mode = "oai_dc" >
< dc:rights >
< xsl:value-of select = "@NameLong" / >
< / dc:rights >
< xsl:if test = "@Name = 'CC-BY-4.0' or @Name = 'CC-BY-SA-4.0'" >
< dc:rights >
< xsl:text > info:eu-repo/semantics/openAccess< / xsl:text >
< / dc:rights >
< / xsl:if >
< / xsl:template >
2022-11-07 12:55:02 +00:00
< / xsl:stylesheet >