- linting correction in pagination.ts

- npm updates for core-js and webpack
- xslt transformations for bounding boxes
This commit is contained in:
Arno Kaimbacher 2022-06-02 14:56:38 +02:00
parent 43fb919064
commit f1de1c30e7
4 changed files with 68 additions and 59 deletions

View file

@ -1,6 +1,6 @@
import { Dataset } from "./dataset";
export interface Pagination {
export interface Pagination {
total: number;
per_page?: number;
current_page: number;

View file

@ -6,50 +6,59 @@
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
expand-text="yes"
version="3.0">
<!-- exclude-result-prefixes="#all" -->
<xsl:output method="text" indent="yes"/>
<xsl:mode on-no-match="shallow-copy"/>
<!-- <xsl:variable name="datacite-titles" select="//*[name() = 'titles']"/> -->
<xsl:variable name="datacite-records" select="//*[name() = 'resource']"/>
<xsl:template match="/*" mode="#all">
<!-- <xsl:copy>
<xsl:apply-templates select="@*, node()" mode="#current"/>
</xsl:copy> -->
<!-- <xsl:for-each select="$datacite-records/*[name() = 'record']"> -->
<xsl:for-each select="$datacite-records">
{{
<!-- <xsl:variable name="identifier" select="*[name() = 'identifier']"/> -->
<!-- identifier: <xsl:value-of select="$identifier"/>, -->
<xsl:value-of select="*[name() = 'identifier']"/>
}},
</xsl:for-each>
<!-- <xsl:apply-templates select="//*[name() = 'resource']" /> -->
<!-- <xsl:value-of select="$datacite-titles" separator="&#x20;"/> -->
</xsl:template>
<!-- <xsl:template match="metadata/resource/identifier">
<xsl:value-of select="."/>
</xsl:template> -->
<xsl:template match="//*[name() = 'resource']">
<xsl:apply-templates select="identifier" />
</xsl:template>
<xsl:template match="identifier" >
<xsl:text>test</xsl:text>
<!-- <xsl:value-of select="@identifierType" />
<xsl:value-of select="string(.)"/> -->
<!-- exclude-result-prefixes="#all" -->
<xsl:output method="text" indent="yes"/>
<xsl:mode on-no-match="shallow-copy"/>
<!-- <xsl:variable name="datacite-titles" select="//*[name() = 'titles']"/> -->
<xsl:variable name="datacite-records" select="//*[name() = 'resource']"/>
<xsl:template match="/*" mode="#all">
<!-- <xsl:copy>
<xsl:apply-templates select="@*, node()" mode="#current"/>
</xsl:copy> -->
<!-- <xsl:for-each select="$datacite-records/*[name() = 'record']"> -->
<xsl:for-each select="$datacite-records">
<!-- definbe variables -->
<xsl:variable name="identifier" select="*[name() = 'identifier']"/>
<xsl:variable name="datacite-titles" select="*[name() = 'titles']"/>
<xsl:variable name="main_title">
<xsl:for-each select="$datacite-titles/*[name() = 'title']">
<xsl:choose>
<xsl:when test="not(count(@titleType) &gt; 0)">
<xsl:value-of select="."/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:variable>
<!-- <xsl:value-of select="*[name() = 'identifier']"/> -->
{{
"doi": "{$identifier}",
"title": "{$main_title}"
}},
</xsl:for-each>
<!-- <xsl:apply-templates select="//*[name() = 'resource']" /> -->
<!-- <xsl:value-of select="$datacite-titles" separator="&#x20;"/> -->
</xsl:template>
<!-- <xsl:template match="metadata/resource/identifier">
<xsl:value-of select="."/>
</xsl:template> -->
<xsl:template match="//*[name() = 'resource']">
<xsl:apply-templates select="identifier" />
</xsl:template>
<xsl:template match="identifier" >
<xsl:text>test</xsl:text>
<!-- <xsl:value-of select="@identifierType" />
<xsl:value-of select="string(.)"/> -->
</xsl:template>
</xsl:stylesheet>