- addional xml elements for DINI requirements
- port browser style oai2_style.xslt to xslt version 3.0 - oai2_style includes extra style.css
This commit is contained in:
parent
8ebd8f3251
commit
edea5ccbd0
|
@ -498,11 +498,11 @@
|
||||||
<gmd:extent>
|
<gmd:extent>
|
||||||
<gmd:EX_Extent>
|
<gmd:EX_Extent>
|
||||||
<xsl:if test="//*[name() = 'Coverage']">
|
<xsl:if test="//*[name() = 'Coverage']">
|
||||||
<xsl:variable name="thebox" select="//*[name() = 'Coverage']"/>
|
<!-- <xsl:variable name="thebox" select="//*[name() = 'Coverage']"/> -->
|
||||||
<xsl:variable name="sLat">
|
<xsl:variable name="sLat">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="string($thebox/@YMin) != ''">
|
<xsl:when test="string(Coverage/@YMin) != ''">
|
||||||
<xsl:value-of select="number($thebox/@YMin)"/>
|
<xsl:value-of select="number(Coverage/@YMin)"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="''"/>
|
<xsl:value-of select="''"/>
|
||||||
|
@ -511,8 +511,8 @@
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:variable name="wLong">
|
<xsl:variable name="wLong">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="string($thebox/@XMin) != ''">
|
<xsl:when test="string(Coverage/@XMin) != ''">
|
||||||
<xsl:value-of select="number($thebox/@XMin)"/>
|
<xsl:value-of select="number(Coverage/@XMin)"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="''"/>
|
<xsl:value-of select="''"/>
|
||||||
|
@ -521,8 +521,8 @@
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:variable name="nLat">
|
<xsl:variable name="nLat">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="string($thebox/@YMax) != ''">
|
<xsl:when test="string(Coverage/@YMax) != ''">
|
||||||
<xsl:value-of select="number($thebox/@YMax)"/>
|
<xsl:value-of select="number(Coverage/@YMax)"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="''"/>
|
<xsl:value-of select="''"/>
|
||||||
|
@ -531,8 +531,8 @@
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:variable name="eLong">
|
<xsl:variable name="eLong">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="string($thebox/@XMax) != ''">
|
<xsl:when test="string(Coverage/@XMax) != ''">
|
||||||
<xsl:value-of select="number($thebox/@XMax)"/>
|
<xsl:value-of select="number(Coverage/@XMax)"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="''"/>
|
<xsl:value-of select="''"/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
http://ws.pangaea.de/oai/oai2.xsl
|
http://ws.pangaea.de/oai/oai2.xsl
|
||||||
|
|
||||||
XSL Transform to convert OAI 2.0 responses into XHTML
|
XSL Transform to convert OAI 2.0 responses into XHTML
|
||||||
|
|
||||||
|
@ -11,21 +11,21 @@ http://ws.pangaea.de/oai/oai2.xsl
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
Copyright (c) 2000-2004 University of Southampton, UK. SO17 1BJ.
|
Copyright (c) 2000-2004 University of Southampton, UK. SO17 1BJ.
|
||||||
|
|
||||||
EPrints 2 is free software; you can redistribute it and/or modify
|
EPrints 2 is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
EPrints 2 is distributed in the hope that it will be useful,
|
EPrints 2 is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with EPrints 2; if not, write to the Free Software
|
along with EPrints 2; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -45,146 +45,56 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
All the links just link to oai_dc versions of records.
|
All the links just link to oai_dc versions of records.
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<xsl:stylesheet
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version="1.0"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
||||||
xmlns:oai="http://www.openarchives.org/OAI/2.0/"
|
xmlns:oai="http://www.openarchives.org/OAI/2.0/"
|
||||||
>
|
xmlns:id="http://www.openarchives.org/OAI/2.0/oai-identifier"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||||
|
xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints"
|
||||||
|
xmlns:fr="http://www.openarchives.org/OAI/2.0/friends/"
|
||||||
|
xmlns:br="http://www.openarchives.org/OAI/2.0/branding/"
|
||||||
|
xmlns:gw="http://www.openarchives.org/OAI/2.0/gateway/x"
|
||||||
|
expand-text="yes"
|
||||||
|
version="3.0">
|
||||||
|
|
||||||
<xsl:output method="html"/>
|
<xsl:output method="html" encoding="UTF-8" omit-xml-declaration="yes" doctype-system="about:legacy-compat"/>
|
||||||
|
|
||||||
|
<!-- define variables -->
|
||||||
|
<xsl:variable name='identifier' select="substring-before(concat(substring-after(/oai:OAI-PMH/oai:request,'identifier='),'&'),'&')" />
|
||||||
|
|
||||||
|
<!-- root template -->
|
||||||
<xsl:template name="style">
|
<xsl:template match="/">
|
||||||
html, button, input, select, textarea, .pure-g [class *= "pure-u"] {
|
<html>
|
||||||
font-family: 'Open Sans', sans-serif;
|
|
||||||
}
|
|
||||||
td.value {
|
|
||||||
vertical-align: top;
|
|
||||||
padding-left: 1em;
|
|
||||||
padding: 3px;
|
|
||||||
}
|
|
||||||
td.key {
|
|
||||||
background-color: #3abac4;
|
|
||||||
padding: 3px;
|
|
||||||
text-align: right;
|
|
||||||
border: 1px solid #c0c0c0;
|
|
||||||
white-space: nowrap;
|
|
||||||
font-weight: bold;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
.dcdata td.key {
|
|
||||||
background-color: #ffffe0;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
margin: 1em 2em 1em 2em;
|
|
||||||
}
|
|
||||||
h1, h2, h3 {
|
|
||||||
font-family: sans-serif;
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
padding-bottom: 4px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
h2 {
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
}
|
|
||||||
h3 {
|
|
||||||
margin-bottom: 0.3em;
|
|
||||||
font-size: medium;
|
|
||||||
}
|
|
||||||
.link {
|
|
||||||
border: 1px outset #88f;
|
|
||||||
background-color: #c0c0ff;
|
|
||||||
padding: 1px 4px 1px 4px;
|
|
||||||
font-size: 80%;
|
|
||||||
text-decoration: none;
|
|
||||||
font-weight: bold;
|
|
||||||
font-family: sans-serif;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
.link:hover {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
.link:active {
|
|
||||||
color: red;
|
|
||||||
border: 1px inset #88f;
|
|
||||||
background-color: #a0a0df;
|
|
||||||
}
|
|
||||||
.oaiRecord, .oaiRecordTitle {
|
|
||||||
background-color: #eee;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #d0d0d0;
|
|
||||||
}
|
|
||||||
h2.oaiRecordTitle {
|
|
||||||
background-color: #51565c;
|
|
||||||
color: #fff;
|
|
||||||
font-size: medium;
|
|
||||||
font-weight: bold;
|
|
||||||
padding: 10px;
|
|
||||||
border-width: 0px 0px 0px 0px;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
.oaiRecord {
|
|
||||||
margin-bottom: 3em;
|
|
||||||
border-width: 2px;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.results {
|
|
||||||
margin-bottom: 1.5em;
|
|
||||||
}
|
|
||||||
ul.quicklinks {
|
|
||||||
margin-top: 2px;
|
|
||||||
padding: 4px;
|
|
||||||
text-align: left;
|
|
||||||
border-bottom: 2px solid #ccc;
|
|
||||||
border-top: 2px solid #ccc;
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
ul.quicklinks li {
|
|
||||||
font-size: 80%;
|
|
||||||
display: inline;
|
|
||||||
list-style: none;
|
|
||||||
font-family: sans-serif;
|
|
||||||
}
|
|
||||||
p.intro {
|
|
||||||
font-size: 80%;
|
|
||||||
}
|
|
||||||
<xsl:call-template name='xmlstyle' />
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:variable name='identifier' select="substring-before(concat(substring-after(/oai:OAI-PMH/oai:request,'identifier='),'&'),'&')" />
|
|
||||||
|
|
||||||
<xsl:template match="/">
|
|
||||||
<html>
|
|
||||||
<head>
|
<head>
|
||||||
<title>TETHYS OAI 2.0 Request Results</title>
|
<title>TETHYS OAI 2.0 Request Results</title>
|
||||||
<style><xsl:call-template name="style"/></style>
|
<!-- <style><xsl:call-template name="style"/></style> -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="assets/style.css" />
|
||||||
<!-- Favicon
|
<!-- Favicon
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-touch-icon.png"/>
|
<!-- <link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-touch-icon.png"/>
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon/favicon-32x32.png"/>
|
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon/favicon-32x32.png"/>
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon/favicon-16x16.png"/>
|
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon/favicon-16x16.png"/>
|
||||||
<link rel="manifest" href="/images/favicon/site.webmanifest"/>
|
<link rel="manifest" href="/images/favicon/site.webmanifest"/>
|
||||||
<link rel="mask-icon" href="/images/favicon/safari-pinned-tab.svg" color="#5bbad5"/>
|
<link rel="mask-icon" href="/images/favicon/safari-pinned-tab.svg" color="#5bbad5"/> -->
|
||||||
<link rel="shortcut icon" href="/images/favicon/favicon.ico"/>
|
<link rel="shortcut icon" href="/images/favicon/favicon.ico"/>
|
||||||
|
<!-- <style>h2{font-size:22pt;text-decoration:underline}para{color:green}</style> -->
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>TETHYS OAI 2.0 Request Results</h1>
|
<h1>TETHYS OAI 2.0 Request Results</h1>
|
||||||
<xsl:call-template name="quicklinks"/>
|
<xsl:call-template name="quicklinks"/>
|
||||||
<p class="intro">You are viewing an HTML version of the XML OAI response. To see the underlying XML use your web browsers view source option. More information about this XSLT is at the <a href="#moreinfo">bottom of the page</a>.</p>
|
<p class="intro">
|
||||||
|
You are viewing an HTML version of the XML OAI response. To see the underlying XML use your web browsers view source option. More information about this XSLT is at the <a href="#moreinfo">bottom of the page</a>.
|
||||||
|
</p>
|
||||||
<xsl:apply-templates select="/oai:OAI-PMH" />
|
<xsl:apply-templates select="/oai:OAI-PMH" />
|
||||||
<xsl:call-template name="quicklinks"/>
|
<xsl:call-template name="quicklinks"/>
|
||||||
<h2><a name="moreinfo">About the XSLT</a></h2>
|
<h2><a name="moreinfo">About the XSLT</a></h2>
|
||||||
<p>An XSLT file has converted the <a href="http://www.openarchives.org">OAI-PMH 2.0</a> responses into XHTML which looks nice in a browser which supports XSLT such as Mozilla, Firebird and Internet Explorer. The XSLT file was created by <a href="http://www.ecs.soton.ac.uk/people/cjg">Christopher Gutteridge</a> at the University of Southampton as part of the <a href="http://software.eprints.org">GNU EPrints system</a>, and is freely redistributable under the <a href="http://www.gnu.org">GPL</a>.</p><p>If you want to use the XSL file on your own OAI interface you may but due to the way XSLT works you must install the XSL file on the same server as the OAI script, you can't just link to this copy.</p><p>For more information or to download the XSL file please see the <a href="http://software.eprints.org/xslt.php">OAI to XHTML XSLT homepage</a>.</p>
|
<p>An XSLT file has converted the <a href="http://www.openarchives.org">OAI-PMH 2.0</a> responses into XHTML which looks nice in a browser which supports XSLT such as Mozilla, Firebird and Internet Explorer. The XSLT file was created by <a href="http://www.ecs.soton.ac.uk/people/cjg">Christopher Gutteridge</a> at the University of Southampton as part of the <a href="http://software.eprints.org">GNU EPrints system</a>, and is freely redistributable under the <a href="http://www.gnu.org">GPL</a>.</p><p>If you want to use the XSL file on your own OAI interface you may but due to the way XSLT works you must install the XSL file on the same server as the OAI script, you can't just link to this copy.</p><p>For more information or to download the XSL file please see the <a href="http://software.eprints.org/xslt.php">OAI to XHTML XSLT homepage</a>.</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="quicklinks">
|
<xsl:template name="quicklinks">
|
||||||
<ul class="quicklinks">
|
<ul class="quicklinks">
|
||||||
<li><a href="?verb=Identify">Identify</a> | </li>
|
<li><a href="?verb=Identify">Identify</a> | </li>
|
||||||
<li><a href="?verb=ListRecords&metadataPrefix=oai_dc">ListRecords</a> | </li>
|
<li><a href="?verb=ListRecords&metadataPrefix=oai_dc">ListRecords</a> | </li>
|
||||||
|
@ -192,17 +102,17 @@ p.intro {
|
||||||
<li><a href="?verb=ListMetadataFormats">ListMetadataFormats</a> | </li>
|
<li><a href="?verb=ListMetadataFormats">ListMetadataFormats</a> | </li>
|
||||||
<li><a href="?verb=ListIdentifiers&metadataPrefix=oai_dc">ListIdentifiers</a></li>
|
<li><a href="?verb=ListIdentifiers&metadataPrefix=oai_dc">ListIdentifiers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="/oai:OAI-PMH">
|
<xsl:template match="/oai:OAI-PMH">
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">Datestamp of response</td>
|
<tr><td class="key">Datestamp of response</td>
|
||||||
<td class="value"><xsl:value-of select="oai:responseDate"/></td></tr>
|
<td class="value"><xsl:value-of select="oai:responseDate"/></td></tr>
|
||||||
<tr><td class="key">Request URL</td>
|
<tr><td class="key">Request URL</td>
|
||||||
<td class="value"><xsl:value-of select="oai:request"/></td></tr>
|
<td class="value"><xsl:value-of select="oai:request"/></td></tr>
|
||||||
</table>
|
</table>
|
||||||
<!-- verb: [<xsl:value-of select="oai:request/@verb" />]<br /> -->
|
<!-- verb: [<xsl:value-of select="oai:request/@verb" />]<br /> -->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="oai:error">
|
<xsl:when test="oai:error">
|
||||||
<h2>OAI Error(s)</h2>
|
<h2>OAI Error(s)</h2>
|
||||||
|
@ -223,20 +133,20 @@ p.intro {
|
||||||
</div>
|
</div>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!-- ERROR -->
|
<!-- ERROR -->
|
||||||
<xsl:template match="/oai:OAI-PMH/oai:error">
|
<xsl:template match="/oai:OAI-PMH/oai:error">
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">Error Code</td>
|
<tr><td class="key">Error Code</td>
|
||||||
<td class="value"><xsl:value-of select="@code"/></td></tr>
|
<td class="value"><xsl:value-of select="@code"/></td></tr>
|
||||||
</table>
|
</table>
|
||||||
<p class="error"><xsl:value-of select="." /></p>
|
<p class="error"><xsl:value-of select="." /></p>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- IDENTIFY -->
|
<!-- IDENTIFY -->
|
||||||
<xsl:template match="/oai:OAI-PMH/oai:Identify">
|
<xsl:template match="/oai:OAI-PMH/oai:Identify">
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">Repository Name</td>
|
<tr><td class="key">Repository Name</td>
|
||||||
<td class="value"><xsl:value-of select="oai:repositoryName"/></td></tr>
|
<td class="value"><xsl:value-of select="oai:repositoryName"/></td></tr>
|
||||||
|
@ -253,30 +163,32 @@ p.intro {
|
||||||
<xsl:apply-templates select="oai:adminEmail"/>
|
<xsl:apply-templates select="oai:adminEmail"/>
|
||||||
</table>
|
</table>
|
||||||
<xsl:apply-templates select="oai:description"/>
|
<xsl:apply-templates select="oai:description"/>
|
||||||
<!--no warning about unsupported descriptions -->
|
<!--no warning about unsupported descriptions -->
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="/oai:OAI-PMH/oai:Identify/oai:adminEmail">
|
<xsl:template match="/oai:OAI-PMH/oai:Identify/oai:adminEmail">
|
||||||
<tr><td class="key">Admin Email</td>
|
<tr>
|
||||||
<td class="value"><xsl:value-of select="."/></td></tr>
|
<td class="key">Admin Email</td>
|
||||||
</xsl:template>
|
<td class="value"><xsl:value-of select="."/></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Identify / Unsupported Description
|
Identify / Unsupported Description
|
||||||
-->
|
-->
|
||||||
<xsl:template match="oai:description/*" priority="-100">
|
<xsl:template match="oai:description/*" priority="-100">
|
||||||
<h2>Unsupported Description Type</h2>
|
<h2>Unsupported Description Type</h2>
|
||||||
<p>The XSL currently does not support this type of description.</p>
|
<p>The XSL currently does not support this type of description.</p>
|
||||||
<div class="xmlSource">
|
<div class="xmlSource">
|
||||||
<xsl:apply-templates select="." mode='xmlMarkup' />
|
<xsl:apply-templates select="." mode='xmlMarkup' />
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Identify / OAI-Identifier
|
Identify / OAI-Identifier
|
||||||
-->
|
-->
|
||||||
<xsl:template match="id:oai-identifier" xmlns:id="http://www.openarchives.org/OAI/2.0/oai-identifier">
|
<xsl:template match="id:oai-identifier" xmlns:id="http://www.openarchives.org/OAI/2.0/oai-identifier">
|
||||||
<h2>OAI-Identifier</h2>
|
<h2>OAI-Identifier</h2>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">Scheme</td>
|
<tr><td class="key">Scheme</td>
|
||||||
|
@ -288,13 +200,13 @@ p.intro {
|
||||||
<tr><td class="key">Sample OAI Identifier</td>
|
<tr><td class="key">Sample OAI Identifier</td>
|
||||||
<td class="value"><xsl:value-of select="id:sampleIdentifier"/></td></tr>
|
<td class="value"><xsl:value-of select="id:sampleIdentifier"/></td></tr>
|
||||||
</table>
|
</table>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Identify / EPrints
|
Identify / EPrints
|
||||||
-->
|
-->
|
||||||
<xsl:template match="ep:eprints" xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints">
|
<xsl:template match="ep:eprints" xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints">
|
||||||
<h2>EPrints Description</h2>
|
<h2>EPrints Description</h2>
|
||||||
<h3>Content</h3>
|
<h3>Content</h3>
|
||||||
<xsl:apply-templates select="ep:content"/>
|
<xsl:apply-templates select="ep:content"/>
|
||||||
|
@ -311,50 +223,50 @@ p.intro {
|
||||||
<xsl:apply-templates select="ep:content"/>
|
<xsl:apply-templates select="ep:content"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates select="ep:comment"/>
|
<xsl:apply-templates select="ep:comment"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="ep:content|ep:dataPolicy|ep:metadataPolicy|ep:submissionPolicy" xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints">
|
<xsl:template match="ep:content|ep:dataPolicy|ep:metadataPolicy|ep:submissionPolicy" xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints">
|
||||||
<xsl:if test="ep:text">
|
<xsl:if test="ep:text">
|
||||||
<p><xsl:value-of select="ep:text" /></p>
|
<p><xsl:value-of select="ep:text" /></p>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="ep:URL">
|
<xsl:if test="ep:URL">
|
||||||
<div><a href="{ep:URL}"><xsl:value-of select="ep:URL" /></a></div>
|
<div><a href="{ep:URL}"><xsl:value-of select="ep:URL" /></a></div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="ep:comment" xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints">
|
<xsl:template match="ep:comment" xmlns:ep="http://www.openarchives.org/OAI/1.1/eprints">
|
||||||
<h3>Comment</h3>
|
<h3>Comment</h3>
|
||||||
<div><xsl:value-of select="."/></div>
|
<div><xsl:value-of select="."/></div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Identify / Friends
|
Identify / Friends
|
||||||
-->
|
-->
|
||||||
<xsl:template match="fr:friends" xmlns:fr="http://www.openarchives.org/OAI/2.0/friends/">
|
<xsl:template match="fr:friends" xmlns:fr="http://www.openarchives.org/OAI/2.0/friends/">
|
||||||
<h2>Friends</h2>
|
<h2>Friends</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<xsl:apply-templates select="fr:baseURL"/>
|
<xsl:apply-templates select="fr:baseURL"/>
|
||||||
</ul>
|
</ul>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="fr:baseURL" xmlns:fr="http://www.openarchives.org/OAI/2.0/friends/">
|
<xsl:template match="fr:baseURL" xmlns:fr="http://www.openarchives.org/OAI/2.0/friends/">
|
||||||
<li><xsl:value-of select="."/>
|
<li><xsl:value-of select="."/>
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
<a class="link" href="{.}?verb=Identify">Identify</a></li>
|
<a class="link" href="{.}?verb=Identify">Identify</a></li>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Identify / Branding
|
Identify / Branding
|
||||||
-->
|
-->
|
||||||
<xsl:template match="br:branding" xmlns:br="http://www.openarchives.org/OAI/2.0/branding/">
|
<xsl:template match="br:branding" xmlns:br="http://www.openarchives.org/OAI/2.0/branding/">
|
||||||
<h2>Branding</h2>
|
<h2>Branding</h2>
|
||||||
<xsl:apply-templates select="br:collectionIcon"/>
|
<xsl:apply-templates select="br:collectionIcon"/>
|
||||||
<xsl:apply-templates select="br:metadataRendering"/>
|
<xsl:apply-templates select="br:metadataRendering"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="br:collectionIcon" xmlns:br="http://www.openarchives.org/OAI/2.0/branding/">
|
<xsl:template match="br:collectionIcon" xmlns:br="http://www.openarchives.org/OAI/2.0/branding/">
|
||||||
<h3>Icon</h3>
|
<h3>Icon</h3>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="link!=''">
|
<xsl:when test="link!=''">
|
||||||
|
@ -364,9 +276,9 @@ p.intro {
|
||||||
<img src="{br:url}" alt="{br:title}" width="{br:width}" height="{br:height}" border="0" />
|
<img src="{br:url}" alt="{br:title}" width="{br:width}" height="{br:height}" border="0" />
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="br:metadataRendering" xmlns:br="http://www.openarchives.org/OAI/2.0/branding/">
|
<xsl:template match="br:metadataRendering" xmlns:br="http://www.openarchives.org/OAI/2.0/branding/">
|
||||||
<h3>Metadata Rendering Rule</h3>
|
<h3>Metadata Rendering Rule</h3>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">URL</td>
|
<tr><td class="key">URL</td>
|
||||||
|
@ -376,14 +288,14 @@ p.intro {
|
||||||
<tr><td class="key">Mime Type</td>
|
<tr><td class="key">Mime Type</td>
|
||||||
<td class="value"><xsl:value-of select="@mimetype"/></td></tr>
|
<td class="value"><xsl:value-of select="@mimetype"/></td></tr>
|
||||||
</table>
|
</table>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Identify / Gateway
|
Identify / Gateway
|
||||||
-->
|
-->
|
||||||
<xsl:template match="gw:gateway" xmlns:gw="http://www.openarchives.org/OAI/2.0/gateway/x">
|
<xsl:template match="gw:gateway" xmlns:gw="http://www.openarchives.org/OAI/2.0/gateway/x">
|
||||||
<h2>Gateway Information</h2>
|
<h2>Gateway Information</h2>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">Source</td>
|
<tr><td class="key">Source</td>
|
||||||
|
@ -400,48 +312,48 @@ p.intro {
|
||||||
<td class="value"><xsl:value-of select="gw:gatewayNotes"/></td></tr>
|
<td class="value"><xsl:value-of select="gw:gatewayNotes"/></td></tr>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</table>
|
</table>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="gw:gatewayAdmin" xmlns:gw="http://www.openarchives.org/OAI/2.0/gateway/">
|
<xsl:template match="gw:gatewayAdmin" xmlns:gw="http://www.openarchives.org/OAI/2.0/gateway/">
|
||||||
<tr><td class="key">Admin</td>
|
<tr><td class="key">Admin</td>
|
||||||
<td class="value"><xsl:value-of select="."/></td></tr>
|
<td class="value"><xsl:value-of select="."/></td></tr>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!-- GetRecord -->
|
<!-- GetRecord -->
|
||||||
<xsl:template match="oai:GetRecord">
|
<xsl:template match="oai:GetRecord">
|
||||||
<xsl:apply-templates select="oai:record" />
|
<xsl:apply-templates select="oai:record" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- ListRecords -->
|
<!-- ListRecords -->
|
||||||
<xsl:template match="oai:ListRecords">
|
<xsl:template match="oai:ListRecords">
|
||||||
<xsl:apply-templates select="oai:record" />
|
<xsl:apply-templates select="oai:record" />
|
||||||
<xsl:apply-templates select="oai:resumptionToken" />
|
<xsl:apply-templates select="oai:resumptionToken" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- ListIdentifiers -->
|
<!-- ListIdentifiers -->
|
||||||
<xsl:template match="oai:ListIdentifiers">
|
<xsl:template match="oai:ListIdentifiers">
|
||||||
<xsl:apply-templates select="oai:header" />
|
<xsl:apply-templates select="oai:header" />
|
||||||
<xsl:apply-templates select="oai:resumptionToken" />
|
<xsl:apply-templates select="oai:resumptionToken" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- ListSets -->
|
<!-- ListSets -->
|
||||||
<xsl:template match="oai:ListSets">
|
<xsl:template match="oai:ListSets">
|
||||||
<xsl:apply-templates select="oai:set" />
|
<xsl:apply-templates select="oai:set" />
|
||||||
<xsl:apply-templates select="oai:resumptionToken" />
|
<xsl:apply-templates select="oai:resumptionToken" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="oai:set">
|
<xsl:template match="oai:set">
|
||||||
<h2>Set</h2>
|
<h2>Set</h2>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">setName</td>
|
<tr><td class="key">setName</td>
|
||||||
<td class="value"><xsl:value-of select="oai:setName"/></td></tr>
|
<td class="value"><xsl:value-of select="oai:setName"/></td></tr>
|
||||||
<xsl:apply-templates select="oai:setSpec" />
|
<xsl:apply-templates select="oai:setSpec" />
|
||||||
</table>
|
</table>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- ListMetadataFormats -->
|
<!-- ListMetadataFormats -->
|
||||||
<xsl:template match="oai:ListMetadataFormats">
|
<xsl:template match="oai:ListMetadataFormats">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$identifier">
|
<xsl:when test="$identifier">
|
||||||
<p>This is a list of metadata formats available for the record "<xsl:value-of select='$identifier' />". Use these links to view the metadata: <xsl:apply-templates select="oai:metadataFormat/oai:metadataPrefix" /></p>
|
<p>This is a list of metadata formats available for the record "<xsl:value-of select='$identifier' />". Use these links to view the metadata: <xsl:apply-templates select="oai:metadataFormat/oai:metadataPrefix" /></p>
|
||||||
|
@ -451,9 +363,9 @@ p.intro {
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
<xsl:apply-templates select="oai:metadataFormat" />
|
<xsl:apply-templates select="oai:metadataFormat" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="oai:metadataFormat">
|
<xsl:template match="oai:metadataFormat">
|
||||||
<h2>Metadata Format</h2>
|
<h2>Metadata Format</h2>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -472,23 +384,23 @@ p.intro {
|
||||||
<td class="value"><a href="{oai:schema}"><xsl:value-of select="oai:schema"/></a></td>
|
<td class="value"><a href="{oai:schema}"><xsl:value-of select="oai:schema"/></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="oai:metadataPrefix">
|
<xsl:template match="oai:metadataPrefix">
|
||||||
<xsl:text> </xsl:text><a class="link" href="?verb=GetRecord&metadataPrefix={.}&identifier={$identifier}"><xsl:value-of select='.' /></a>
|
<xsl:text> </xsl:text><a class="link" href="?verb=GetRecord&metadataPrefix={.}&identifier={$identifier}"><xsl:value-of select='.' /></a>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- record object -->
|
<!-- record object -->
|
||||||
<xsl:template match="oai:record">
|
<xsl:template match="oai:record">
|
||||||
<h2 class="oaiRecordTitle">OAI Record: <xsl:value-of select="oai:header/oai:identifier"/></h2>
|
<h2 class="oaiRecordTitle">OAI Record: <xsl:value-of select="oai:header/oai:identifier"/></h2>
|
||||||
<div class="oaiRecord">
|
<div class="oaiRecord">
|
||||||
<xsl:apply-templates select="oai:header" />
|
<xsl:apply-templates select="oai:header" />
|
||||||
<xsl:apply-templates select="oai:metadata" />
|
<xsl:apply-templates select="oai:metadata" />
|
||||||
<xsl:apply-templates select="oai:about" />
|
<xsl:apply-templates select="oai:about" />
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="oai:header">
|
<xsl:template match="oai:header">
|
||||||
<h3>OAI Record Header</h3>
|
<h3>OAI Record Header</h3>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">OAI Identifier</td>
|
<tr><td class="key">OAI Identifier</td>
|
||||||
|
@ -504,95 +416,101 @@ p.intro {
|
||||||
<xsl:if test="@status='deleted'">
|
<xsl:if test="@status='deleted'">
|
||||||
<p>This record has been deleted.</p>
|
<p>This record has been deleted.</p>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="oai:about">
|
<xsl:template match="oai:about">
|
||||||
<p>"about" part of record container not supported by the XSL</p>
|
<p>"about" part of record container not supported by the XSL</p>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="oai:metadata">
|
<xsl:template match="oai:metadata">
|
||||||
 
|
 
|
||||||
<div class="metadata">
|
<div class="metadata">
|
||||||
<xsl:apply-templates select="*" />
|
<xsl:apply-templates select="*" />
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- oai setSpec object -->
|
<!-- oai setSpec object -->
|
||||||
<xsl:template match="oai:setSpec">
|
<xsl:template match="oai:setSpec">
|
||||||
<tr><td class="key">setSpec</td>
|
<tr><td class="key">setSpec</td>
|
||||||
<td class="value"><xsl:value-of select="."/>
|
<td class="value"><xsl:value-of select="."/>
|
||||||
<xsl:text> </xsl:text><a class="link" href="?verb=ListIdentifiers&metadataPrefix=oai_dc&set={.}">Identifiers</a>
|
<xsl:text> </xsl:text><a class="link" href="?verb=ListIdentifiers&metadataPrefix=oai_dc&set={.}">Identifiers</a>
|
||||||
<xsl:text> </xsl:text><a class="link" href="?verb=ListRecords&metadataPrefix=oai_dc&set={.}">Records</a>
|
<xsl:text> </xsl:text><a class="link" href="?verb=ListRecords&metadataPrefix=oai_dc&set={.}">Records</a>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- oai resumptionToken -->
|
<!-- oai resumptionToken -->
|
||||||
<xsl:template match="oai:resumptionToken">
|
<xsl:template match="oai:resumptionToken">
|
||||||
<p>There are more results.</p>
|
<p>There are more results.</p>
|
||||||
<table class="values">
|
<table class="values">
|
||||||
<tr><td class="key">resumptionToken:</td>
|
<tr><td class="key">resumptionToken:</td>
|
||||||
<td class="value"><xsl:value-of select="."/>
|
<td class="value"><xsl:value-of select="."/>
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
<a class="link" href="?verb={/oai:OAI-PMH/oai:request/@verb}&resumptionToken={.}">Resume</a></td></tr>
|
<a class="link" href="?verb={/oai:OAI-PMH/oai:request/@verb}&resumptionToken={.}">Resume</a></td></tr>
|
||||||
</table>
|
</table>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- unknown metadata format -->
|
<!-- unknown metadata format -->
|
||||||
<xsl:template match="oai:metadata/*" priority='-100'>
|
<xsl:template match="oai:metadata/*" priority='-100'>
|
||||||
<h3>Unknown Metadata Format</h3>
|
<h3>Unknown Metadata Format</h3>
|
||||||
<div class="xmlSource">
|
<div class="xmlSource">
|
||||||
<xsl:apply-templates select="." mode='xmlMarkup' />
|
<xsl:apply-templates select="." mode='xmlMarkup' />
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- oai_dc record -->
|
<!-- oai_dc record -->
|
||||||
<xsl:template match="oai_dc:dc" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" >
|
<xsl:template match="oai_dc:dc" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" >
|
||||||
<div class="dcdata">
|
<div class="dcdata">
|
||||||
<h3>Dublin Core Metadata (oai_dc)</h3>
|
<h3>Dublin Core Metadata (oai_dc)</h3>
|
||||||
<table class="dcdata">
|
<table class="dcdata">
|
||||||
<xsl:apply-templates select="*" />
|
<xsl:apply-templates select="*" />
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:title" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:title" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Title</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr>
|
||||||
|
<td class="key">Title</td>
|
||||||
|
<td class="value">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:creator" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:creator" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Author or Creator</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Author or Creator</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:subject" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:subject" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Subject and Keywords</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Subject and Keywords</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:description" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:description" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Description</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Description</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:publisher" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:publisher" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Publisher</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Publisher</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:contributor" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:contributor" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Other Contributor</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Other Contributor</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:date" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:date" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Date</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Date</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:type" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:type" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Resource Type</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Resource Type</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:format" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:format" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Format</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Format</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:identifier" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:identifier" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Resource Identifier</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Resource Identifier</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:source" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:source" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Source</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Source</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:language" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:language" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Language</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Language</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:relation" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:relation" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Relation</td><td class="value">
|
<tr><td class="key">Relation</td><td class="value">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test='starts-with(.,"http" )'>
|
<xsl:when test='starts-with(.,"http" )'>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
@ -609,47 +527,50 @@ p.intro {
|
||||||
<xsl:value-of select="."/>
|
<xsl:value-of select="."/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</td></tr></xsl:template>
|
</td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:coverage" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:coverage" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Coverage</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Coverage</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dc:rights" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<xsl:template match="dc:rights" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<tr><td class="key">Rights Management</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
<tr><td class="key">Rights Management</td><td class="value"><xsl:value-of select="."/></td></tr></xsl:template>
|
||||||
|
|
||||||
<!-- XML Pretty Maker -->
|
<!-- XML Pretty Maker -->
|
||||||
<xsl:template match="node()" mode='xmlMarkup'>
|
<xsl:template match="node()" mode='xmlMarkup'>
|
||||||
<div class="xmlBlock">
|
<div class="xmlBlock">
|
||||||
<<span class="xmlTagName"><xsl:value-of select='name(.)' /></span><xsl:apply-templates select="@*" mode='xmlMarkup'/>><xsl:apply-templates select="node()" mode='xmlMarkup' /></<span class="xmlTagName"><xsl:value-of select='name(.)' /></span>>
|
<<span class="xmlTagName"><xsl:value-of select='name(.)' /></span><xsl:apply-templates select="@*" mode='xmlMarkup'/>><xsl:apply-templates select="node()" mode='xmlMarkup' /></<span class="xmlTagName"><xsl:value-of select='name(.)' /></span>>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="text()" mode='xmlMarkup'><span class="xmlText"><xsl:value-of select='.' /></span></xsl:template>
|
<xsl:template match="text()" mode='xmlMarkup'><span class="xmlText"><xsl:value-of select='.' /></span></xsl:template>
|
||||||
|
|
||||||
<xsl:template match="@*" mode='xmlMarkup'>
|
<xsl:template match="@*" mode='xmlMarkup'>
|
||||||
<xsl:text> </xsl:text><span class="xmlAttrName"><xsl:value-of select='name()' /></span>="<span class="xmlAttrValue"><xsl:value-of select='.' /></span>"
|
<xsl:text> </xsl:text>
|
||||||
</xsl:template>
|
<span class="xmlAttrName">
|
||||||
|
<xsl:value-of select='name()' /></span>="<span class="xmlAttrValue"><xsl:value-of select='.' />
|
||||||
|
</span>"
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="xmlstyle">
|
<!-- <xsl:template name="xmlstyle">
|
||||||
.xmlSource {
|
.xmlSource {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
border: solid #c0c0a0 1px;
|
border: solid #c0c0a0 1px;
|
||||||
background-color: #ffffe0;
|
background-color: #ffffe0;
|
||||||
padding: 2em 2em 2em 0em;
|
padding: 2em 2em 2em 0em;
|
||||||
}
|
}
|
||||||
.xmlBlock {
|
.xmlBlock {
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
}
|
}
|
||||||
.xmlTagName {
|
.xmlTagName {
|
||||||
color: #800000;
|
color: #800000;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.xmlAttrName {
|
.xmlAttrName {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.xmlAttrValue {
|
.xmlAttrValue {
|
||||||
color: #0000c0;
|
color: #0000c0;
|
||||||
}
|
}
|
||||||
</xsl:template>
|
</xsl:template> -->
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
145
assets/style.css
Normal file
145
assets/style.css
Normal file
|
@ -0,0 +1,145 @@
|
||||||
|
html,
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea,
|
||||||
|
.pure-g [class*="pure-u"] {
|
||||||
|
font-family: "Open Sans", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.value {
|
||||||
|
vertical-align: top;
|
||||||
|
padding-left: 1em;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.key {
|
||||||
|
background-color: #3abac4;
|
||||||
|
padding: 3px;
|
||||||
|
text-align: right;
|
||||||
|
border: 1px solid #c0c0c0;
|
||||||
|
white-space: nowrap;
|
||||||
|
/* font-weight: bold; */
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dcdata td.key {
|
||||||
|
background-color: #f4f8f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 1em 2em 1em 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
font-family: sans-serif;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
padding-bottom: 4px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-bottom: 0.3em;
|
||||||
|
font-size: medium;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link {
|
||||||
|
border: 1px outset #88f;
|
||||||
|
background-color: #00beff;
|
||||||
|
padding: 1px 4px 1px 4px;
|
||||||
|
font-size: 80%;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: sans-serif;
|
||||||
|
color: #6c6e6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link:hover {
|
||||||
|
color: #d0d0d0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link:active {
|
||||||
|
color: #d0d0d0;
|
||||||
|
background-color: #00beff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oaiRecord,
|
||||||
|
.oaiRecordTitle {
|
||||||
|
background-color: #eee;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #d0d0d0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.oaiRecordTitle {
|
||||||
|
background-color: #51565c;
|
||||||
|
color: #fff;
|
||||||
|
font-size: medium;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 10px;
|
||||||
|
border-width: 0px 0px 0px 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oaiRecord {
|
||||||
|
margin-bottom: 3em;
|
||||||
|
border-width: 2px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.results {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.quicklinks {
|
||||||
|
margin-top: 2px;
|
||||||
|
padding: 4px;
|
||||||
|
text-align: left;
|
||||||
|
border-bottom: 2px solid #ccc;
|
||||||
|
border-top: 2px solid #ccc;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.quicklinks li {
|
||||||
|
font-size: 80%;
|
||||||
|
display: inline;
|
||||||
|
list-style: none;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.intro {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xmlSource {
|
||||||
|
font-size: 70%;
|
||||||
|
border: solid #c0c0a0 1px;
|
||||||
|
/* background-color: #ffffe0; */
|
||||||
|
background-color: #f4f8f4;
|
||||||
|
padding: 2em 2em 2em 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xmlBlock {
|
||||||
|
padding-left: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xmlTagName {
|
||||||
|
color: #800000;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xmlAttrName {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xmlAttrValue {
|
||||||
|
color: #0000c0;
|
||||||
|
}
|
|
@ -1,11 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="3.0"
|
||||||
xmlns="http://www.openarchives.org/OAI/2.0/"
|
xmlns="http://www.openarchives.org/OAI/2.0/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">
|
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">
|
||||||
|
|
||||||
<!--<xsl:param name="urnResolverUrl" />-->
|
<!--<xsl:param name="urnResolverUrl" />-->
|
||||||
|
|
||||||
|
@ -143,6 +144,29 @@
|
||||||
</sampleIdentifier>
|
</sampleIdentifier>
|
||||||
</oai-identifier>
|
</oai-identifier>
|
||||||
</description>
|
</description>
|
||||||
|
<description>
|
||||||
|
<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>
|
</Identify>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@ -304,6 +328,12 @@
|
||||||
</setSpec>-->
|
</setSpec>-->
|
||||||
<!--loop-->
|
<!--loop-->
|
||||||
<xsl:apply-templates select="SetSpec" />
|
<xsl:apply-templates select="SetSpec" />
|
||||||
|
<setSpec>
|
||||||
|
<xsl:text>open_access</xsl:text>
|
||||||
|
</setSpec>
|
||||||
|
<setSpec>
|
||||||
|
<xsl:text>doc-type:ResearchData</xsl:text>
|
||||||
|
</setSpec>
|
||||||
</header>
|
</header>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<!-- nicht bei ListIdentifiers und auch nicht bei gelöschten Datensätzen-->
|
<!-- nicht bei ListIdentifiers und auch nicht bei gelöschten Datensätzen-->
|
||||||
|
@ -371,8 +401,10 @@
|
||||||
<!-- dc:date: embargo date -->
|
<!-- dc:date: embargo date -->
|
||||||
<xsl:apply-templates select="EmbargoDate" mode="oai_dc" />
|
<xsl:apply-templates select="EmbargoDate" mode="oai_dc" />
|
||||||
<!-- dc:type -->
|
<!-- dc:type -->
|
||||||
<!-- <xsl:apply-templates select="@Type" mode="oai_dc" /> -->
|
|
||||||
<dc:type>Dataset</dc:type>
|
<dc:type>Dataset</dc:type>
|
||||||
|
<dc:type>
|
||||||
|
<xsl:text>ResearchData</xsl:text>
|
||||||
|
</dc:type>
|
||||||
<!-- dc:format -->
|
<!-- dc:format -->
|
||||||
<xsl:apply-templates select="File/@MimeType" mode="oai_dc" />
|
<xsl:apply-templates select="File/@MimeType" mode="oai_dc" />
|
||||||
<!-- <dc:format> -->
|
<!-- <dc:format> -->
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user